dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 10d30574c0b77b0dc61762aa84e21f510472b19f
parent 0bfb21eb094c88360f1e6d7435e9a24c54e0fad5
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  3 Dec 2020 10:26:51 +0100

Merge branch 'master' of src.adamsgaard.dk:dotfiles

Diffstat:
A.local/bin/ncdump2tsv | 20++++++++++++++++++++
M.profile | 14++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/.local/bin/ncdump2tsv b/.local/bin/ncdump2tsv @@ -0,0 +1,20 @@ +#!/usr/bin/awk -f + +{ + if (match($0, /^}$/)) + isdata = 0 + + if (isdata) { + gsub(/, /, "\t", $0) + gsub(/,$/, "", $0) + gsub(/^ */, "", $0) + gsub(/ *;/, "", $0) + print + } + + if (match($0, /^data:$/)) { + getline + getline + isdata = 1 + } +} diff --git a/.profile b/.profile @@ -117,6 +117,20 @@ alias date-alaska='TZ=US/Alaska date' alias date-uk='TZ=Europe/London date' alias date-israel='TZ=Israel date' +gnuplotmatrix() { + gnuplot -e 'set terminal pdf; + set xrange [*:*] noextend; + set yrange [*:*] noextend; + set size ratio -1; + plot "-" matrix w image' +} +ncplot() { + ncdump -l 100000 -v "$1" "$2" | ncdump2tsv | gnuplotmatrix +} +ncshow() { + ncplot "$1" "$2" | zathura - +} + hurlo() { if [ "$#" -lt 1 ]; then cat