Skip to content

Instantly share code, notes, and snippets.

Avatar

Drew Wallace drew-wallace

  • Turner Broadcasting
  • Atlanta, GA
View GitHub Profile
View Auto Check-In to Southwest Flights.user.js
// ==UserScript==
// @name Auto Check-In to Southwest Flights
// @namespace http://www.ryanizzo.com/southwest-auto-check-in/
// @version 1.8
// @author Nicholas Buroojy (http://userscripts.org/users/83813)
// @contributor Ryan Izzo (http://www.ryanizzo.com)
// @contributor JR Hehnly (http://www.okstorms.com @stormchasing)
// @contributor Trevor McClellan (github.com/trevormcclellan)
// @description Automatically check in to Southwest Airline flights at the appropriate time.
// @include https://www.southwest.com/air/check-in/index.html*
@drew-wallace
drew-wallace / jamf.md
Created Aug 27, 2019 — forked from a7ul/jamf.md
removing all restrictions on jamf managed macos device - Provided you have root access.
View jamf.md

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

@drew-wallace
drew-wallace / getBroadcastDateRange.js
Created Jul 31, 2018 — forked from sonyseng/getBroadcastDateRange.js
Given a Gregorian Date, get the Broadcast Date Ranges for Week, Month, Quarter, and Year
View getBroadcastDateRange.js
(function (url, onLoad) {
var script = document.createElement('script');
script.addEventListener('load', onLoad);
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}('https://cdn.jsdelivr.net/npm/moment@2.19.2/moment.min.js', function () {
const fmt = 'MM/DD/YYYY';
function getBroadcastWeek(momentDate) {
View sketchfab-dl-script
// ==UserScript==
// @name sketchfab2obj
// @description Save Sketchfab models as obj
// @author <anonimus>
//
// Version Number
// @version 1.62
//
// Urls process this user script on
// @include /^https?://(www\.)?sketchfab\.com/models/.*
@drew-wallace
drew-wallace / get-joystick-guid
Created Jun 3, 2017
SDL Joystick GUID finder
View get-joystick-guid
#!/usr/bin/env ruby
class JoystickGUID
EVIOCGID = 0x80084502
# Derive an SDL-style GUID from bus type, vendor, product, version
def JoystickGUID::ReadGUID(filename)
input = [0,0,0,0].pack('SSSS')
success = 0
File.open(filename, File::RDONLY|File::NONBLOCK){ |file|
@drew-wallace
drew-wallace / 0-manual_setup
Last active Feb 2, 2022
Set up Raspberry Pi for PC streaming with Parsec
View 0-manual_setup
sudo raspi-config
# Change password (1)
# Change hostname if you want (2)
# Change locale/timezone/keyboard/wifi region in Localisation (4)
# Enable ssh in Interfacing (5)
@drew-wallace
drew-wallace / private.xml
Last active Mar 20, 2017
Macally keyboard mappings for Karabiner
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>Rotate Delete, Home, and Save (F13) counter-clockwise</name>
<identifier>private.rotate_delete_home_save_f13_counter_clockwise</identifier>
<block>
<!--Macally-->
<device_only>DeviceVendor::RawValue::0x2222, DeviceProduct::RawValue::0x0018</device_only>
<autogen>__KeyToKey__ KeyCode::HOME, KeyCode::FORWARD_DELETE</autogen>
<autogen>__KeyToKey__ KeyCode::FORWARD_DELETE, KeyCode::S, ModifierFlag::COMMAND_L</autogen>
@drew-wallace
drew-wallace / custom filter
Created Mar 10, 2017
Block open.spotify.com audio adds with adblock filter
View custom filter
/mp3-ad/*$domain=open.spotify.com
@drew-wallace
drew-wallace / main.js
Created Feb 23, 2017
Deep JSON Equality performance
View main.js
const _ = require('lodash');
const deepEqual = require('deep-equal');
const value_equals = require('toubkal/lib/util/value_equals');
const request = require("request");
const rp = require('request-promise');
let url = "https://gist.githubusercontent.com/drew-wallace/3dd411fc6b969648cd67a02de58b0329/raw/82b2ec2e8c193f0d1affac047a114e95fa159b74/JMdict-all.json";
rp({
uri: url,