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 / pebble.md
Last active April 18, 2026 00:28
Pebble

This is a test.

Hello Pebble!

@dnnsmnstrr
dnnsmnstrr / trmnl.md
Created April 11, 2026 11:24
This will be displayed on my TRMNL screen

Test

Hello World

@dnnsmnstrr
dnnsmnstrr / exportBookmarks.js
Created March 7, 2026 16:45
Karakeep to Shiori
const fs = require('fs');
const path = require('path');
// Read the JSON file
const bookmarksFilePath = path.join(__dirname, 'bookmarks.json');
const bookmarksData = JSON.parse(fs.readFileSync(bookmarksFilePath, 'utf-8'));
// Function to convert bookmarks to CSV/TSV
function convertToCSV(bookmarks, delimiter = ',') {
const header = ['URL', 'Title'];
@dnnsmnstrr
dnnsmnstrr / raycast-to-alfred.js
Created March 6, 2026 15:35
Raycast Snippets to Alfred
import fs from 'fs'
const RCSnippets = JSON.parse(fs.readFileSync('./snippets.json', 'utf-8'))
if (!fs.existsSync('./output')) {
fs.mkdirSync('./output')
}
RCSnippets.forEach(sn => {
const data = {
@dnnsmnstrr
dnnsmnstrr / camera.sh
Last active January 24, 2026 16:32
Pi Cam
#!/usr/bin/env bash
set -e
LED=27
DIR="$HOME/Pictures"
mkdir -p "$DIR"
raspi-gpio set $LED op
# take picture with timestamp as name
@dnnsmnstrr
dnnsmnstrr / README.md
Last active July 12, 2025 20:24
JSON Schema

JSON Schema for Gist-API

Prompt to generate a schema with Raycast AI

Generate a valid JSON schema based on the provided data. The name of the schema is {argument name="Name"}.

Requirements:
- only output valid JSON text adhering to the JSON schema
@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