gopher://gopher.club:70/1/users/tftp/library/catalog/ library 2024-04-25T00:00:00Z gopher.club gopher://gopher.club:70/0/users/tftp/library/textfiles/awk.txt awk 2024-04-19T00:00:00Z 2024-04-25T00:00:00Z my learnings and observations of awk. i'm making notes as i audit the awk workshop (run by the author of bottles). ----------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || # note: you could have used BEGIN{Moo="cowsay"} to avoid using # the '-v' switch # awk as a shebang #! /usr/bin/awk -f BEGIN { print "hello, world" } # shell wrapper script #! /bin/sh - AWKCODE='BEGIN { print "hello, world" }' awk "$AWKCODE" # using body and END{} blocks to count lines seq 0 9 | awk '{Lines = Lines + 1} END{print "Lines = ", Lines}' Lines = 10 # now to sum up numbers seq 0 9 | awk '{Sum = Sum + $1} END{print "Sum = ", Sum}' Sum = 45 == references == == holding pen == links and notes that i haven't referenced in this text file https://rawtext.club/~woog/misc/awk_workshop.html https://git.luxferre.top/awk-gold-collection/log.html == links == [1]: gopher://sdf.org:70/1/users/bottles/awk_workshop/ [2]: gopher://gopher.club:70/1/users/bottles/forum/ [3]: gopher://sdf.org:70/1/sdf/faq/ [4]: gopher://sdf.org:70/0/users/bottles/awk_workshop/Day1.log ]]> gopher://gopher.club:70/0/users/tftp/library/textfiles/figlet.txt figlet 2024-03-19T00:00:00Z 2024-04-25T00:00:00Z tips and tricks for using figlet 81 \ | grep -v "Unable" ``` == adding more fonts == 1 - download a font: https://www.figlet.org/cgi-bin/fontdb.cgi 2 - save to a local path e.g. "figlet_fonts" 3 - use figlet -d "path/to/figlet_fonts" -f download_font woot ]]> gopher://gopher.club:70/0/users/tftp/library/textfiles/gopher.txt gopher 2024-04-05T00:00:00Z 2024-04-25T00:00:00Z resources for learning how to gopher gopher://gopher.club:70/0/users/tftp/library/textfiles/meshcore.txt meshcore 2024-03-19T00:00:00Z 2024-04-25T00:00:00Z configuring a meshcore ping bot > pro-tip: use meshcore-cli -S to connect to >> bluetooth devices, the device details will be >> cached for future use. so you only need to do >> this once. == y thou? == when you have a small or sparse mesh (terminology for a mesh network) it's handy to have something that automatically responds to messages. if you've ever used the ping command you know what i'm talking about. == software == i'm currently evaluating volley[3] we'll assume you've run meshcore-cli -l and your serial device is /dev/ttyUSB0. also we're using astral's excellent uv to manage pythonic concerns. ``` gh repo gretel/volley cd volley uv sync python main.py -s /dev/tttUSB0 ``` >> pro-tip: if uv fails to find a suitable version >> of python try: uv python install 3.14 then, DM you bot and send "ping" == references == [1] https://meshcore.co.uk/ [2] https://github.com/meshcore-dev/meshcore-cli [3] https://github.com/gretel/volley ]]> gopher://gopher.club:70/0/users/tftp/library/textfiles/privacy.txt privacy 2024-04-13T00:00:00Z 2024-04-25T00:00:00Z keep it safe, keep it secret gopher://gopher.club:70/0/users/tftp/library/textfiles/telly.txt telly 2024-03-25T00:00:00Z 2024-04-25T00:00:00Z currently a curated list of ace rimmer related red dwarf episodes gopher://gopher.club:70/0/users/tftp/library/textfiles/tmux.txt tmux 2024-04-13T00:00:00Z 2024-04-25T00:00:00Z things i've found useful when using tmux