1 # Top Disk-Using directories
2 # TODO: Consider using numfmt instead of awk
5 |
sort -n -k 1 -r --parallel="$(nproc)" \
11 sub("^" $1 "\t+", "", path)
12 gb = size / 1024 / 1024
13 printf("%f\t%s\n", gb, path)
18 # Most-recently modified file system objects
20 # Intentional non-quoting of the parameters, so that some can be ignored if
21 # not passed, rather than be passed to find as empty strings.
22 # NOTE that %T+ is a GNU extention.
23 find $@
-printf '%T@ %T+ %p\0' \
24 |
sort -z -k 1 -n -r \
25 |
head -n "$(stty size | awk 'NR == 1 {print $1 - 5}')" -z \
28 sub("^" $1 " +", "") # Remove epoch time
29 sub("+", " ") # Blank-out the default separator
30 sub("\\.[0-9]+", "") # Remove fractional seconds
33 # gawk is able to split records on \0, while awk cannot.
45 pactl info |
awk '/^Default Sink:/ {print $3}'
49 curl
"https://xq-api.voidlinux.org/v1/query/x86_64?q=$1" | jq
'.data'
54 LESS_TERMCAP_md
=$
'\e[01;31m' \
55 LESS_TERMCAP_me
=$
'\e[0m' \
56 LESS_TERMCAP_se
=$
'\e[0m' \
57 LESS_TERMCAP_so
=$
'\e[01;44;33m' \
58 LESS_TERMCAP_ue
=$
'\e[0m' \
59 LESS_TERMCAP_us
=$
'\e[01;32m' \
64 cd "$(~/bin/experiment $@)" ||
exit 1
68 ledit
-l $
(stty size |
awk '{print $2}') ocaml $@
72 cat "$(find ~/Archives/Documents/HOWTOs -mindepth 1 -maxdepth 1 | sort | fzf)"
76 curl
"https://api.github.com/$1/$2/repos?page=1&per_page=10000"
80 gh_fetch_repos
"$1" "$2" \
81 | jq
--raw-output '.[] | select(.fork | not) | .git_url' \
95 gh_username
=$
(echo "$1" |
awk -F / '"$1 == "https" && $3 == github.com" {print $4}')
96 gh_dir
="${HOME}/Archives/Software/src/repos/remote/github.com/${gh_username}"
98 cd "$gh_dir" ||
exit 1
103 work_log_template
() {
123 mkdir
-p "$DIR_WORK_LOG"
124 file_work_log_today
="${DIR_WORK_LOG}/$(date +%F).md"
125 if [ ! -f "$file_work_log_today" ]
127 work_log_template
> "$file_work_log_today"
129 vim
"$file_work_log_today"
134 curl
"http://wttr.in/$WEATHER_LOCATION"
138 bluetoothctl
-- paired-devices \
140 |
xargs bluetoothctl
-- info
144 bluetoothctl
-- devices \
146 |
xargs bluetoothctl
-- info
This page took 0.090957 seconds and 5 git commands to generate.