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
21 # - intentionally not quoting the parameters, so that some can be ignored
22 # if not passed, rather than be passed to find as an empty string;
23 # - %T+ is a GNU extension;
24 # - gawk is able to split records on \0, while awk cannot.
25 find $@
-printf '%T@ %T+ %p\0' \
26 |
tee >(gawk
-v RS
='\0' 'END { printf("[INFO] Total found: %d\n", NR); }') \
27 |
sort -z -k 1 -n -r \
28 |
head -n "$(stty size | awk 'NR == 1 {print $1 - 5}')" -z \
31 sub("^" $1 " +", "") # Remove epoch time
32 sub("+", " ") # Blank-out the default separator
33 sub("\\.[0-9]+", "") # Remove fractional seconds
47 pactl info |
awk '/^Default Sink:/ {print $3}'
51 curl
"https://xq-api.voidlinux.org/v1/query/x86_64?q=$1" | jq
'.data'
56 LESS_TERMCAP_md
=$
'\e[01;31m' \
57 LESS_TERMCAP_me
=$
'\e[0m' \
58 LESS_TERMCAP_se
=$
'\e[0m' \
59 LESS_TERMCAP_so
=$
'\e[01;44;33m' \
60 LESS_TERMCAP_ue
=$
'\e[0m' \
61 LESS_TERMCAP_us
=$
'\e[01;32m' \
66 cd "$(~/bin/experiment $@)" ||
exit 1
70 ledit
-l $
(stty size |
awk '{print $2}') ocaml $@
74 cat "$(find ~/Archives/Documents/HOWTOs -mindepth 1 -maxdepth 1 | sort | fzf)"
78 curl
"https://api.github.com/$1/$2/repos?page=1&per_page=10000"
82 gh_fetch_repos
"$1" "$2" \
83 | jq
--raw-output '.[] | select(.fork | not) | .git_url' \
97 gh_username
=$
(echo "$1" |
awk -F / '"$1 == "https" && $3 == github.com" {print $4}')
98 gh_dir
="${HOME}/Archives/Software/src/repos/remote/github.com/${gh_username}"
100 cd "$gh_dir" ||
exit 1
105 work_log_template
() {
125 mkdir
-p "$DIR_WORK_LOG"
126 file_work_log_today
="${DIR_WORK_LOG}/$(date +%F).md"
127 if [ ! -f "$file_work_log_today" ]
129 work_log_template
> "$file_work_log_today"
131 vim
"$file_work_log_today"
136 curl
"http://wttr.in/$WEATHER_LOCATION"
140 bluetoothctl
-- paired-devices \
142 |
xargs bluetoothctl
-- info
146 bluetoothctl
-- devices \
148 |
xargs bluetoothctl
-- info
This page took 0.09546 seconds and 4 git commands to generate.