Skip to content

Instantly share code, notes, and snippets.

@xtoddx
xtoddx / printer-tronxy-x5sa-2e.cfg
Created November 28, 2023 02:08
klipper config for tronxy X5SA-2E 3d printer, chitu main board
# This is a Klipper configuration for TronXY X5SA-2E CoreXY Printer
# 330x330x400 size with CXY-V6 motherboard, Tronxy blue self-levelling plate sensor
# and stock Titan Extruder (x2) Clone with Cyclops-like hotend for 2-in-1-out.
###########################################################
# CAUTION: The Touchscreen cannot be used with Klipper!!! #
# You will lose all the display functionalities!!! #
###########################################################
# === FLASHING WITH STOCK BOOTLOADER ===
@xtoddx
xtoddx / gist:b36787bc01546ec16cc459075a76114f
Last active June 2, 2023 00:37
Adblock Plus filters for cleaning subscriptions page
# Unsubscribe from Shorts
# works as of 09 Mar 2023, YMMV
# youtube.com#?#ytd-grid-video-renderer:-abp-has(div#dismissible > ytd-thumbnail > a[href*="/shorts/"])
# works as of 01 Jun 2023, doesn't re-flow the remaining videos
youtube.com#?#ytd-rich-item-renderer:-abp-has(div#dismissible > ytd-thumbnail > a[href*="/shorts/"])
# Don't show upcoming streams
# works as of 27 Mar 2023, YMMV
# youtube.com#?#ytd-grid-video-renderer:-abp-contains(Notify me)
# works as of 01 Jun 2023, doesn't re-flow the remaining videos
@xtoddx
xtoddx / migrate-github-to-codecommit.md
Last active January 14, 2016 21:30
Notes on migrating repos from github

Notes on migrating repos from Github to AWS CodeCommit

Rationale

Github bills per repository. Moving unused repositories to an archival tier can reduce costs. You can still use Github for your daily flow, but not pay for untouched data.

Process

@xtoddx
xtoddx / who-iam.rb
Created July 28, 2015 19:54
who-iam.rb
#!/usr/bin/env ruby
# Inspired by:
# http://blog.jverkamp.com/2015/07/22/finding-aws-iam-users-by-access-key/
require 'fog/aws'
Fog.credential = ARGV.shift.to_sym
search_id = ARGV.shift
@xtoddx
xtoddx / gist:8982079
Created February 13, 2014 19:28
capistrano notes
Default deployment scenario:
https://github.com/capistrano/capistrano/blob/master/lib/capistrano/tasks/framework.rake#L59
(all of which start as empty tasks)
starting started
updating updated
publishing published
finishing finished
including capistrano/deploy adds a few more hooks
starting => check
@xtoddx
xtoddx / giving_tuesday.geojson
Last active December 30, 2015 01:19
Map points for FivePowered.org (#GivingTuesday in Lexington, KY).
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xtoddx
xtoddx / localrc
Created April 25, 2012 21:54
localrc to run essex release of OpenStack with devstack
NOVNC_BRANCH=master
NOVACLIENT_BRANCH=master
KEYSTONECLIENT_BRANCH=master
QUANTUM_CLIENT_BRANCH=master
MELANGECLIENT_BRANCH=master
NOVA_BRANCH=stable/essex
SWIFT_BRANCH=stable/essex
GLANCE_BRANCH=stable/essex
KEYSTONE_BRANCH=stable/essex
@xtoddx
xtoddx / gist:1967021
Created March 3, 2012 16:58
Install muralmapper
# brew install couchdb
# sudo easy_install pip
# sudo pip install couchapp
# brew install node
# curl http://npmjs.org/install.sh | sh
# git clone https://github.com/openlexington/muralmapper.git
# cd muralmapper
[TWITTER STUFF]
# cp node/config.example.js node/config.js
@xtoddx
xtoddx / gist:1966943
Created March 3, 2012 16:49
Muralmapper TODO
Sign up for a twitter account
Sign up for a google maps api key
Change text and twitter address
Change maps api key
Change map center location
[done]
Clone into openlexington's github: http://github.com/openlexington/murlamapper.git
@xtoddx
xtoddx / gist:1966889
Created March 3, 2012 16:28
Install muralapp
# brew install couchdb
# sudo easy_install pip
# pip install couchapp
# git clone https://github.com/codeforamerica/muralapp.git
# cd muralapp
# cp javascripts/settings.example.js javascripts/settings.js
# vi javascripts/settings.js
# cd couchapp
# couchapp push . http://localhost:5984/murals
# cd ..