Skip to content

Instantly share code, notes, and snippets.

Dan Turner dan-turner

Block or report user

Report or block dan-turner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dan-turner
dan-turner / ContractRegistry.sol
Last active Apr 11, 2018
Chain with pre-deployed registry
View ContractRegistry.sol
pragma solidity ^0.4.21;
contract ContractRegistry {
address public owner;
mapping (bytes32 => address) public contracts;
function ContractRegistry(address _owner) public {
owner = _owner;
}
View gist:2bcf4e32332d1983cbf63926bb5ee67c
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
View docker-compose.yml
version: '2'
services:
postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app
ports:
- "5432:5432"
View keybase.md

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:

View nginx.conf
# 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
View gist:858981e3010012795fba7ccc8fd383f1
[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 Apr 12, 2017
Dynamic DNS Script for Route53
View route53-dyndns.sh
#!/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 / gist:9891688
Created Mar 31, 2014
ECC Certs OpenSSL
View gist:9891688
Eliptical Curve Cert
* openssl ecparam -out private.pem -name prime256v1 -genkey
* openssl req -new -key private.pem -x509 -nodes -days 365 -out public.cer
* openssl pkcs12 -export -in public.cer -inkey private.pem -out export.pfx -CSP "Microsoft Enhanced RSA and AES Cryptographic Provider"
@dan-turner
dan-turner / .gitconfig
Last active May 17, 2016
.gitconfig for Mac
View .gitconfig
[hub]
protocol = https
[user]
name = ### Name goes here ###
email = ### Email goes here ###
[credential]
helper = osxkeychain
[alias]
co = checkout
promote = !$ZSH/bin/git-promote
View .gitconfig
[core]
editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor
autocrlf = true
[credential]
helper = !\\\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\\\"
[user]
name = ####Your name here####
email = ####Your email here####
[merge]
tool = BeyondCompare4
You can’t perform that action at this time.