Skip to content

Instantly share code, notes, and snippets.

View thehig's full-sized avatar

David Higgins thehig

  • Dublin, Ireland
View GitHub Profile
@thehig
thehig / mtg-mardont
Last active August 29, 2015 14:15
MTG: Decklist - Mardon't
4x Battlefield Forge
4x Bloodsoaked Champion
4x Bloodstained Mire
2x Brutal Hordechief
4x Butcher of the Horde
4x Caves of Koilos
3x Crackling Doom
4x Lightning Strike
2x Magma Jet
2x Thoughtseize
@thehig
thehig / gist:d0a46192fb0f27496b3b
Created March 4, 2015 22:36
javascript: Promise Chaining WIP
// For an introduction to the Page Control template, see the following documentation:
// http://go.microsoft.com/fwlink/?LinkId=232511
(function () {
"use strict";
WinJS.UI.Pages.define("/pages/browse/byHub/byHub.html", {
ready: function (element, options) {
// TODO: Initialize the page here.
@thehig
thehig / gist:baf1a02ad4a460322bf5
Created June 1, 2015 18:12
Minimal working describe
var chai = require('chai');
var mocha = require('mocha');
var sinon = require("sinon");
var sinonchai = require('sinon-chai');
chai.use(sinonchai);
var expect = chai.expect;
function sinonTest(parameter, callback) {
callback(parameter);
@thehig
thehig / sinon-chai-IE-test.html
Last active August 29, 2015 14:22
sinon-chai in browser error
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
@thehig
thehig / raspi-config.sh
Last active August 29, 2015 14:27
kali: raspi-config
wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20150706_all.deb
wget http://http.us.debian.org/debian/pool/main/l/lua5.1/lua5.1_5.1.5-8_armel.deb
wget http://http.us.debian.org/debian/pool/main/t/triggerhappy/triggerhappy_0.3.4-2_armel.deb
dpkg -i triggerhappy_0.3.4-2_armel.deb
dpkg -i lua5.1_5.1.5-4_armel.deb
dpkg -i raspi-config_20130525_all.deb
@thehig
thehig / .bash_profile
Last active December 14, 2015 14:52 — forked from gwing33/.bash_profile
My git shortcuts in my ~/.bash_profile
# Git Shortcuts
alias g='git'
alias gs='git status'
alias gst='git status -sb'
alias ga='git add'
alias gau='git add -u' # Removes deleted files
alias gp='git pull'
alias gpu='git push'
alias gc='git commit -v'
alias gca='git commit -v -a' # Does both add and commit in same command, add -m 'blah' for comment
@thehig
thehig / json2csvfile.js
Created April 19, 2016 15:28
js: Json file to CSV file converter
var converter = require('json-2-csv');
var fs = require('fs');
fs.readFile('Vonbismark.json', 'utf8', function (readError,readData) {
if (readError) {
return console.log(readError);
}
var dataArray = JSON.parse(readData);
// console.log(dataArray.length);
@thehig
thehig / meteor.log
Created May 19, 2016 15:23
meteor: entity too large
2016-05-13 16:02:31+01:00Error: request entity too large
2016-05-13 16:02:31+01:00 at makeError (/app/bundle/programs/server/npm/node_modules/meteor/iron_router/node_modules/body-parser/node_modules/raw-body/index.js:154:15)
2016-05-13 16:02:31+01:00 at readStream (/app/bundle/programs/server/npm/node_modules/meteor/iron_router/node_modules/body-parser/node_modules/raw-body/index.js:188:15)
2016-05-13 16:02:31+01:00 at getRawBody (/app/bundle/programs/server/npm/node_modules/meteor/iron_router/node_modules/body-parser/node_modules/raw-body/index.js:95:12)
2016-05-13 16:02:31+01:00 at read (/app/bundle/programs/server/npm/node_modules/meteor/iron_router/node_modules/body-parser/lib/read.js:64:3)
2016-05-13 16:02:31+01:00 at [object Object].jsonParser (/app/bundle/programs/server/npm/node_modules/meteor/iron_router/node_modules/body-parser/lib/types/json.js:116:5)
2016-05-13 16:02:31+01:00 at packages/iron_router/lib/router.js:277:1
2016-05-13 16:02:31+01:00 at [object Object]._.extend.withValue (packages/meteo
@thehig
thehig / rdpdc.bat
Last active May 20, 2016 10:42
RDP Disconnect
C:\Windows\System32\tscon.exe %sessionname% /dest:console
@thehig
thehig / theD.txt
Created May 31, 2016 11:44
comment: Give it the D
___ _____
/ _ \ ______ ______ ______ ______ ______ ______ ______| __ \
| (_) |______|______|______|______|______|______|______| | | | /\//\/
> _ < ______ ______ ______ ______ ______ ______ ______| | | | /\//\/
| (_) |______|______|______|______|______|______|______| |__| |
\___/ |_____/