old unix-command | modern unix-command |
---|---|
cat |
bat |
ls |
exa , lsd |
diff |
delta |
du |
dust , ncdu |
df |
duf |
tree |
broot |
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
sudo find /var/lib/caddy/.local/share/caddy/certificates -type f -exec rm {} \; | |
sudo systemctl restart caddy |
Live Table: https://diafygi.github.io/webcrypto-examples/
I couldn't find anywhere that had clear examples of WebCryptoAPI, so I wrote examples and made a live table with them. Pull requests welcome!
- generateKey | importKey |
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
{ | |
"terminal.integrated.fontFamily": "'Ubuntu Mono','PowerlineSymbols'", | |
"go.useLanguageServer": true, | |
"go.formatTool": "goimports", | |
"[ruby]": { | |
"editor.insertSpaces": true, | |
"editor.tabSize": 2 | |
} | |
} |
- Generate CSR from Keychain
Keychain Access > Certificate Assistant > Request a Certificate from Certificate Authority...
Email: <[email protected]>
Common Name: <Project>
Select Saved to disk
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 | |
from_repo=$1 | |
to_repo=$2 | |
repo_dir=${from_repo##*/} | |
echo "Git Mirror: $from_repo -> $to_repo" | |
git clone --bare $from_repo | |
cd $repo_dir | |
git push --mirror $to_repo |
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
#!/usr/bin/env ruby | |
require 'fileutils' | |
prefix_input = ARGV[0] | |
prefix_output = ARGV[1] | |
suffixes = [".png", "@1.5x.png", "@2x.png", "@3x.png", "@4x.png"] | |
output_dirs = { |
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 | |
from_repo=$1 | |
to_repo=$2 | |
repo_dir=${from_repo##*/} | |
echo "Git Mirror: $from_repo -> $to_repo" | |
git clone --bare $from_repo | |
cd $repo_dir | |
git push --mirror $to_repo |
NewerOlder