I hereby claim:
- I am alobbs on github.
- I am alobbs (https://keybase.io/alobbs) on keybase.
- I have a public key whose fingerprint is 83D2 19BA E8EA 42FD 9D2A 17BE E1E1 F5F2 944F 29AE
To claim this, I am signing this object:
/* Automatic removal of old messages matching a GMail search string | |
* | |
* Usage: | |
* Create a project at https://script.google.com/ | |
* Based on: | |
* https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a | |
*/ | |
// Purge messages automatically after how many days? | |
var DELETE_AFTER_DAYS = 5 |
import base64 | |
import pickle | |
import os.path | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request |
# update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 | |
# update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 5 | |
# update-alternatives --config python3 |
# SSH & attach tmux | |
rt() { | |
ssh -t "$1" 'tmux -2 attach-session -t $USER || { | |
tmux -2 new-session -d -t $USER | |
tmux set -g status-bg colour$(echo '"$1"' | md5sum | tr -d -c 0-9 | head -c 2) | |
tmux -2 attach-session -t $USER | |
}' | |
} | |
# Original version |
# UniFi repository | |
echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | tee -a /etc/apt/sources.list.d/100-ubnt.list | |
wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg | |
apt update | |
# Install packages | |
apt install oracle-java8-jdk unifi | |
# Disable MongoDB | |
systemctl stop mongodb |
[SeatDefaults] | |
user-session=icewm-session | |
autologin-user=alo | |
autologin-user-timeout=0 |
toh265() { | |
ffmpeg -i "${1}" -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k "${1}-h265.mp4" | |
} |
pdfclean() { | |
exiftool -all:all= "$1" | |
qpdf --linearize "$1" "$1.tmp" | |
mv -f "$1.tmp" "$1" | |
} |
I hereby claim:
To claim this, I am signing this object: