Skip to content

Instantly share code, notes, and snippets.

View pikesley's full-sized avatar
💭
I fly cargo planes full of rubber dogshit out of Hong Kong

pikesley pikesley

💭
I fly cargo planes full of rubber dogshit out of Hong Kong
View GitHub Profile
@pikesley
pikesley / env_adder.sh
Created October 23, 2015 16:46
Add encrypted envs to .travis.yml
for env in `cat .env | sed "s/: /=/"` ; do travis encrypt ${env} --add ; done
gource -s 5 -a 0.1 -1280x720 -r 60 --multi-sampling --date-format %Y-%m-%d\ %H:%M:%S --colour-images --output-ppm-stream - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4

Get token

POST to https://identity.api.rackspacecloud.com/v2.0/tokens

with headers

Content-Type: application/json

and body

@pikesley
pikesley / How-to-join
Created January 4, 2016 11:32
Join my blockchain
vagrant up
(select to bridge to eth0 or eth1)
vagrant ssh
multichaind odi-chain@10.14.3.49:9255
It will complain, but it will give you a wallet address. Send that to me, and I can allow you in. Then
multichaind odi-chain@10.14.3.49:9255 -daemon
@pikesley
pikesley / gist:11aa2b6ab5eba3f5f545
Last active January 13, 2016 11:26
Onename verification
Verifying that +pikesley is my blockchain ID. https://onename.com/pikesley
@pikesley
pikesley / postinstall.md
Last active September 1, 2016 16:17
Skellington post-install help
  • Install jQuery and jasmine-jQuery (yes, this is a bit of a hack)
    curl https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js -o spec/javascripts/helpers/jquery.min.js
    curl https://raw.github.com/velesin/jasmine-jquery/master/lib/jasmine-jquery.js -o spec/javascripts/helpers/load-after-jquery-jasmine-jquery.js
  • Set up continuous integration in Travis:
@pikesley
pikesley / but I need
Created February 28, 2016 16:17
I cannot SASS
tr.foo {
background-color: #fa5100;
}
tr.bar {
background-color: #0c58a2;
}
@pikesley
pikesley / Help.md
Created March 14, 2016 14:50
Embed your README

Easily embed your README.md as documentation

  • Disregards everything before the first # Heading
  • Requires kramdown
@pikesley
pikesley / mongo-dumper.sh
Created August 23, 2016 12:58
Dump Mongo to Rackspace
#!/bin/bash
ZIPPATH="mongo-`date +%Y-%m-%d`.tbz"
CONTAINER=quirkafleeg-dumps
AUTHURL=https://lon.auth.api.rackspacecloud.com/v1.1/auth
AUTHXML="<?xml version='1.0' encoding='UTF-8'?><credentials xmlns='http://docs.rackspacecloud.com/auth/api/v1.1' username='`head -1 /root/.rackspace.creds`' key='`tail -1 /root/.rackspace.creds`' />"
echo -n 'Dumping... '
/usr/bin/mongodump
echo 'done'
@pikesley
pikesley / pi.md
Created September 23, 2016 12:19
How do I Pi?

Before you begin

sudo easy_install gpiozero

The script

from gpiozero import LED
from time import sleep

yellow = LED(17)