Migrate from .stow-rename to --dotfiles

This commit is contained in:
Danielle McLean 2023-10-23 15:16:31 +11:00
parent e344a02c65
commit c9c512486d
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
23 changed files with 0 additions and 2 deletions

View file

@ -0,0 +1,4 @@
s/\#.*/%/
1,/Add Quote \/ ModApp \/ Search /d
/Home \/ Latest /,$d
/^ *$/d;s/^ *//

View file

@ -0,0 +1,10 @@
# first we remove indentation from the start of lines
s/^ *//
# Convert the quote headers to %
1,$ s/^\#.*/%/
s/Comment:/\nComment:/
s/- \[.*//
/\[\s\+\]/d
1,/TodayLatestBestTopWorst/d
/save page/,$d
/^ *$/d

View file

@ -0,0 +1,6 @@
# first we remove indentation from the start of lines
s/^ *//
# Convert the quote headers to %
1,$ s/^\#[0-9].*/%/
# and remove the header
/%/,$!d

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
links -dump http://bash.org/\?random1 | sed -f "$dir/format-bash-quotes.sed"
exit ${PIPESTATUS[0]}

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
links -dump http://www.qdb.us/random | sed -f "$dir/format-qdb-quotes.sed"
exit ${PIPESTATUS[0]}

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
for i in {1..5}; do
curl -s http://whatthecommit.com/index.txt || exit 1
echo "%"
done

View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
sum() {
declare -i acc
for i; do acc+=i; done
echo $acc
}
curl -s 'http://www.xkcdb.com/?random1' |
hxnormalize -i 0 -l 99999999999 -x | hxselect -cs '<br>\n%<br>\n' 'span.quote' |
html2text -b 0 | hxunent | sed '$d; s/ *$//' | sed '$d'
exit $(sum ${PIPESTATUS[*]})