Skip to content

Instantly share code, notes, and snippets.

View elimisteve's full-sized avatar
💭
Be more ambitious. The future depends on it.

Steve Phillips elimisteve

💭
Be more ambitious. The future depends on it.
View GitHub Profile
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@elimisteve
elimisteve / hello_world.go
Last active December 29, 2015 22:59 — forked from jsgoecke/gist:7738466
Async "Hello, world" in Go. A bit more tidy IMO :-)
go run hello_world.go
Hello world!
@elimisteve
elimisteve / keybase.md
Created March 7, 2014 18:17
keybase prove github

Keybase proof

I hereby claim:

  • I am elimisteve on github.
  • I am elimisteve (https://keybase.io/elimisteve) on keybase.
  • I have a public key whose fingerprint is 8C26 6865 BB14 38C5 8012 F92C 7295 C51C 3F8A A1E2

To claim this, I am signing this object:

@elimisteve
elimisteve / keybase.md
Created March 8, 2014 18:23
keybase.md

Keybase proof

I hereby claim:

  • I am elimisteve on github.
  • I am elimisteve (https://keybase.io/elimisteve) on keybase.
  • I have a public key whose fingerprint is 8C26 6865 BB14 38C5 8012 F92C 7295 C51C 3F8A A1E2

To claim this, I am signing this object:

@elimisteve
elimisteve / Allow-SSLv2-ClientHello-go1.4.patch
Created January 14, 2015 05:59
Patch to add support for SSLv2 handshakes to Go 1.4's standard library
diff -rupN src/crypto/tls/conn.go src/crypto/tls/conn.go
--- src/crypto/tls/conn.go 2014-12-10 17:19:32.000000000 -0800
+++ src/crypto/tls/conn.go 2015-01-13 19:10:01.567729660 -0800
@@ -56,6 +56,8 @@ type Conn struct {
hand bytes.Buffer // handshake data waiting to be read
tmp [16]byte
+
+ sslv2data []byte
}
Failed to load resource: the server responded with a status of 503 (Service Unavailable)
swarm.fund/:1 XMLHttpRequest cannot load https://swarm-rome.herokuapp.com/newsletter/subscribers/add. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://swarm.fund' is therefore not allowed access. The response had HTTP status code 503.
vendor.js:5 TypeError: Cannot read property 'message' of null
at app.js:1
at vendor.js:5
at m.$eval (vendor.js:6)
at m.$digest (vendor.js:5)
at m.$apply (vendor.js:6)
at f (vendor.js:5)
at s (vendor.js:5)
ubuntu@ttba:~/cjdns$ ./contrib/python/peerStats
Traceback (most recent call last):
File "./contrib/python/peerStats", line 50, in <module>
main()
File "./contrib/python/peerStats", line 39, in main
at.peerStats(cjdns,verbose=True,human_readable=human_readable);
File "/home/ubuntu/cjdns/contrib/python/cjdnsadmin/adminTools.py", line 88, in peerStats
peers = ps['peers']
KeyError: 'peers'
@elimisteve
elimisteve / gist:3e6453da073a2d32ce6b
Created July 30, 2015 04:33
cjdns error: peerStats KeyError: 'version'
ubuntu@ttba:~/cjdns$ peerStats
Traceback (most recent call last):
File "/usr/local/bin/peerStats", line 73, in <module>
peer['version'],
KeyError: 'version'
@elimisteve
elimisteve / chrome-bookmarks
Created December 20, 2015 15:39 — forked from selvan/chrome-bookmarks
Chrome extension to export all bookmarks
//manifest.json
{
"name": "bookmark-search-export",
"version": "1.0",
"manifest_version": 2,
"description": "This extention will dump all bookmarks",
"browser_action": {
"default_icon": "icon.png"
},
"background": {