Skip to content

Instantly share code, notes, and snippets.

View kdawes's full-sized avatar

Kelsey Dawes kdawes

  • Saskatoon, SK, Canada
View GitHub Profile
Sep 22 16:54:21 7shifts : debug: [0] => a763673d-89dc-4e8e-a4e4-740386648f14
Sep 22 16:54:21 7shifts : debug: [1] => aafb9150-1b5a-4630-a067-8b751ca93633
Sep 22 16:54:21 7shifts : debug: [2] => 2cc2edc6-97f2-4042-8064-590fb166c4c7
Sep 22 16:54:21 7shifts : debug: [3] => eeea8f8c-e063-4289-9956-7e26870bceb4
Sep 22 16:54:21 7shifts : debug: [4] => 30417ab3-8869-42ad-8c5b-4137873cadc0
Sep 22 16:54:21 7shifts : debug: [5] => 25036ced-241e-4777-acd3-701aafded63a
Sep 22 16:54:21 7shifts : debug: [6] => 31222b4c-7a3c-4d33-93d8-ee249a713232
Sep 22 16:54:21 7shifts : debug: [7] => 70b452c0-84af-465c-bb47-67e3385f8f8a
Sep 22 16:54:21 7shifts : debug: [8] => 168ccb08-297a-4845-a6ac-2192514a6d77
Sep 22 16:54:21 7shifts : debug: [9] => 1b74e9f8-2e3d-4ec3-b1ca-70d93b5cb4d9
384
1692
3768
4429
5104
5330
5644
5905
6268
7917
@kdawes
kdawes / gist:7f43f7b3ed49f391acfd6d512d07bbd4
Created January 29, 2017 06:11
postmark default template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Welcome to [Product Name], {{name}}!</title>
<!--
The style block is collapsed on page load to save you some scrolling.
Postmark automatically inlines all CSS properties for maximum email client
compatibility. You can just update styles here, and Postmark does the rest.
id = setInterval(()=>{ card = document.getElementsByClassName('link-like widget-reveal-card-lat-lng')[0]; console.log(card.innerText) }, 5000)
// ENT: Create space on stack for local variables
// JSR: Call a function
// RET: Return from a function
// ADJ: Caller clears arguments from stack
// REL: Load A with frame-relative address
// LI: A = *A
// LC: A = *A & 0xff
// SI: *(pop()) = A
// SC: *(pop()) = A & 0xff
// IMM: Populate A
@kdawes
kdawes / gist:aaa203afee1d365e661d78e04d647a8f
Created May 24, 2016 07:57 — forked from rmmh/gist:8515577
MSP430 Alphanumeric Instructions
[0-9a-zA-Z]{2}
30-39,41-5a,61-7a
a:61 z:7a A:41 Z:5a 0:30 9:39
MSP430 alphanumeric shellcode is hard. There's no way to write to memory,
no word-sized reg-reg operations, and all we have is add/sub/mov and a few conditional jumps.
Assertion failed: ((false) == (ctx->pending_close_ && "close is pending")), function Write, file ../src/node_zlib.cc, line 124.
Abort trap: 6
node -v
v4.1.1
sh-3.2# lldb -- ./sslsplit -P -D -l ./ssl.log -j ./logdir -k ./ca.key -c ./ca.crt https 0.0.0.0 8443 tcp 0.0.0.0 8080
(lldb) target create "./sslsplit"
Current executable set to './sslsplit' (x86_64).
(lldb) settings set -- target.run-args "-P" "-D" "-l" "./ssl.log" "-j" "./logdir" "-k" "./ca.key" "-c" "./ca.crt" "https" "0.0.0.0" "8443" "tcp" "0.0.0.0" "8080"
(lldb) run
Process 13594 launched: './sslsplit' (x86_64)
error: sslsplit debug map object file '/Users/kdawes/work/sslsplit/version.o' has changed (actual time is 0x565ba7a7, debug map time is 0x565ba46b) since this executable was linked, file will be ignored
Generated RSA key for leaf certs.
SSLsplit 0.4.11-dirty (built 2015-11-29)
Copyright (c) 2009-2014, Daniel Roethlisberger <daniel@roe.ch>
@kdawes
kdawes / gist:3dbef3a6f569b23f2c9d
Created September 22, 2015 23:42
double -> single quotes
#!/bin/bash
if [ ! -e $1 ]; then
exit 1
fi
if [ ! -f $1 ]; then
exit 1
fi
F=$(basename $1)
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
bundle: {
src: ['bower_components/lodash/dist/lodash.js',
'bower_components/jquery/dist/jquery.js',
'js/highcharts/highcharts.js',
],
dest: 'bundle.js',