| CARVIEW |
Select Language
HTTP/2 200
date: Sun, 28 Dec 2025 15:57:00 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"1e97be8ad66b10f2c95d32f20adac6a7"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=F3%2FTa7giKMtwUJrskd1iKt8b0NYRlmygyxHDUqDw68s29s%2BScluA%2Fj8FqBGssRqXQLf8VFVN%2FwMrV3ArJm6T%2BepQWJnCRahl0GSp3dc4ij5urWcTx2%2F5V0Dd%2B26AmRfUp9QqBJ4%2B%2FxyK8eipJe1TOxLIBde5DGsvj1HCPER9ebEDPovVAUgqOj2ACTKK11BT0QtXNEIxiFcV8PyZmEunivsPFJSw0K6EQCjTdLeG5f94ciHu%2FVbAWHQC6rLfBupWYeLSdAiUyOm1W0hTc8RrNw%3D%3D--N3nsVT%2FqHK7q7l%2Ft--udTxcIkzlCbXEBytPXhv%2Bg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.94776170.1766937419; Path=/; Domain=github.com; Expires=Mon, 28 Dec 2026 15:56:59 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 28 Dec 2026 15:56:59 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8228:2DDF35:518330F:627FA45:6951534B
timss’s gists · GitHub
{{ message }}
Instantly share code, notes, and snippets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://old.reddit.com/r/Strava/comments/hw7zh0/how_to_bulk_edit_shoes_on_your_activities/ | |
| // Follow instructions above to get shoe ID | |
| var shoe_id = 123456789 | |
| // Open inline/quick edit for each activity | |
| document.querySelectorAll('.quick-edit').forEach(b => b.click()) | |
| // Unhide shoe selection if hidden due to it being "run-only" | |
| var shoes = document.querySelectorAll('.shoe-id') | |
| for (var i = 0; i < shoes.length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/default/ufw | |
| # ufw default deny outgoing | |
| # ufw default deny incoming | |
| DEFAULT_INPUT_POLICY="DROP" | |
| DEFAULT_OUTPUT_POLICY="DROP" | |
| # Consider /etc/ufw/before.rules etc | |
| $ ufw allow out 22/tcp | |
| $ ufw allow out 53/udp | |
| $ ufw allow out 80/tcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // console.log(p[0].children) | |
| //var p = document.querySelectorAll("[class*=emojiItem]"); | |
| // or console.log() stuff | |
| // var a = window.open(""); | |
| // emojiImage-123abc is used for server settings emoji | |
| // emojiItem-123abc is used for the emoji picker, but can be tricky to filter out | |
| // default emojis or just the emoji of the server you're in | |
| var p = document.querySelectorAll("[class*=emojiImage]"); |
timss
/ bluetooth_resume.yml
Created
May 18, 2018 13:44
Simple Ansible playbook for configuring systemd to restart the bluetooth service on resume
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: all | |
| connection: local | |
| vars: | |
| ask_become_pass: yes | |
| tasks: | |
| - name: Configure systemd to restart bluetooth service on resume | |
| copy: | |
| dest: /lib/systemd/system-sleep/bluetooth-resume | |
| mode: 0755 | |
| content: | |
Normal desktop:
$ grep -m 1 "model name" /proc/cpuinfo
model name : Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
$ time vim -c q .vimrc
real 0m0.159s
user 0m0.120s
sys 0m0.004s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import logging | |
| import sys | |
| import sublog | |
| logger = logging.getLogger() | |
| # https://stackoverflow.com/a/24956305/1076493 |
timss
/ include.yml
Last active
February 28, 2017 16:05
Ansible 'become' clause for include statements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ./roles/foo/tasks/main.yml | |
| - include: foo.yml | |
| - include: foo.yml | |
| become: yes | |
| # ./roles/foo/tasks/foo.yml | |
| - lineinfile: | |
| dest: "~/.bashrc" # resolves '~' on runtime as any other command', unlike ansible_env.HOME | |
| regexp: "^HISTSIZE=.*" | |
| line: "HISTSIZE=10000" |
timss
/ service.yml
Created
August 17, 2016 08:07
Disable autostart of services after first installation on Debian/Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Check if service is installed | |
| stat: | |
| path: /etc/init.d/{{ item }} | |
| register: services | |
| with_items: | |
| - apache2 | |
| - mysql | |
| - name: Disable autostart of services after installation |
timss
/ packages.txt
Last active
January 10, 2020 20:58
QEMU/KVM, OVMF, UEFI – invalid block device contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - qemu/kvm 2.6 | |
| - edk2.git/ovmf x64 20160728 | |
| - libvirt-daemon 2.0.0 |
NewerOlder
You can’t perform that action at this time.