Skip to content

Instantly share code, notes, and snippets.

View dan-turner's full-sized avatar

Dan Turner dan-turner

View GitHub Profile
GRC="$(which grc)"
if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
alias colourify="$GRC -es --colour=auto"
alias blkid='colourify blkid'
alias configure='colourify ./configure'
alias df='colourify df'
alias diff='colourify diff'
alias docker='colourify docker'
alias docker-machine='colourify docker-machine'
alias du='colourify du'
@dan-turner
dan-turner / ContractRegistry.sol
Last active April 11, 2018 07:19
Chain with pre-deployed registry
pragma solidity ^0.4.21;
contract ContractRegistry {
address public owner;
mapping (bytes32 => address) public contracts;
function ContractRegistry(address _owner) public {
owner = _owner;
}
https://0day.work/using-a-yubikey-for-gpg-and-ssh/
https://ocramius.github.io/blog/yubikey-for-ssh-gpg-git-and-local-login/
https://github.com/drduh/YubiKey-Guide/tree/1ad37577db92726eadde4dc302a6f982ba7e82dc
https://github.com/drduh/config/blob/master/gpg.conf
https://help.github.com/articles/associating-an-email-with-your-gpg-key/ For adding extra emails to your keys
https://github.com/keybase/keybase-issues/issues/2798
gpg.conf
@dan-turner
dan-turner / docker-compose.yml
Created October 1, 2017 00:23
Ethermint + Postgres
version: '2'
services:
postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app
ports:
- "5432:5432"

Keybase proof

I hereby claim:

  • I am dan-turner on github.
  • I am danturner (https://keybase.io/danturner) on keybase.
  • I have a public key ASBh2B9Ds6LIvKbgCQ1lZRrQbWh7Gkah3oHd7shWwKAcBAo

To claim this, I am signing this object:

# Elastic Beanstalk Managed
# Elastic Beanstalk managed configuration file
# Some configuration of nginx can be by placing files in /etc/nginx/conf.d
# using Configuration Files.
# http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html
#
# Modifications of nginx.conf can be performed using container_commands to modify the staged version
# located in /tmp/deployment/config/etc#nginx#nginx.conf
[alias]
co = checkout
promote = !$ZSH/bin/git-promote
wtf = !$ZSH/bin/git-wtf
rank-contributors = !$ZSH/bin/git-rank-contributors
count = !git shortlog -sn
st = status
ci = commit
br = branch
co = checkout
@dan-turner
dan-turner / route53-dyndns.sh
Created April 12, 2017 01:38
Dynamic DNS Script for Route53
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="XXXXXXXXX"
# The CNAME you want to update e.g. hello.example.com
@dan-turner
dan-turner / .gitconfig
Last active May 17, 2016 07:07
.gitconfig for Mac
[hub]
protocol = https
[user]
name = ### Name goes here ###
email = ### Email goes here ###
[credential]
helper = osxkeychain
[alias]
co = checkout
promote = !$ZSH/bin/git-promote
@dan-turner
dan-turner / Stackfile.yml
Last active January 20, 2016 01:05
Consul
consul_bootstrap:
image: voxxit/consul
volumes:
- /data
command:
"agent -server -bootstrap-expect=3 -data-dir=/data"
expose:
- "8300"
- "8301"
- "8301/udp"