Skip to content

Instantly share code, notes, and snippets.

Zander Hill zph

Block or report user

Report or block zph

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
View archiver.rb
class Archiver < Formula
desc "Easily create & extract archives, and compress & decompress files of various formats"
homepage ""
url ""
sha256 "1932ecb8b8dc8492e62a608f436dc6d514c8357e224fd5fe7653bd3266cd67e3"
def install
bin.install "arc_mac_amd64" => "arc"
View mmake.rb
class Mmake < Formula
GIT = ""
desc "Go wrapper for forked version of TJ Holowaychuk's Mmake"
homepage "https://#{GIT}"
url "https://#{GIT}.git",
tag: "v1.4.2"
head "https://#{GIT}.git"
depends_on "go"
#!/usr/bin/env bash
# bash_strict_mode disable=true
source "$stdenv/setup"
goModDownload() {
export GO111MODULE=on
cd go/src/$goPackagePath || exit 1
go mod download
go mod vendor
View password_gen
#!/usr/bin/env bash
# Creates alnum passwords of roughly the length requested.
# Alt form xxd -g 2 -l 64 -p /dev/urandom | tr -d '\n'
# (But then has a smaller random space b/c it's [a-f0-9].
# We ask openssl for COUNT * 4 to be overly safe that we'll have that amount
# available after stripping it down to only alphanumeric characters.
set -CEeuo pipefail
shopt -s extdebug
View gitless_with_untracked.rb
class GitlessWithUntracked < Formula
include Language::Python::Virtualenv
desc "Simplified version control system on top of git"
homepage ""
url ""
sha256 "470aab13d51baec2ab54d7ceb6d12b9a2937f72d840516affa0cb34a6360523c"
depends_on "libgit2"
depends_on "python"
View gitless_mod.rb
class GitlessMod < Formula
include Language::Python::Virtualenv
desc "Simplified version control system on top of git"
homepage ""
url ""
sha256 "470aab13d51baec2ab54d7ceb6d12b9a2937f72d840516affa0cb34a6360523c"
bottle do
cellar :any
zph / saltpack.vim
Created Feb 15, 2019 — forked from jecxjo/saltpack.vim
Vimscript to Read/Write Keybase's Saltpack encrypted files
View saltpack.vim
" Keybase - saltpack
augroup SALTPACK
" Make sure nothing is written to ~/.viminfo
au BufReadPre,FileReadPre *.saltpack set viminfo=
" No other files with unencrypted info
au BufReadPre,FileReadPre *.saltpack set noswapfile noundofile nobackup
" Reading Files, assumes you can decrypt
au BufReadPost,FileReadPost *.saltpack :%!keybase decrypt
View perceptualdiff.rb
# Documentation:
class Perceptualdiff < Formula
desc "A program that compares two images using a perceptually based image metric"
homepage ""
head "", revision: "7ae45fbbe2364c02b9dd54cc83c8f530ba96641b"
depends_on "cmake" => :build
depends_on "freeimage"
View init.vim
Plug 'ludovicchabant/vim-gutentags'
let g:gutentags_ctags_tagfile = ".tags"
let g:gutentags_cache_dir = "~/tmp"
if executable('ptags')
let g:gutentags_ctags_executable = 'ptags'
zph / gist:3e0fa3e0a4644def5a65df066668fa9f
Created Nov 17, 2016 — forked from drpancake/gist:9605830
Manually long-polling the Atlas ATS API (Bayeux protocol)
View gist:3e0fa3e0a4644def5a65df066668fa9f
# Requires the 'requests' module:
import json
import requests
URL = ''
def bayeux_call(data):
headers = {'content-type': 'application/json'}
res =, data=json.dumps(data), headers=headers, verify=False) # no SSL cert check
You can’t perform that action at this time.