# HG changeset patch # User Steve Losh # Date 1706904052 18000 # Node ID c55540587f763293a0d91f4b58d3799325981357 # Parent 4e0ee24c82a7fa7bc83e3fc9271b132d2c0b560b More diff -r 4e0ee24c82a7 -r c55540587f76 bash_profile --- a/bash_profile Thu Feb 01 08:33:56 2024 -0500 +++ b/bash_profile Fri Feb 02 15:00:52 2024 -0500 @@ -54,6 +54,10 @@ alias .....="cd ../../../.." alias ......="cd ../../../../.." +function mcd { + mkdir "$1" && cd "$1" +} + alias js='cd ~/scratch' alias :q=exit diff -r 4e0ee24c82a7 -r c55540587f76 bin/csv2tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/csv2tsv Fri Feb 02 15:00:52 2024 -0500 @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +import sys +import csv + +def run_file(f): + w = csv.writer(sys.stdout, delimiter='\t') + for row in csv.reader(f): + w.writerow(row) + +def run(paths): + for path in paths: + if path == '-': + run_file(sys.stdin) + else: + with open(path) as f: + run_file(f) + +if __name__ == '__main__': + run(sys.argv[1:] or ['-']) diff -r 4e0ee24c82a7 -r c55540587f76 bin/tsv2csv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/tsv2csv Fri Feb 02 15:00:52 2024 -0500 @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +import sys +import csv + +def run_file(f): + w = csv.writer(sys.stdout) + for row in csv.reader(f, delimiter='\t'): + w.writerow(row) + +def run(paths): + for path in paths: + if path == '-': + run_file(sys.stdin) + else: + with open(path) as f: + run_file(f) + +if __name__ == '__main__': + run(sys.argv[1:] or ['-']) diff -r 4e0ee24c82a7 -r c55540587f76 fish/config.fish --- a/fish/config.fish Thu Feb 01 08:33:56 2024 -0500 +++ b/fish/config.fish Fri Feb 02 15:00:52 2024 -0500 @@ -35,6 +35,10 @@ end end +function mcd --argument dir + mkdir "$dir"; and cd "$dir" +end + alias sin singularity alias sm snakemake diff -r 4e0ee24c82a7 -r c55540587f76 remote/bash_profile --- a/remote/bash_profile Thu Feb 01 08:33:56 2024 -0500 +++ b/remote/bash_profile Fri Feb 02 15:00:52 2024 -0500 @@ -42,6 +42,10 @@ history | grep "$@" | tac | f 2- } +function mcd { + mkdir "$1" && cd "$1" +} + if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then HOST_COLOR="$BLUE" else diff -r 4e0ee24c82a7 -r c55540587f76 remote/bin/csv2tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remote/bin/csv2tsv Fri Feb 02 15:00:52 2024 -0500 @@ -0,0 +1,1 @@ +../../bin/csv2tsv \ No newline at end of file diff -r 4e0ee24c82a7 -r c55540587f76 remote/bin/csvconcat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remote/bin/csvconcat Fri Feb 02 15:00:52 2024 -0500 @@ -0,0 +1,1 @@ +../../bin/csvconcat \ No newline at end of file diff -r 4e0ee24c82a7 -r c55540587f76 remote/bin/tsv2csv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remote/bin/tsv2csv Fri Feb 02 15:00:52 2024 -0500 @@ -0,0 +1,1 @@ +../../bin/tsv2csv \ No newline at end of file diff -r 4e0ee24c82a7 -r c55540587f76 stumpwmrc --- a/stumpwmrc Thu Feb 01 08:33:56 2024 -0500 +++ b/stumpwmrc Fri Feb 02 15:00:52 2024 -0500 @@ -501,6 +501,10 @@ (defcommand clear-notifications () () (run-shell-command "dunstctl close-all")) +(defcommand start-vm () () + (echo "Starting VM.") + (run-shell-command "/home/sjl/vms/run")) + ;;;; Terminal Fonts ----------------------------------------------------------- @@ -568,6 +572,9 @@ (defcommand terminal () () (run-shell-command (format nil "st -f 'Ubuntu Mono:size=~D'" *terminal-font-size*))) +(defcommand terminal-apl () () + (run-shell-command "st -f 'BQN386 Unicode:style=Regular:size=12'")) + (defcommand gcontrol () () (run-or-raise "gcontrol" '(:class "Gnome-control-center")))