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
| #!/bin/sh | |
| echo "Recording. Press C-c to stop..." | |
| ffmpeg -hide_banner -nostats -loglevel quiet -y -f alsa -i default "/tmp/audio.wav" | |
| echo "Transcribing audio..." | |
| whisper "/tmp/audio.wav" --model base --fp16 False --output_format txt -o /tmp/transcription | |
| xclip -selection c < /tmp/transcription/audio.txt | |
| echo "DONE! Check your Clipboard" |
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
| nice wget --mirror --execute robots=off --no-verbose --convert-links \ | |
| --backup-converted --page-requisites --adjust-extension \ | |
| --base=./ --directory-prefix=./ --span-hosts \ | |
| --domains=www.example.com,example.com http://www.example.com/ |
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
| #!/bin/bash | |
| a=$(date +%d.%m.%y) | |
| du -shc "$HOME/Documents" "$HOME/Pictures" "$HOME/.ssh" "$HOME/Passwords.kdbx" "$HOME/.var/app/io.gitlab.librewolf-community/.librewolf/uw04bqn3.default-default" | |
| printf "Is the backup small enough? (CTRL-C otherwise)" | |
| read | |
| echo "$a: initiating backup" | |
| cd | |
| mkdir "$a" | |
| cp -r "Documents" "Pictures" ".ssh" "Passwords.kdbx" ".config/BraveSoftware/Brave-Browser/Default/" ".var/app/io.gitlab.librewolf-community/.librewolf/uw04bqn3.default-default" "$a" | |
| tar -cf "$a.tar" "$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 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
| 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 [email protected]:/mnt/
Rest of configuration is done on server side / infra code
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
| { | |
| "theme":"nord", | |
| "themeLight":"serika", | |
| "themeDark":"serika_dark", | |
| "autoSwitchTheme":false, | |
| "customTheme":false, | |
| "customThemeColors":[ | |
| "#323437", | |
| "#e2b714", | |
| "#e2b714", |
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
| local set = vim.opt | |
| set.number=true | |
| set.relativenumber=true | |
| set.shiftwidth=4 | |
| set.tabstop=4 | |
| set.softtabstop=4 |
NewerOlder

