Skip to content

Instantly share code, notes, and snippets.

View jmshal's full-sized avatar

Jacob Marshall jmshal

  • New Zealand
View GitHub Profile
Uncaught TypeError: Cannot set property 'exports' of undefined main.js:9200
defineExport main.js:9200
browserifyShim main.js:9198
browserifyShim main.js:9200
(anonymous function) main.js:9204
require.AyKrkQ main.js:9206
s main.js:1
(anonymous function) main.js:1
require../core/button.js main.js:9215
s main.js:1
@jmshal
jmshal / rd.md
Last active August 29, 2015 14:10 — forked from diego898/rd.md

thanks to @neurodyne and this link for updated instructions

This works with the following versions of termsrv.dll

x64 - termsrv.dll - 6.3.9600.17095

Find Replace
39813C0600000F849E310500 B80001000089813806000090
090085C07F078BD8 090085C090908BD8

Keybase proof

I hereby claim:

  • I am jacobmarshall on github.
  • I am jacobmarshall (https://keybase.io/jacobmarshall) on keybase.
  • I have a public key whose fingerprint is 4543 0CA7 26CF 0989 29F7 1D0A C25C E133 0AFC 3EB0

To claim this, I am signing this object:

@jmshal
jmshal / test.js
Created March 21, 2015 06:35
Playing around with DataView and ArrayBuffer in JavaScript...
var typeReference = [
['Byte', 'Int8' ],
['UnsignedByte', 'Uint8' ],
['Short', 'Int16' ],
['UnsignedShort', 'Uint16' ],
['Long', 'Int32' ],
['UnsignedLong', 'Uint32' ],
['Float', 'Float32'],
['Double', 'Float64']
];
@jmshal
jmshal / boo_watching.md
Created September 28, 2015 22:25
boo_watching.md

HI HERE ARE SOME DOG HALP *** SORRY HE IS SO GODDAMN DIRTY ***

Boo Sitting (March 15-19th) 15th: Afternoon/PM 16th: AM/Afternoon/PM 17th: AM/PM 18th: AM/PM 19th: AM/PM

@jmshal
jmshal / better-nodejs-require-paths.md
Created November 14, 2015 00:43 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@jmshal
jmshal / subcommand.go
Created November 25, 2015 03:28 — forked from iamralch/subcommand.go
flag package: subcommand example
package main
import (
"flag"
"fmt"
"os"
)
func main() {
askCommand := flag.NewFlagSet("ask", flag.ExitOnError)
@jmshal
jmshal / create-multi-host-swarm-digitalocean.sh
Last active March 16, 2023 13:22
Setup a Docker Swarm multi-host cluster on DigitalOcean
docker-machine create \
--driver=digitalocean \
--digitalocean-access-token=$DO_TOKEN \
--digitalocean-size=512mb \
--digitalocean-region=nyc3 \
--digitalocean-private-networking=true \
--digitalocean-image=ubuntu-15-04-x64 \
docker-swarm-kv-store
docker $(docker-machine config docker-swarm-kv-store) run -d \
@jmshal
jmshal / README.md
Last active January 27, 2016 00:00
Docker Installation (Ubuntu)

Ubuntu 15.10

wget -O - https://git.io/vzyZ2 | sudo bash

Ubuntu 15.04

wget -O - https://git.io/vzyci | sudo bash

Ubuntu 14.04

wget -O - https://git.io/vzycM | sudo bash