Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/python | |
# Slightly modified from <https://www.technowizardry.net/2024/01/migrating-from-google-location-history-to-owntracks/> | |
import pandas as pd | |
import json | |
import time | |
# https://owntracks.org/booklet/features/tid/ | |
tracker_id = 'ex' # A two-character identifier |
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
# Tar pit | |
@shit { | |
path */.env | |
path /wp-login.php | |
} | |
handle @shit { | |
root * /srv/www | |
vars compression gzip | |
@is_br header Accept-Encoding *br* | |
vars @is_br compression br |
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 bash | |
# many settings from https://raw.githubusercontent.com/mathiasbynens/dotfiles/master/.macos | |
# many settings from https://raw.githubusercontent.com/thoughtbot/laptop/master/mac | |
# instructions on finding the default you've changed: https://pawelgrzybek.com/change-macos-user-preferences-via-command-line/ | |
# previous install notes at: | |
# https://gist.github.com/llimllib/ee591266e05bd880629a4e7511a61bb3 | |
# https://gist.github.com/llimllib/e864a92da94ceb1ef0da2e06fd1f8d70 | |
# https://gist.github.com/llimllib/3fc4fefcfc0152dad8c58201246d8802 | |
# | |
# this script's URL is: https://gist.github.com/llimllib/c4dd0a98a426022b0365d4c0a9090460 |
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
[Unit] | |
Description=rclone %i | |
[Service] | |
Nice=19 | |
IOSchedulingClass=idle | |
#KillSignal=SIGINT | |
EnvironmentFile=/usr/local/etc/rclone-spawn/%i.env | |
ExecStart=/usr/local/bin/rclone-spawn.sh %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
# this expects your dotfiles in .dotfiles | |
for l in $( | |
for link in $(find . -type l); do | |
if readlink "$link" | grep -q ".dotfiles"; then | |
echo "$link" | |
fi | |
done | |
); do | |
echo /bin/cp --remove-destination "$(realpath "$l")" "$l" |
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
(headers) { | |
header { | |
-Server | |
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" | |
X-XSS-Protection "1; mode=block" | |
X-Permitted-Cross-Domain-Policies "none" | |
X-Content-Type-Options "nosniff" | |
X-Frame-Options "SAMEORIGIN" | |
X-Robots-Tag "nine" | |
Permissions-Policy interest-cohort=() |
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: Deploy on OpenStack | |
hosts: localhost | |
gather_facts: false | |
tasks: | |
- name: get OS server info | |
os_server_info: | |
server: "fedora-from-ansible" | |
register: instance_state | |
ignore_errors: true |
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 bash | |
DL_URL="$(curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest | grep "browser_download_url.*arm-6\"" | cut -d \" -f 4)" | |
wget "${DL_URL}" -O /mnt/nfs/gitea/gitea | |
#chmod +x /mnt/nfs/gitea/gitea | |
sudo systemctl restart gitea |
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
{ | |
"keymap": [ | |
{ | |
"keyCode": 20, | |
"label": "Q" | |
}, | |
{ | |
"keyCode": 26, | |
"label": "W" | |
}, |
NewerOlder