Skip to content

Instantly share code, notes, and snippets.

View strangnet's full-sized avatar
🐶
dogwned

Patrick Strang strangnet

🐶
dogwned
View GitHub Profile
@strangnet
strangnet / keybase.md
Last active December 29, 2019 15:01 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

Keybase proof

I hereby claim:

  • I am strangnet on github.
  • I am strangnet (https://keybase.io/strangnet) on keybase.
  • I have a public key ASCxWe1Yp081SQrZi2GiYnM1D_kHN83QZOlkLO76UVnb9go

To claim this, I am signing this object:

@strangnet
strangnet / api.go
Last active July 19, 2017 07:06
go-kit with zipkin
import (
kitlog "github.com/go-kit/kit/log"
stdopentracing "github.com/opentracing/opentracing-go"
)
func ServeAPI(ctx context.Context, tracer stdopentracing.Tracer, logger kitlog.Logger, ...) http.Handler {
// ...
var hs health.Service
hs = health.NewService(signalBroker)
@strangnet
strangnet / jubel.txt
Last active February 14, 2017 08:31
10-jubel
XKuG6jnMNK7O0xGCv6d8uQ==
Decrypt using Blowfish, https://www.tools4noobs.com/online_tools/decrypt/
Key is the destination
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd
sudo apt-get install git
pip-2.7 install numpy
brew install gdal
R
install.packages("plotKML")
q()
R < gpx.r
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade
@strangnet
strangnet / gist:6328161
Created August 24, 2013 13:32
Scala 2.10.2 and java 7 in ubuntu
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
http://www.scala-lang.org/files/archive/scala-2.10.2.tgz
tar zxf scala-2.10.2.tgz
sudo mv scala-2.10.2 /usr/share/scala
sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
@strangnet
strangnet / hgflow
Last active December 16, 2015 00:19
Getting ready for hgflow
# Enter your directory of choice
cd ~/src/
# clone hgflow
hg clone ssh://[email protected]/strang/hgflow
# edit your ~/.hgrc by adding
[extensions]
hgflow=~/src/hgflow/src/hgflow.py
# To make sure SourceTree uses the same hgflow
@strangnet
strangnet / install.sh
Last active December 15, 2015 17:20
Setup of VPS, Ubuntu 12.04
locale-gen en_US en_US.UTF-8 sv_SE.UTF-8
dpkg-reconfigure locales
apt-get update
apt-get upgrade
apt-get install curl git-core python-software-properties
#nginx
add-apt-repository ppa:nginx/stable