Skip to content

Instantly share code, notes, and snippets.

View koriwi's full-sized avatar
🤩
creating pcbs with my msla 3d printer

Kilian Gosewisch koriwi

🤩
creating pcbs with my msla 3d printer
View GitHub Profile
@KernelGhost
KernelGhost / rockbox_converter.sh
Last active August 24, 2026 23:18
A bash script that produces MP3 files containing track metadata and embedded album art in a format compatible with iPod Classics running Rockbox.
#!/usr/bin/env bash
################################################################################
# Name: rockbox_converter.sh
# Authors: Rohan Barar
# Revision: 19/11/2025 (DD/MM/YYYY)
# Purpose: Recursively traverse a given input directory to convert all supported
# audio files to 'Rockbox' compatible MP3 files, with a focus on
# ensuring both track metadata (e.g. Title, Artist, Album, etc.) as
# well as embedded album/cover are displayed correctly by Rockbox.
# Usage: ./rockbox_converter.sh <input_dir> <output_dir>
@kmobs
kmobs / frequencytester.md
Last active March 11, 2026 21:30
Frequency Tester

Frequency Testing

This will allow you to test a specific frequency that you hear when you do your resonance testing in Klipper and potentially track down where extra peaks are coming from. If something is rattling at a specific frequency, you can specify that frequency and feel around the printer until you track it down.

Code was adopted by zifnab from somewhere in Klipper.

Usage

You have to have [resonance_holder] in your printer.cfg.

The command is HOLD_RESONANCE AXIS=<axis> FREQ=int SECONDS=<seconds>

@Hermann-SW
Hermann-SW / SerialHttpsClient.ino
Created March 22, 2021 21:46
ESP01 sketch taking HTTPS GET URLs from Pico over serial, returning response to Pico
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecureBearSSL.h>
ESP8266WiFiMulti WiFiMulti;
@langerhans
langerhans / README.md
Last active April 30, 2025 01:11
Updating MultiDoge checkpoints

Updating MutliDoge checkpoints

Why?

If you are using MultiDoge and are stuck far behind in syncing, then this guide is for you. Even if you are currently already synced it's worth following this guide to be prepared for future re-syncs, but you can skip some steps. These new checkpoints contain blocks up to Jan 30th 2021. If you are trying to sync a wallet that has been created before around summer 2016, then sadly this won't really help you.

How?

  1. Close MultiDoge completely.
  2. Download this file: multidoge.checkpoints
  3. Copy this file to the MultiDoge data directory. See below for the path. Overwrite the existing file. If you are already synced, you're done at this point, If not, continue.
  4. Start MultiDoge.
@Mnkai
Mnkai / README.md
Last active July 11, 2026 09:52
TDP and turbo parameter modification with MSR on non-overclockable Intel CPU (such as Intel i7-8550U)

TDP and Turbo Parameter Modification with MSR on Non-Overclockable CPUs

Disclaimer

  • Modifying MSR may void your CPU's (or system board's) warranty. Proceed with caution. I am not responsible for any damage caused by this article.
  • MSR addresses vary significantly between CPUs. Check your CPU's MSR address using Intel's documentation.
  • This has only been tested on the Intel i7-8550U (Kaby Lake R).
  • This article is a translation of this article. If you can read Korean, I recommend reading that article instead.

Introduction

try{
window.AudioContext = window.AudioContext || window.webkitAudioContext
}catch(e){
alert("Web audio API is not supported in this browser")
}
try{
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia
var hasMicrophoneInput = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia)
}catch(e){
@ertseyhan
ertseyhan / remount.sh
Created February 2, 2016 20:51
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."
@s-panferov
s-panferov / option.ts
Created November 30, 2014 12:15
Option and Result types from Rust in TypeScript
interface Option<T> {
map <U>(fn: (a: T) => U): Option<U>;
isSome(): boolean;
isNone(): boolean;
isSomeAnd(fn: (a: T) => boolean): boolean;
isNoneAnd(fn: () => boolean): boolean;
unwrap(): T;
unwrapOr(def: T): T;
unwrapOrElse(f: () => T): T;
map<U>(f: (a: T) => U): Option<U>;
@mateuszwenus
mateuszwenus / save_restore_dependencies.sql
Last active May 24, 2026 19:59
PostgreSQL: How to handle table and view dependencies
create table deps_saved_ddl
(
deps_id serial primary key,
deps_view_schema varchar(255),
deps_view_name varchar(255),
deps_ddl_to_run text
);
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as
$$
@timpulver
timpulver / GetNameAndTitleOfActiveWindow.scpt
Created February 11, 2013 10:38
[AppleScript] Get Name of active window | Returns the name / title of the active (frontmost) window
# taken from user Albert's answer on StackOverflow
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title
# tested on Mac OS X 10.7.5
global frontApp, frontAppName, windowTitle
set windowTitle to ""
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp