Skip to content

Instantly share code, notes, and snippets.

View frap129's full-sized avatar
💧
my crops doing well....irrigation is the future

Joe Maples frap129

💧
my crops doing well....irrigation is the future
View GitHub Profile
@frap129
frap129 / config
Created December 4, 2022 01:10
Sway config for a bug report
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
@frap129
frap129 / sway.log
Created December 4, 2022 01:09
Sway log for a bug report
00:00:00.000 [INFO] [sway/main.c:343] Sway version 1.7
00:00:00.000 [INFO] [sway/main.c:344] wlroots version 0.15.1
00:00:00.003 [INFO] [sway/main.c:120] Linux ArchStrix 6.0.10-native_amd-xanmod1-1 #1 SMP PREEMPT_DYNAMIC Tue, 29 Nov 2022 00:56:17 +0000 x86_64 GNU/Linux
00:00:00.003 [INFO] [sway/main.c:136] Contents of /etc/lsb-release:
00:00:00.003 [INFO] [sway/main.c:120] DISTRIB_ID="Arch"
00:00:00.003 [INFO] [sway/main.c:120] DISTRIB_RELEASE="rolling"
00:00:00.003 [INFO] [sway/main.c:120] DISTRIB_DESCRIPTION="Arch Linux"
00:00:00.003 [INFO] [sway/main.c:136] Contents of /etc/os-release:
00:00:00.003 [INFO] [sway/main.c:120] NAME="Arch Linux"
00:00:00.003 [INFO] [sway/main.c:120] PRETTY_NAME="Arch Linux"
@frap129
frap129 / swap-windows.py
Created November 28, 2022 17:18
i3/sway mark, swap, unmark with a single command using i3ipc-python
#!/usr/bin/env python3
from i3ipc import Connection
mark = "swapTarget"
con = Connection()
try:
# Swap marked target with focus, unmark
swapTarget = con.get_tree().find_marked(mark)[0]
con.command("swap container with mark %s" % mark)
@frap129
frap129 / fix-explicit-deps.sh
Last active February 9, 2022 19:28
Script to ask user if depencies that were explicitly installed should be marked as dependencies.
#!/bin/bash
explicitPkgs="$(pacman -Qeq)"
# Create list of all dependencies, whether explicitly installed or not
allDeps=""
for pkg in $explicitPkgs; do
allDeps+=" $(pactree -u $pkg | awk 'NR>1')"
done
depsList="$(echo $allDeps | tr ' ' '\n' | sort | uniq)"
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 64
rotation_distance: 40
endstop_pin: ^PC0
position_endstop: 0
position_max: 162
homing_speed: 50
@frap129
frap129 / flsun_q5_tmc2208UART.cfg
Last active March 28, 2021 01:27
Klipper Config for the FLSUN Q5 with TMC2208 Drivers in UART mode
[stepper_a]
step_pin: PE3
dir_pin: PE2
enable_pin: !PE4
endstop_pin: PA15
microsteps: 16
rotation_distance: 40
homing_speed: 20
homing_retract_dist: 5
homing_retract_speed: 10
@frap129
frap129 / ender2_skr-mini-e3-v1.2_bltouch.cfg
Last active February 10, 2024 03:59
Klipper config for Ender 2 with SKR Mini E3 v1.2, BLTouch, and Stock display/heaters
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
step_distance: .0125
endstop_pin: ^PC0
position_endstop: 0
position_max: 160
homing_speed: 50
//CSK 3/17/2013 Libraries new location
//https://github.com/FastLED/FastLED
//https://github.com/FastLED/FastLED/wiki/Overview
#include "FastLED.h"
// Constants
#define COLOR_ORDER GRB
#define MAX_BRIGHTNESS 200 // MAX is actually 255, set to 200 to reduce draw and thermal output
#define NUM_LEDS 150