Skip to content

Instantly share code, notes, and snippets.

View sburris0's full-sized avatar
🧪

Spencer sburris0

🧪
View GitHub Profile
@sburris0
sburris0 / weather.sh
Created March 10, 2021 00:43
Use wttr.in to create a statusbar display, use $(cat /tmp/weather) in your bar script
while true
do
# Get output silently, remove unwanted lines, reformat, output to temp file
curl -s wttr.in?QT0 | grep -m 1 ' °F' | perl -pe 's/.*?\+(\d+2)(\(d+\))? °F.*$/$1$2 °F/' > /tmp/weather
sleep 900
done
@sburris0
sburris0 / template
Last active November 10, 2020 16:03
libcyaml template
# Template file for 'libcyaml'
pkgname=libcyaml
version=1.0.2
revision=1
build_style=gnu-makefile
hostmakedepends=""
makedepends="libyaml-devel"
depends="libyaml"
short_desc="C library for reading and writing YAML"
maintainer="Spencer Burris <sburris@posteo.net>"