Skip to content

Instantly share code, notes, and snippets.

View rhukster's full-sized avatar

Andy Miller rhukster

View GitHub Profile
rhukster / printer.cfg
Created December 27, 2021 23:19
Klipper - BLV MGN Cube, tmc2209, sensorless homing x/y, ezable probe z, triple-z leveling
# Mainsail
[include mainsail.cfg]
# Printer settings
enable_force_move: True
path: ~/gcode_files
rhukster / gist:e8f5f3676c38dde29624734ea99bf837
Created September 5, 2020 16:33 — forked from yehgdotnet/gist:6353e367cb1178017980d2437417d6a5
.htaccess (allow only cloudflare IP range) Raw
<Files 403.shtml>
order allow,deny
allow from all
deny from all
allow from
rhukster /
Created August 19, 2020 22:15 — forked from oleq/
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
 (((  Wireless Bluetooth Channel  )))
rhukster /
Last active January 23, 2021 19:25
Upgrade Creality Ender 5 firmware for Mac
rhukster / htaccess_tester.php
Created January 7, 2019 20:28
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Grav .htaccess Tester</title>
<link rel="stylesheet" href="">
body { padding: 2rem; }
textarea.form-input { height: 500px; }
rhukster / better-discord.css
Created November 22, 2018 18:57
Custom discord stylesheet with tighter spacing and better contrast
[class*="membersGroup-"] {
height: 28px;
padding-top: 8px;
padding-left: 12px;
[class*="member-"] {
height: 40px;
[class*="member-"] [class*="avatarWrapper"] [class*="small-"] {
width: 25px;
rhukster / test-ldap-2.php
Created May 5, 2018 04:36 — forked from leftclickben/test-ldap-2.php
Open a connection to an LDAP server, query it for a given user, and check group membership for that user (test script)
# Parse options
$opts = getopt('h:n:u:p:b:s:', array( 'help' ));
if (isset($opts['help']) && $opts['help']) {
echo <<<ENDHELP
$argv[0] [-h HOSTNAME] [-n PORTNUM] [-u USERNAME] [-p PASSWORD] [-b BASEDN] [-s SEARCH]
rhukster / xdebug
Last active January 13, 2022 20:51
#!/usr/bin/env bash
# @author Djamil Legato
# @modified Andy Miller - Homebrew/core compatibility
# @license MIT
# @version 1.3
app="$(basename "$0")"
rhukster /
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to
# Creator: Phil Cook
# Modified: Andy Miller
# >>> IMPORTANT: Moved to:
# >>> Kept here for legacy purposes
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
rhukster / gist:6df3bdb106e2b06242b10ae549e5e021
Last active April 14, 2017 16:42
new Parents field for pages
type: parents
show_root: true
show_all: true
show_fullpath: false
show_slug: true
start_route: '/test'
limit_levels: 3
classes: fancy