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 / rainbow.py
Last active March 29, 2025 20:04
Raspberry Pi Pico 2 with LED matrix
import time
import math
from machine import Pin
import rp2
NUM_LEDS = 25 # 5x5 matrix
max_lum = 100 # Maximum brightness level
brightness = 0.1 # Scale brightness (0.0 to 1.0)
@rp2.asm_pio(sideset_init=rp2.PIO.OUT_LOW, out_shiftdir=rp2.PIO.SHIFT_LEFT, autopull=True, pull_thresh=24)
@dnnsmnstrr
dnnsmnstrr / printer.cfg
Created March 29, 2025 17:56
CR6-SE Klipper Config
# This file contains pin mappings for the stock 2020 Creality CR6-SE.
# To use this config, during "make menuconfig" select the STM32F103
# with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
# communication.
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
@dnnsmnstrr
dnnsmnstrr / responsively.sh
Created March 24, 2025 11:45
Raycast Script Command to quickly open URLs in Responsively (https://responsively.app/)
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open URL in Responsively
# @raycast.mode silent
# Optional parameters:
# @raycast.icon /Applications/ResponsivelyApp.app/Contents/Resources/icon.icns
@dnnsmnstrr
dnnsmnstrr / .zshrc
Created March 22, 2025 22:06
My zshrc file
# NVM
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
@dnnsmnstrr
dnnsmnstrr / now.json.js
Last active March 22, 2025 02:17
Scriptable API for my now.json service
// 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.
// https://developer.github.com/apps/building-oauth-apps/creating-an-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=now.json
//
// Now that you have an app, you can run this script. The script will prompt you to enter the client ID and client secret you got after creating the app on GitHub.
@dnnsmnstrr
dnnsmnstrr / now.json
Last active February 23, 2025 21:40
Original Now as a Gist
{
"status": "Working at 3st as a Full Stack Developer. Now with formatting",
"playlist": {
"name": "Warten",
"uri": "5k4CrIEvYeNCg0go3BPR56"
},
"activities ": [
"Saw the RTO and Jan Böhmermann in Cologne"
],
"plans": [
@dnnsmnstrr
dnnsmnstrr / play-coding-playlist.applescript
Created February 20, 2025 09:14
Raycast Script Command to start my coding playlist on shuffle
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Play Coding Playlist
# @raycast.mode silent
# Optional parameters:
# @raycast.packageName Spotify
# @raycast.icon 💻
{
"actions":[
{
"title":"Open Tweet",
"regex":"https?://(mobile\\.|www\\.|m\\.)?twitter\\.com/(@?[a-zA-Z0-9_]{1,15}/)?(status|i/web/status|statuses|i/topics/tweet)/(\\d+).*$",
"testInputs":[
"https://twitter.com/zpower/status/588561590997352448",
"https://mobile.twitter.com/kiebk/status/599159327056863232?cn=cmVwbHk%3D&refsrc=email",
"https://twitter.com/i/web/status/814237378382622720",
"https://twitter.com/hamburger/statuses/221225038941126657",
@dnnsmnstrr
dnnsmnstrr / enkpi.py
Last active February 5, 2025 01:23
Display informantion on the EnkPi 4.2in E-Paper Display
import network
import ntptime
import utime
import math
import urequests
import EnkPi_4in2 as epd
from EnkPi_4in2 import Buzzer
from main import sync_time
from machine import Pin
from secrets import SSID, PASSWORD, WEATHER_API_KEY # Add your weather API key here
@dnnsmnstrr
dnnsmnstrr / check-in.json
Last active November 8, 2024 13:09
Check-In and Check-Out Questions
{
"1": "What are you gonna leave behind to be more present?",
"2": "Today I'll be...",
"3": "How’s your attitude today?",
"4": "What has your attention today? ",
"5": "What was the best gift you've ever got?",
"6": "Which personality traits do you like best in people?",
"7": "What's your energy level for today?",
"8": "What would have to happen to make today a perfect day?",
"9": "How can we make today a perfect day?",