Skip to content

Instantly share code, notes, and snippets.

View joe-scotto's full-sized avatar
:shipit:
Vibing

Joe Scotto joe-scotto

:shipit:
Vibing
View GitHub Profile
@joe-scotto
joe-scotto / comment-tags.sh
Last active July 16, 2022 22:48
Run Script for Xcode to detect TODO: and FIXME: comments.
TAGS="TODO:|FIXME:"
ERRORTAG="ERROR:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/"
@joe-scotto
joe-scotto / config
Last active January 18, 2024 06:10
My warpd configuration, designed for use with Colemak.
hint_activation_key: M-R
activation_key: M-I
grid_activation_key: M-G
exit: tab
hint_exit: tab
left: n
right: o
up: e
down: i
@joe-scotto
joe-scotto / Animation
Last active August 1, 2024 20:21
QMK OLED Displays
#ifdef OLED_ENABLE
// Rotate OLED
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_90;
}
// Animation parameters
#define FRAME_DURATION 333 // How long each frame lasts in milliseconds
@joe-scotto
joe-scotto / vfr-info.sh
Last active October 6, 2023 00:18
A script for checking if clips are VFR or not. Requires ffmpeg and ZSH to work.
#!/bin/zsh
# set -euxo
# Text modifiers
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
YELLOW='\033[1;33m'
NC='\033[0m'
@joe-scotto
joe-scotto / Kamp.cfg
Created October 23, 2023 05:04
Kamp.cfg
[gcode_macro BED_MESH_CALIBRATE]
rename_existing: _BED_MESH_CALIBRATE
### This section allows control of status LEDs your printer may have.
variable_led_enable: False # Enables/disables the use of status LEDs in this macro.
variable_status_macro: 'status_meshing' # If you have status LEDs in your printer (StealthBurner), you can use the macro that changes their status here.
### This section configures mesh point fuzzing, which allows probe points to be varied slightly if printing multiples of the same G-code file.
[
{ "id": "vscode.bat", "state": false },
{ "id": "vscode.clojure", "state": false },
{ "id": "vscode.coffeescript", "state": false },
{ "id": "vscode.configuration-editing", "state": true },
{ "id": "vscode.cpp", "state": false },
{ "id": "vscode.csharp", "state": false },
{ "id": "vscode.css", "state": false },
{ "id": "vscode.css-language-features", "state": false },
{ "id": "vscode.dart", "state": false },