Skip to content

Instantly share code, notes, and snippets.


Dennis Muensterer dnnsmnstrr

View GitHub Profile
dnnsmnstrr / Create Gist.js
Created Nov 7, 2021
A scriptable for creating/updating gists
View Create Gist.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: file-code;
// To use this script, you need to configure an OAuth App on GitHub.
// Follow the instructions on the link below to create your OAuth App.
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=Create%20Gist
dnnsmnstrr /
Created Aug 1, 2021
Launch BetterTouchTool's named triggers from the command line. Requires the BTT webserver interface to be active.
if [ -z "$1" ]
echo "No trigger supplied"
curl "$*"
dnnsmnstrr /
Created Mar 13, 2021
Takes a picture using the raspberry pi camera and saves the resulting image with datetime filename
from picamera import PiCamera
import time
import os
camera = PiCamera()
currentTime = time.strftime("%Y-%m-%d-%T")
dnnsmnstrr /
Last active Mar 11, 2021
Displays the full date and time on a waveshare e-paper display (2.13in V2)
# -*- coding:utf-8 -*-
import sys
import os
picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic')
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib')
if os.path.exists(libdir):
import logging
dnnsmnstrr / response.json
Last active Oct 21, 2021
My playlists on Spotify available via a custom personal API. (the response.json is the data source)
View response.json
"current": "",
"chill": "",
"spring": "",
"summer": "",
"autumn": "",
"winter": "",
"sleep": "",
"coding": "",
"sports": "",
View paste
# Say a random curseword
function cuss () {
CUSS_WORDS=("fuck" "shit" "bitch" "asshole" "motherfucker" "cunt")
VOICES=("Albert" "Zarvox" "Alex" "Bad News" "Deranged" "Trinoids" "Hysterical")
RANDOM_VOICE=${VOICES[$( jot -r 1 0 $((${#VOICES[@]} - 1)) )]}
CUSS=${CUSS_WORDS[$( jot -r 1 0 $((${#CUSS_WORDS[@]} - 1)) )]}
echo $CUSS
say ${1:-$CUSS} -v ${2:-$RANDOM_VOICE}
dnnsmnstrr /
Last active Sep 28, 2020
Shell Snippets

Shell Snippets

Most of these should work in bash and/or zsh


Get network location

CURRENT_LOCATION=$(scselect | tail -n +2 | egrep '^\ +\*' | cut -d \( -f 2- | sed 's/)$//')
dnnsmnstrr / index.html
Last active Sep 14, 2020 — forked from labnol/index.html
Website in iFrame
View index.html
<iframe src="" width="1920" height="1080" frameborder="0" style="border:0"></iframe>