gopher://gopher.club:70/1/users/tftp/library/catalog/library2024-04-25T00:00:00Zgopher.clubgopher://gopher.club:70/0/users/tftp/library/textfiles/awk.txtawk2024-04-19T00:00:00Z2024-04-25T00:00:00Zmy 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.txtfiglet2024-03-19T00:00:00Z2024-04-25T00:00:00Ztips and tricks for using figlet81 \
| 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.txtgopher2024-04-05T00:00:00Z2024-04-25T00:00:00Zresources for learning how to gophergopher://gopher.club:70/0/users/tftp/library/textfiles/meshcore.txtmeshcore2024-03-19T00:00:00Z2024-04-25T00:00:00Zconfiguring 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.txtprivacy2024-04-13T00:00:00Z2024-04-25T00:00:00Zkeep it safe, keep it secretgopher://gopher.club:70/0/users/tftp/library/textfiles/telly.txttelly2024-03-25T00:00:00Z2024-04-25T00:00:00Zcurrently a curated list of ace rimmer related red dwarf episodesgopher://gopher.club:70/0/users/tftp/library/textfiles/tmux.txttmux2024-04-13T00:00:00Z2024-04-25T00:00:00Zthings i've found useful when using tmux