gpg --list-keys --with-subkey-fingerprint
gpg --edit-key <KEY_ID>
#!/bin/bash | |
gpg --import private-keys-backup.asc | |
gpg --import public-keys-backup.asc | |
gpg --import-ownertrust ownertrust-backup.txt |
grep -Eiorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' "$@" * | sort | uniq > emails.txt |
query IntrospectionQuery { | |
__schema { | |
queryType { | |
name | |
} | |
mutationType { | |
name | |
} | |
subscriptionType { | |
name |
Lower Apt Pin priority of testing packages adding the following lines to /etc/apt/preferences
(important: only the release name works):
Package: *
Pin: release n=bookworm
Pin-Priority: 50
Add the testing repo in /etc/apt/sources.list
:
#!/bin/bash | |
# Don't forget to chmod +x update-dynhost-ovh.sh and add the cron | |
# */5 * * * * update-dynhost-ovh.sh | |
DOMAIN="" | |
USERNAME="" | |
PASSWORD="" | |
LOG_FILE="/var/log/update-dyndns-ovh.log" |
#!/bin/bash | |
# Speedtest using DigitalOcean's data centers | |
wget -O /dev/null http://speedtest-nyc1.digitalocean.com/1gb.test | |
# or 100mb | |
# wget -O /dev/null http://speedtest-nyc1.digitalocean.com/100mb.test | |
# Locations (1-x): | |
# nyc, sfo, ams, lon, fra, sgp, tor, blr |
[Unit] | |
Description=Set the battery charge threshold | |
After=multi-user.target | |
StartLimitBurst=3 | |
StartLimitIntervalSec=300s | |
[Service] | |
Type=oneshot | |
Restart=on-failure | |
ExecStart=/bin/bash -c 'echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold' |
### Keybase proof | |
I hereby claim: | |
* I am ps1dr3x on github. | |
* I am ps1dr3x (https://keybase.io/ps1dr3x) on keybase. | |
* I have a public key ASAOMSkZS9IQcvRUMI58e-PMjmISJnxJepn4rY8KYj3-_wo | |
To claim this, I am signing this object: |
from os import curdir | |
from os.path import join as pjoin | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
class StoreHandler(BaseHTTPRequestHandler): | |
store_path = pjoin(curdir, 'file') | |
def do_POST(self): | |
if self.path == '/': |