stuff

katproto.girlonthemoon.xyz ed00b091 663b83c8

verified
Changed files
+32 -30
config
.local
bin
scripts
Scripts
pandoc
+1
.gitignore
··· 33 config/.local/bin/pylsp 34 config/.local/bin/kaomoji.sh 35 config/.local/bin/quote
··· 33 config/.local/bin/pylsp 34 config/.local/bin/kaomoji.sh 35 config/.local/bin/quote 36 + config/.local/bin/quoterandom
-14
config/.local/bin/retroify
··· 1 - #!/usr/bin/env bash 2 - 3 - set -euxo pipefail 4 - 5 - INPUT=${1} 6 - COLOURS=${2} 7 - OUTPUT_SMOL=${INPUT}.webp 8 - OUTPUT_BIG=${INPUT}-big.webp 9 - 10 - SMOL_SIZE=320 11 - BIG_SIZE=2048 12 - 13 - magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_SMOL}" -- - 14 - magick "${INPUT}" -auto-orient -resize ${SMOL_SIZE}x${SMOL_SIZE} -colors "${COLOURS}" -filter point -resize ${BIG_SIZE}x${BIG_SIZE} png:- | cwebp -q 100 -m 6 -lossless -progress -o "${OUTPUT_BIG}" -- -
···
+1 -1
scripts/Scripts/pandoc/md2html.html
··· 42 <script>hljs.highlightAll();</script> 43 44 <main class="h-entry"> 45 - <article class="flow e-content"> 46 $for(include-before)$ 47 $include-before$ 48 $endfor$
··· 42 <script>hljs.highlightAll();</script> 43 44 <main class="h-entry"> 45 + <article class="e-content"> 46 $for(include-before)$ 47 $include-before$ 48 $endfor$
-5
stow-local.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - stow -v -t ~ "config" --adopt 4 - 5 - stow -v -t ~ "scripts" --adopt
···
+30 -10
stow.sh
··· 1 #!/usr/bin/env bash 2 3 - echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none 4 - 5 - git pull bytes main 6 - 7 - echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none 8 - 9 - echo "stowing your shit..." | gum style --foreground "#f4b8e4" --border none 10 11 - stow -v -t ~ "config" --adopt 12 13 - stow -v -t ~ "scripts" --adopt 14 15 - echo "done ^_^" | gum style --foreground "#f4b8e4" --border none
··· 1 #!/usr/bin/env bash 2 3 + updategit() { 4 + echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none 5 + git pull bytes main 6 + echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none 7 + echo "stowing your shit..." | gum style --foreground "#f4b8e4" --border none 8 + stow -v -t ~ "config" --adopt 9 + stow -v -t ~ "scripts" --adopt 10 + echo "done ^_^" | gum style --foreground "#f4b8e4" --border none 11 + } 12 13 + localstow() { 14 + stow -v -t ~ "config" --adopt 15 + stow -v -t ~ "scripts" --adopt 16 + } 17 18 + usage() { 19 + if [ $# -eq 0 ]; then 20 + echo -e "Usage: stow.sh [OPTIONS]\n" 21 + echo -e "pull from git ,[-L|--local]\nsymlink local files ,[-U|--update]" | column -t -s',' 22 + fi 23 + } 24 25 + case "$1" in 26 + "" | "-h" | "--help" | "help") 27 + usage 28 + ;; 29 + "-L" | "--local") 30 + localstow 31 + ;; 32 + "-U" | "--update") 33 + updategit 34 + ;; 35 + esac