This file contains 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
#!/bin/sh | |
a=$(date +%d.%m.%y) | |
du -shc "$HOME/git" "$HOME/doc" "$HOME/dotfiles" "$HOME/pic" "$HOME/.ssh" "$HOME/Passwords.kdbx" | |
printf "Is the backup small enough? (CTRL-C otherwise)" | |
read | |
echo "$a: initiating backup" | |
cd | |
mkdir "$a" | |
cp -r "git" "doc" "dotfiles" "pic" ".ssh" "Passwords.kdbx" "$a" | |
tar c -I"zstd -19 -T0" -f "$a.tar.zst" "$a" |
I'm kinda annoyed with the emacs tempo library I currently use and don't want a separate config file that would be necessary to use emacs tempel. So I'm just publishing my templates here for copy pasta / macro bootstrapping for the next paper.
@online{,
author = "",
title = "",
url = "",
This file contains 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
CC0 1.0 Universal | |
Statement of Purpose | |
The laws of most jurisdictions throughout the world automatically confer | |
exclusive Copyright and Related Rights (defined below) upon the creator and | |
subsequent owner(s) (each and all, an "owner") of an original work of | |
authorship and/or a database (each, a "Work"). | |
Certain owners wish to permanently relinquish those rights to a Work for the |
./.access
should have 400 permissions and should contain dns_digitalocean_token = <redacted>
sudo pacman -S certbot-dns-digitalocean
sudo certbot certonly --dns-digitalocean --dns-digitalocean-credentials ./.access -d '*.hsnipe.moe' -d 'hsnipe.moe'
sudo cat /etc/letsencrypt/live/hsnipe.moe/privkey.pem /etc/letsencrypt/live/hsnipe.moe/cert.pem > haproxy.pem
scp haproxy.pem root@hsnipe.moe:/mnt/
Rest of configuration is done on server side / infra code
This file contains 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
{ | |
"theme":"nord", | |
"themeLight":"serika", | |
"themeDark":"serika_dark", | |
"autoSwitchTheme":false, | |
"customTheme":false, | |
"customThemeColors":[ | |
"#323437", | |
"#e2b714", | |
"#e2b714", |
This file contains 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
local set = vim.opt | |
set.number=true | |
set.relativenumber=true | |
set.shiftwidth=4 | |
set.tabstop=4 | |
set.softtabstop=4 |
This file contains 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
import july | |
from july.utils import date_range | |
import matplotlib.pyplot as plt | |
dates = date_range("2022-01-01", "2022-12-31") | |
a = [0] | |
data = a*2 + [21] + a*16 + [22] + a*10 + [23] + a*4 + [24] + a*9 + [23] + a + [32] + a*3 + [19] + a*2 + [24] + a*3 + [40] + a*13 + [21] + a*6 + [22] + [24] + a*2 + [21] + a*4 + [22] + a*17 + [22] + a*3 + [28] + a*2 + [21] + a*3 + [34] + a*2 + [22] + a + [22] + a + [26] + a + [23] + a*3 + [21] + a*4 + [22] + a*2 + [19] + a*11 + [24] + 2*a + [70] + a*6 + [22] + a*3 + [22] + a*3 + [23] + a + [21] + [20] + [23] + [22] + a*2 + [21] + [21] + a + [20] + a*20 + [20] + a*4 + [21] + a*47 + [18] + a*12 + [20] + a*28 + [20] + a*4 + [40] + a*4 + [28] + a + [24] + a*2 + [22] + a + [20] + a*4 + [22] + [22] + a*9 + [22] + [22] + a + [22] | |
july.heatmap(dates, data, title="Joglog", month_grid=True, cmap="github") |