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=Ferron web server | |
After=network.target | |
[Service] | |
Type=simple | |
User=ferron | |
ExecStart=/usr/local/bin/ferron -c /etc/ferron.yaml | |
ExecReload=kill -HUP $MAINPID | |
Restart=on-failure |
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
https://thanosapollo.org/posts/firefox-with-emacs-keybindings/#step-i-aboutconfig | |
``` | |
Step I: about:config | |
First visit about:config. | |
To enable Emacs keybindings while editing text in Firefox, make the following changes: | |
Set ui.key.accelKey to 18 |
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
function tog-arr -d "toggle arrow keys" | |
# Check if keycode 111 is currently mapped to 0xff52 | |
xmodmap -pk | grep '^[[:space:]]*111' | grep 0xff52 >/dev/null 2>&1 | |
if test $status -eq 0 | |
# Unmap arrow keys | |
xmodmap -e "keycode 111 = " # UP | |
xmodmap -e "keycode 113 = " # LEFT | |
xmodmap -e "keycode 114 = " # RIGHT | |
xmodmap -e "keycode 116 = " # DOWN | |
else |
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
$ curl -sL https://yabs.sh | bash | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
# Yet-Another-Bench-Script # | |
# v2024-06-09 # | |
# https://github.com/masonr/yet-another-bench-script # | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
Sun Dec 1 09:18:26 PM EST 2024 | |
Basic System Information: |
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
$ curl -sL https://yabs.sh | bash | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
# Yet-Another-Bench-Script # | |
# v2024-06-09 # | |
# https://github.com/masonr/yet-another-bench-script # | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
Sun 1 Dec 21:16:51 EST 2024 | |
Basic System Information: |
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
nnoremap h j | |
nnoremap l k | |
nnoremap <M-h> h | |
nnoremap <M-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
# Ignore everything | |
* | |
# But not these files... | |
!.gitignore | |
!init.el | |
!LICENSE | |
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
for file in $(ls | egrep '^.+-[0-9].eml$'); do | |
mv -- "$file" "`echo $file | sed "s/-[0-9].eml$/.eml/"`"; | |
done; |
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
autosave = "!f () { \ | |
origin=$(git remote) ; \ | |
project_name=$(git remote get-url $origin | xargs basename -s .git) ; \ | |
current_branch=$(git rev-parse --abbrev-ref HEAD) ; \ | |
gsm=$(git status) ; \ | |
ntc=$(echo $gsm | grep \"nothing to commit, working tree clean\" | wc -l) ; \ | |
ybi=$(echo $gsm | grep \"Your branch is ahead of '$origin/$current_branch' by\" | wc -l) ; \ | |
ybi2=$(echo $gsm | grep \"Your branch is ahead of '$origin/main' by\" | wc -l) ; \ | |
if [ $ntc -ne 1 ] || ([ $ybi -ne 1 ] && [ $ybi2 -ne 0 ]); then\ | |
echo \"💾 Autosaving...\" ; \ |
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
use base64::{engine::general_purpose, Engine as _}; | |
use chrono::Utc; | |
use http::HeaderMap; | |
use openssl::hash::MessageDigest; | |
use openssl::pkey::{PKey, Private}; | |
use openssl::sha::Sha256; | |
use openssl::sign::Signer; | |
use std::collections::HashMap; | |
use std::fs; |
NewerOlder