Skip to content

Instantly share code, notes, and snippets.

View sideshow's full-sized avatar

Adam Jones sideshow

  • Wellington, New Zealand
View GitHub Profile
@sideshow
sideshow / gist:7632696
Created November 24, 2013 21:34
updateruby
cd ~/
wget http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz
tar -xzf ruby-1.9.3-p484.tar.gz
cd ruby-1.9.3-p484
./configure
make
sudo make install
sudo service nginx restart
@sideshow
sideshow / gist:a1414f68a1337ead9c93
Created January 8, 2016 09:17 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@sideshow
sideshow / example.go
Last active March 17, 2016 21:00
apns2 http/2 example
package main
import (
"log"
"sync"
apns "github.com/sideshow/apns2"
"github.com/sideshow/apns2/certificate"
)
@sideshow
sideshow / tmux-cheatsheet.markdown
Created March 30, 2016 20:50 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sideshow
sideshow / apns.go
Last active July 19, 2023 00:03
apns.go
package main
import (
"log"
"sync"
"github.com/sideshow/apns2"
"github.com/sideshow/apns2/certificate"
)
package main
import (
"flag"
"log"
"sync"
"github.com/apple/foundationdb/bindings/go/src/fdb"
)