Generic Slack Notifier
81 words, est. 1 min#!/bin/bash -e function sendmessage(){ echo '{"text": "'${1}'" }' > /tmp/slack-tmp.txt curl -X POST \ -H 'Content-type: application/json' \ -d @/tmp/slack-tmp.txt \ "https:/xx/xx/xx" } function sendfile(){ jq -n --arg msg "$(cat $1 | grep -o ' .\+')" \ '{"text": $msg }' > /tmp/slack-tmp.txt curl -X POST \ -H 'Content-type: application/json' \ -d @/tmp/slack-tmp.txt \ "https:/xx/xx/xx" } if test -f "$1"; then sendfile "${1}" else sendmessage "${1}" fi A hack job that sends either the content of a file (mangled) or a message.
Teddit-redirect is now Redlib-redirect
319 words, est. 1 minBackground A couple of years ago, I developed an addon to redirect from Reddit to Teddit. It was convenient and I much preferred the UI of Teddit as well as the privacy gains of using it.
New Design
209 words, est. 1 minReadability and Simplicity This blog is based on Hugo. The old Hugo theme I (and so many others!) used was Terminal by panr. It’s a good theme, pretty simple and has a nice retro look. It’s not very nice to read on though.
Previous Page
6 of 10
Next Page