Skip to content

Instantly share code, notes, and snippets.

@awinder
awinder / proof.md
Created July 11, 2019 23:26
Blockstack Proof
<h3>Test subject 1</h3>
@awinder
awinder / cmd.bash
Last active August 29, 2015 14:26
Docker Statistics Helper Command (for ~/.bash_aliases)
alias docker-stats="docker stats $(docker ps|grep -v 'NAMES'| rev | awk '{print $1}' | rev|tr '\n' ' ')"
## What we have
"data": [
{
"id" : "<ISO_8601 datetime for the time slot>",
"name" : "status",
"value" : "available"
},
{
"id" : "<ISO_8601 datetime for the occupied or free time slot>",
"name" : "status",
@awinder
awinder / text.md
Created February 10, 2015 17:47
Vyatta Blog Post Outline

Building Secure Networks with Vyatta

What is Vyatta, and why do you want to use it?

  • Discussion of key strenths of vyatta, and firewalls in general
  • Link to the open-source VyOS version and the commercial Vyatta project
  • Talk about Softlayer choices specifically -- why softlayer version is insecure / finnicky with SSL & PPTP options, limitations & cost of the Fortigate appliance

Splitting your public and private traffic

Project Unloader

This is a quick demonstation of the window beforeunload event handler and how you can use it to issue tracking http requests or even use it to prevent a user from closing the window.

@awinder
awinder / keybase.md
Created April 1, 2014 00:41
keybase

Keybase proof

I hereby claim:

  • I am awinder on github.
  • I am awinder (https://keybase.io/awinder) on keybase.
  • I have a public key whose fingerprint is 463D D615 6AE2 CE34 5F17 7412 E660 4AA7 8618 1B77

To claim this, I am signing this object:

@awinder
awinder / node-vertica
Created March 18, 2014 19:48
Tcpdump Output for different types of Vertica connections
# Node-Vertica Library Output: sudo tcpdump -XX -i any port 5433
19:35:28.853822 IP 10.0.0.1.50172 > 10.0.0.101.pyrrho: Flags [S], seq 1486720015, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 1053272754 ecr 0,sackOK,eol], length 0
0x0000: 0000 0001 0006 0a00 2700 0000 0000 0800 ........'.......
0x0010: 4500 0040 2fbf 4000 4006 f693 0a00 0001 E..@/.@.@.......
0x0020: 0a00 0065 c3fc 1539 589d 8c0f 0000 0000 ...e...9X.......
0x0030: b002 ffff 7b3c 0000 0204 05b4 0103 0304 ....{<..........
0x0040: 0101 080a 3ec7 aab2 0000 0000 0402 0000 ....>...........
19:35:28.853850 IP 10.0.0.101.pyrrho > 10.0.0.1.50172: Flags [S.], seq 760760857, ack 1486720016, win 14480, options [mss 1460,sackOK,TS val 467539529 ecr 1053272754,nop,wscale 7], length 0
0x0000: 0004 0001 0006 0800 274f 9ec5 0000 0800 ........'O......
@awinder
awinder / controller.js
Last active June 16, 2016 13:49
Mocking the Express.js response object
module.exports = {
test : function(req, res) {
setTimeout(function() {
res.send({ testing : true }, 200);
}, 5000);
},
}