Skip to content

Instantly share code, notes, and snippets.


Matthew Swasey mig

  • LivingSocial
  • Washington DC
View GitHub Profile
m / gist:f27ae57113e34392c6d5
Created May 30, 2015
Auto-unsubscribe on
View gist:f27ae57113e34392c6d5
var i = 0;
function unroll_me_unsubscribe() {
// Bail if share modal (indicating free limit reached) is encountered.
if ( jQuery( '#fb-root' ).length > 0 ) { return; }
var unsub_link = jQuery( '.LetterList a.uicon-set-unsubscribe:first' );
if ( unsub_link.length > 0 ) {
document.getElementById( unsub_link.attr( 'id' ) ).click();
if ( i++ < 6000 ) { /* Upper limit in case something goes wrong. */
setTimeout( unroll_me_unsubscribe, 1500 );
View active-support-test-case.diff
diff --git a/rinari.el b/rinari.el
index f74494b..febdd5f 100644
--- a/rinari.el
+++ b/rinari.el
@@ -195,10 +195,15 @@ argument allows editing of the test command arguments."
(or (string-match "test" (or (ruby-add-log-current-method)
(file-name-nondirectory (buffer-file-name))))
- (let* ((funname (ruby-add-log-current-method))
+ (let* ((funname (rinari-test-function-name))
mislav /
Created Oct 16, 2011
Shortest simplest sweetest web "hello {NAME}" in Ruby
run ->(e){ p=Hash[*e['QUERY_STRING'].split(/[&=]/)]; [200, {'Content-type'=>'text/html'}, ["Hello #{p['name']}!"]] }
kemadz /
Last active Nov 21, 2015
LiveISO Part of ArchLinux Virtualbox Guest Install Script
# LiveISO Part of ArchLinux Virtualbox Guest Install Script
# system clock
# date `date +%m%d%H%M%Y.%S --date='-8 hour'`
# partitions
sgdisk --zap-all /dev/sda
sgdisk \
pcolby / ! XPS
Last active Aug 24, 2017
XPS 13 9343
View ! XPS

Just some notes on my XPS 13 (9343) setup.

See also mpalourdio/xps13.

  -> DP-1-1
    -> DP-1-1-1: Dell 2007FPB (Left)  [eVGA DP3]
    -> DP-1-1-2: Dell 2007FPB (Right) [eVGA DP2]
 -&gt; DP-1-2: Dell U3014 (Middle) [eVGA DP1]
thoroc / Debloat-Windows10.ps1
Created Aug 18, 2015
Windows 10 PowerShell script to disable E.T. features ....
View Debloat-Windows10.ps1
Debloats and customizes Windows 10 Enterprise N LTSB.
It changes your privacy options in the settings app and disables scheduled tasks and services that are there
to gather information about you. It also tweaks the registry to customize settings, make your font display properly
on DPI scaling 125% and disable OneDrive completely. Windows Features are also disabled, such as Internet Explorer
and XPS Viewer, while others are enabled such as .NET framework 3.5. On top of it all, it appends new lines to your
hosts file that block Microsoft from collecting data on you, as well as enables or disables local policies to
georgwacker / Windows10Cleanup.ps1
Created Jul 31, 2015
Windows 10 Cleanup Script
View Windows10Cleanup.ps1
Cleans unwanted pre-bundled Windows 10 applications
$RemoveApps = "Microsoft.3DBuilder", "Microsoft.BingFinance", "Microsoft.BingFoodAndDrink", "Microsoft.BingHealthAndFitness", "Microsoft.BingNews",`
"Microsoft.BingSports", "Microsoft.BingTravel", "Microsoft.Weather", "Microsoft.Getstarted", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection",`
"Microsoft.Office.OneNote", "Microsoft.People", "Microsoft.SkypeApp", "Microsoft.Windows.Photos", "Microsoft.WindowsCamera", "microsoft.windowscommunicationsapps",`
"Microsoft.WindowsMaps", "Microsoft.WindowsPhone", "Microsoft.WindowsReadingList", "Microsoft.WindowsSoundRecorder", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo"`

KC60 Keyboard end-user tips, tricks, programming notes, etc.

Leimi's note: removed lots of stuff from the original gist of scottjl, (thanks to him by the way!), as in the end some wasn't useful for me. If you are intestered, go check the gist revisions.

The KC60 is kinda like a premade GH60 that was first sold on Massdrop during summer 2015.
It runs on TMK firmware, or something based on it at least (not sure this is the real source for the keyboard but it seems it is), which means it's heavily programmable.
There is a GUI tool (the source of this tool seems to be here) and a command-line tool to ease up the process of programming the board.
**Go check this great article on Key

denmarkin / resque.rake
Created Sep 20, 2011
My rake task for clearing Resque queues and stats
View resque.rake
# see - old version
# see
# see - new commands
namespace :resque do
desc "Clear pending tasks"
task :clear => :environment do
queues = Resque.queues
queues.each do |queue_name|
puts "Clearing #{queue_name}..."
burningTyger /
Last active Mar 15, 2022
Install Arch
# This guide is based on
# compare for more details on each step. It's a great guide and seems to get frequent updates.
# This guide has a few changes that helped me to get thew bootloader running
# Start up the Live USB/CD and enable SSH:
# set a password for root to enable ssh login
# *
systemctl start sshd.service