Skip to content

Instantly share code, notes, and snippets.

Arron Mabrey arronmabrey

Block or report user

Report or block arronmabrey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arronmabrey / gist:95f1b59c8d0d60d68cb9
Created Feb 29, 2016
amazon order/item csv merge
View gist:95f1b59c8d0d60d68cb9
mlr --icsv --ocsv cut -o -f "Order ID","Title","Item Total" then put '$Title=gsub($Title, "\"", "")' items.csv > tmp-items.csv && mlr --icsv --ocsv cut -o -f "Order Date","Order ID","Total Charged","Payment Instrument Type" then nest --implode --values --across-records -f "Total Charged" orders.csv > tmp-orders.csv && mlr --icsv --ocsv join -u -j "Order ID" --lp order_ --rp item_ -f tmp-orders.csv tmp-items.csv > merged.csv && rm tmp-orders.csv tmp-items.csv
arronmabrey / spacemacs-git-gutter-with-linum.el
Last active May 10, 2019
Config git-gutter with linum in Spacemacs
View spacemacs-git-gutter-with-linum.el
(defun dotspacemacs/layers ()
'((version-control :variables
version-control-global-margin t
version-control-diff-tool 'git-gutter
(defun dotspacemacs/init ()
arronmabrey /
Created Apr 18, 2017 — forked from endersonmaia/
rbenv install and system wide install on Ubuntu 12.04
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git:// /usr/local/rbenv
# Add rbenv to the path:
View ios-type2phone-cli.swift
#!/usr/bin/env swift
import Foundation
print("Enter keycode to send: ", terminator: "")
if let keycode = readLine() {
print("set keycode = \(keycode)")
arronmabrey /
Last active Jul 17, 2016
graphviz hello world
digraph {
hello [color=red]
world [shape=box color=green]
hello -> gist1
a [color=purple]
b [shape=box color=pink]
c [color=blue]
View shasum-snippet.txt
find . -type f -print0 | xargs -0 shasum -a 256 | tee shasum256-check.txt
shasum -a 256 -c shasum256-check.txt | tee shasum256-scan.txt
arronmabrey / explode_paths.rb
Last active Feb 19, 2016
View explode_paths.rb
# Inspiration:
def explode_paths(input, klass: Hash, key_delimiter: '__', key_transform: ->(key) { key.to_sym })
recursive_hash = { |hash, key| hash[key] = }
result = input.to_h.reduce(recursive_hash) do |recursive_acc, (input_key_path, input_value)|
keys = input_key_path.to_s.split(key_delimiter).map(&key_transform)
tree = {|key| [:[], key] }
tree.push([:[]=, tree.pop[1], input_value])
tree.reduce(recursive_acc) do |acc, tree_node|
View livereload-hotjsloader.js
"use strict";
(function() {
window.LiveReloadPluginHotJSLoader = (function() {
LiveReloadPluginHotJSLoader.identifier = 'livereload-hotjsloader';
LiveReloadPluginHotJSLoader.version = '1.0';
function LiveReloadPluginHotJSLoader(window, host) {
this.window = window; = host;
arronmabrey / gist:7213561
Last active Dec 26, 2015
Api::NotificationsController JSON Examples
View gist:7213561
// General System Notifications
"message":"Lumentus Social will be offline for maintenance.",
View gist:5809556
For actually making the SuperDrive work in clean and easy way, just read on (but note: while has proven to be a quite safe method, still you’ll be doing this entirely on your own risk! Using sudo and editing system files incorrectly can damage things severely!):
Apparently, Apple engineers had the need to test the superdrive with non-MacBookAir computers themselves, so the driver already has an option built-in to work on officially unsupported machines! All you need to do is enable that option, as follows:
The driver recognizes a boot parameter named “mbasd” (Mac Book Air Super Drive), which sets a flag in the driver which both overrides the check for the MBA and also tweaks something related to USB power management (the superdrive probably needs more power than regular USB allows). So just editing /Library/Preferences/SystemConfiguration/ and inserting the “mbasd=1″ into the “Kernel Flags” does the trick:
open a terminal
type (on a single line)
sudo pico /Library/Preferences/SystemConfig
You can’t perform that action at this time.