Skip to content

Instantly share code, notes, and snippets.

View curtisz's full-sized avatar

Curtis Z curtisz

  • Strike Enterprises
  • The Human Homeworld
View GitHub Profile
@curtisz
curtisz / bling.js
Last active August 29, 2015 14:23 — forked from paulirish/bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document)
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn)
}
NodeList.prototype.__proto__ = Array.prototype
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
@curtisz
curtisz / 0_dct_demo.sh
Created February 2, 2017 14:00 — forked from mbentley/0_dct_demo.sh
Docker Content Trust Demo (January 2017)
### set environment variables
DTR_URL="ddcbeta.mac"
alias notary="notary -s https://${DTR_URL} -d ~/.docker/trust --tlscacert ~/.docker/tls/ddcbeta.mac/ca.crt"
REPO="admin/signtest"
USERNAME="admin"
### admin
# get certificate from client bundle, send public key to the admin
cd ~/ucp-bundles/local