Skip to content

Instantly share code, notes, and snippets.

View dnnsmnstrr's full-sized avatar
:shipit:

Dennis Muensterer dnnsmnstrr

:shipit:
View GitHub Profile
@dnnsmnstrr
dnnsmnstrr / sponti_bot.js
Last active January 10, 2023 21:43
Telegram Bot on Cloudflare Worker
export default {
async fetch(request, env) {
const getRecords = async (offset) => {
const url = `https://api.airtable.com/v0/${env.AIRTABLE_BASE}/${env.AIRTABLE_ID}?api_key=${env.AIRTABLE_KEY}` + (offset ? `&offset=${offset}` : '')
const response = await fetch(url)
const records = await response.json()
return records
}
@dnnsmnstrr
dnnsmnstrr / apps.json
Last active February 27, 2023 11:47
List of apps I always install on my phone
[ "alexa", "amazon", "amazonprime", "apollo", "audible", "chrome", "dropbox", "facebook", "google", "googledocs", "googledrive", "googlemaps", "googlephotos", "googlesheets", "googletranslate", "imdb", "instagram", "jayson", "launchcenterpro", "messenger", "netflix", "paypal", "reddit", "scriptable", "signal", "spotify", "telegram", "twitch", "twitter", "workingcopy", "youtube", "mindnode" ]
@dnnsmnstrr
dnnsmnstrr / example1.md
Last active July 15, 2022 20:37
example gist

This is an example gist

@dnnsmnstrr
dnnsmnstrr / example.md
Created July 15, 2022 20:33
example gist

This is an example gist

Ahzumjot █████▋░░░░░░░░░░░ 18 plays
Eden ██▊░░░░░░░░░░░░░░ 9 plays
Kanye West █▌░░░░░░░░░░░░░░░ 5 plays
Harry Styles █▎░░░░░░░░░░░░░░░ 4 plays
High School Musical █▎░░░░░░░░░░░░░░░ 4 plays
Oliver Tree ▉░░░░░░░░░░░░░░░░ 3 plays
Pink Floyd ▉░░░░░░░░░░░░░░░░ 3 plays
Ravyn Lenae ▉░░░░░░░░░░░░░░░░ 3 plays
Troy ▉░░░░░░░░░░░░░░░░ 3 plays
ABBA ▋░░░░░░░░░░░░░░░░ 2 plays
@dnnsmnstrr
dnnsmnstrr / camreact.sh
Last active May 15, 2022 17:36
Shell script to react to the state of a webcam in macOS Monterey
log stream --predicate 'subsystem contains "com.apple.UVCExtension" and composedMessage contains "Post PowerLog"' --style ndjson | while read LOGLINE
do
echo ${LOGLINE} | grep -q '"VDCAssistant_Power_State" = Off' && WEBCAM_STATE='Off'
echo ${LOGLINE} | grep -q '"VDCAssistant_Power_State" = On' && WEBCAM_STATE='On'
echo ${WEBCAM_STATE}
done
  • Day 1
  • Day 2
  • Day 3
  • Day 4
@dnnsmnstrr
dnnsmnstrr / Create Gist.js
Created November 7, 2021 10:09
A scriptable for creating/updating gists
// 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
//
// https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
//
{
"basics": {
"name": "Dennis Muensterer",
"label": "Developer",
"image": "https://avatars.githubusercontent.com/u/3686989?v=4",
"email": "dennismuensterer@gmail.com",
"url": "http://dnnsmnstrr.github.io",
"summary": "Dennis develops mobile and web applications. He is an alumni of the Apple Developer Academy in Naples, Italy.",
"location": {
"address": "",