Skip to content

Instantly share code, notes, and snippets.

View Bartvds's full-sized avatar

Bart van der Schoor Bartvds

View GitHub Profile
@Bartvds
Bartvds / keybase.md
Last active February 16, 2018 14:27

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Bartvds
Bartvds / gist:e16d4c4a4d504bad6eb082e1284d2f2f
Created March 15, 2017 11:51 — forked from tamoyal/gist:2ea1fcdf99c819b4e07d
Upgrade Postgres 9.3 to 9.4 on Ubuntu
# Be sure to save your config files. Optional but I do:
sudo cp /etc/postgresql/9.3/main/postgresql.conf ~
sudo cp /etc/postgresql/9.3/main/pg_hba.conf ~
# Package repo (for apt-get)
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
# Also probably optional but I like to update sources and upgrade
sudo apt-get update
@Bartvds
Bartvds / echoHttpRequest.js
Last active August 29, 2015 14:10 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
hook.debug("Debug messages are sent to the debug console");
hook.debug(hook.params);
hook.debug(hook.req.path);
hook.debug(hook.req.method);
title: Basic Example
author:
name: Jordan Scales
twitter: jdan
url: http://jordanscales.com
output: basic.html
--
# Cleaver 101
@Bartvds
Bartvds / gist:9797329
Created March 27, 2014 00:44
weird hash
var crypto = require('crypto');
// from npm
var sha1mod = require('sha1');
var raw = 'Ly8gVHlwZSBkZWZpbml0aW9ucyBmb3IgQXN5bmMgMC4xLjIzDQovLyBQcm9q\nZWN0OiBodHRwczovL2dpdGh1Yi5jb20vY2FvbGFuL2FzeW5jDQovLyBEZWZp\nbml0aW9ucyBieTogQm9yaXMgWWFua292IDxodHRwczovL2dpdGh1Yi5jb20v\nYm9yaXN5YW5rb3YvPg0KLy8gRGVmaW5pdGlvbnM6IGh0dHBzOi8vZ2l0aHVi\nLmNvbS9ib3Jpc3lhbmtvdi9EZWZpbml0ZWx5VHlwZWQNCg0KaW50ZXJmYWNl\nIEFzeW5jTXVsdGlwbGVSZXN1bHRzQ2FsbGJhY2s8VD4geyAoZXJyOiBzdHJp\nbmcsIHJlc3VsdHM6IFRbXSk6IGFueTsgfQ0KaW50ZXJmYWNlIEFzeW5jU2lu\nZ2xlUmVzdWx0Q2FsbGJhY2s8VD4geyAoZXJyOiBzdHJpbmcsIHJlc3VsdDog\nVCk6IGFueTsgfQ0KaW50ZXJmYWNlIEFzeW5jVGltZXNDYWxsYmFjazxUPiB7\nIChuOiBudW1iZXIsIGNhbGxiYWNrOiBBc3luY011bHRpcGxlUmVzdWx0c0Nh\nbGxiYWNrPFQ+KTogdm9pZDsgfQ0KaW50ZXJmYWNlIEFzeW5jSXRlcmF0b3I8\nVD4geyAoaXRlbTogVCwgY2FsbGJhY2s6IEFzeW5jTXVsdGlwbGVSZXN1bHRz\nQ2FsbGJhY2s8VD4pOiB2b2lkOyB9DQppbnRlcmZhY2UgQXN5bmNNZW1vSXRl\ncmF0b3I8VD4geyAobWVtbzogVCwgaXRlbTogVCwgY2FsbGJhY2s6IEFzeW5j\nU2luZ2xlUmVzdWx0Q2FsbGJhY2s8VD4pOiB2b2lkOyB9DQppbnRlcmZhY2Ug\nQXN5bm
@Bartvds
Bartvds / all .d.ts
Created March 1, 2014 00:31
DefinitelyTyped content 28-feb-2013
accounting/accounting.d.ts
ace/ace.d.ts
add2home/add2home.d.ts
amcharts/AmCharts.d.ts
amplifyjs/amplifyjs.d.ts
angular-protractor/angular-protractor.d.ts
angular-translate/angular-translate.d.ts
angular-ui-bootstrap/angular-ui-bootstrap.d.ts
angular-ui/angular-ui-router.d.ts
angularfire/angularfire.d.ts
@Bartvds
Bartvds / .ts and references to
Created February 28, 2014 22:47
DefinitelyTyped content 28-feb-2013
accounting/accounting-tests.ts
- accounting/accounting.d.ts
accounting/accounting.d.ts
ace/ace.d.ts
ace/all-tests.ts
- ace/ace.d.ts
- ace/tests/ace-default-tests.ts
- ace/tests/ace-background_tokenizer-tests.ts
- ace/tests/ace-document-tests.ts
- ace/tests/ace-edit_session-tests.ts
@Bartvds
Bartvds / Cmd.exe 1
Created October 13, 2013 18:04
Grunt patch test failures on cmd.exe and git bash - https://github.com/cowboy/node-exit/pull/3#issuecomment-26223403
D:\project\node-exit\refack>grunt
Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.
Running "jshint:lib" (jshint) task
>> 1 file lint free.
Running "jshint:test" (jshint) task
>> 3 files lint free.
@Bartvds
Bartvds / compare
Created May 18, 2013 19:29
current compare output, there's 4 main nodes lists
repoAll:
[ { project: 'ace', name: 'ace' },
{ project: 'amcharts', name: 'AmCharts' },
{ project: 'angularjs', name: 'angular-cookies' },
{ project: 'angularjs', name: 'angular-mocks' },
{ project: 'angularjs', name: 'angular-resource' },
{ project: 'angularjs', name: 'angular-sanitize' },
{ project: 'angularjs', name: 'angular' },
{ project: 'async', name: 'async' },
{ project: 'AzureMobileServicesClient',