mervhammer boosted

Because one person heard about the last P4 Hackathon from here (and it tickled me so -- sorry, I forgot who you were!)

Let me announce that a second European P4 hackathon is being organized for sometime in October (exact date TBD) this time in Amsterdam!

mervhammer boosted

I'm talking about using #OpenBSD #vmm for bsd.network, and for my bgp tutorials, at #bhyvecon in about 20 minutes

live stream is at bhyvecon.org/

mervhammer boosted

Create an inline ruler prompt in BSD ed(1) with

$ ed -p "$(jot 8 | xargs printf %10i; printf '\r* ')"

or at the top

$ ed -p "$(tput sc; tput home; jot 8 |xargs printf %10i; tput rc)"

GNU ed dislikes/truncates long prompts, so use 7 instead of 8 (and s/jot/seq/g)

inspired by bjoernwibben@:birdsite:

mervhammer boosted

git hook for dynamic commit message 

Say you want the current branch-name in your commits:

$ ed .git/hooks/prepare-commit-msg
a
#!/bin/sh
# get the current branch-name
BR="$( git rev-parse --abbrev-ref HEAD )"
# create a temp-file
TF="$( mktemp git.XXXXX )"
echo "[$BR] Short commit message" > "$TF"
echo >> "$TF"
cat "$1" >> "$TF"
mv "$TF" "$1"
.
w
!chmod +x %
q

Then when your $EDITOR opens, the commit message has your dynamic modifications already in place.

mervhammer boosted

BSDCan talk spoiler 

"We are so good and efficient at writing secure software that we not only have time to make release art and write silly songs, we can also get out of our basement to travel the world and hack and hike together. I'm sorry if it makes people jealous."

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.