This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Use sudo to run this script | |
rm -rf ~/Library/HiPKILocalSignServer/ | |
rm -rf ~/Lib/libHicos_p11v1.dylib | |
rm -rf ~/bin/checkHIPKILocalServer.sh | |
rm -rf ~/bin/stopHIPKILocalServer.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Chromium update script | |
# - by shad <shad@zaphod.eu> | |
# - by superbil <help@superbil.info> | |
OS=mac | |
SITE=http://build.chromium.org/buildbot/snapshots/chromium-rel- | |
LATEST=$(wget -q -O - ${SITE}${OS}/LATEST) | |
INSTALL_DIR=/Applications | |
TARGET=Chromium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*XXXXXXXXXNXNNXXXXXNNNNNNNNNXKxoloodddddx0XXk0XXXXXXXNNNNNNNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXXXXNNNNNNXKkdlccllccllccloodOdddxk0KKXXXNNNNNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXXXXXXXKxc,.''',,;;;,,'....,,'''.,',cdxO0KXNNNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXXXXXx:........''''..''...........''',:coxOKXNNNNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXXXX0l...................................'',;:lkXXNNNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXX0,................''.....................'',,,;o0XNNNNNNNNNNNNNNN | |
XXXXXXXXXXXXXXK;.........................................'.'''''lKNNNNNNNNNNNNNN | |
XXXXXXXXXXXXX0c..................'................. .. ...'......,kXNNNNNNNNNNNN | |
XXXXXXXXXXXK:. .............'...........''......'..... ....'......'dXNNNNNNNNNNN | |
XXXXXXXXXXO. .... ...........................'''.......''.',.......xNNNNNNNNNNN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_oo0oo_ | |
o8888888o | |
88" . "88 | |
(| -_- |) | |
0\ = /0 | |
___/`---'\___ | |
.' \\| |# '. | |
/ \\||| : |||# \ | |
/ _||||| -:- |||||- \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import logging | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--verbose', '-v', action='count', default=1) | |
args = parser.parse_args() | |
args.verbose = 40 - (10 * args.verbose) if args.verbose > 0 else 0 | |
logging.basicConfig(level=args.verbose, format='%(asctime)s %(levelname)s: %(message)s', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you use bash, this technique isn't really zsh specific. Adapt as needed. | |
source ~/keychain-environment-variables.sh | |
# AWS configuration example, after doing: | |
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID | |
# provide: "AKIAYOURACCESSKEY" | |
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY | |
# provide: "j1/yoursupersecret/password" | |
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID); | |
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
## Update exts | |
# Author: Superbil | |
# website: https://gist.github.com/Superbil/860b906fa3370a55201a73d2b6396dd9 | |
# Use duti to setup player | |
# | |
# Usage update_exts.sh <bundle_id> | |
# | |
# Check argv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calculate time between git commits | |
# Update rev-list target to your range or branch | |
# ref https://stackoverflow.com/questions/22725469/calculate-time-between-git-commits | |
for ix in `git rev-list @`; do | |
# get committer date, UNIX timestamp (%ct) | |
thists=`git log $ix -n 1 --format=%ct`; | |
prevts=`git log $ix~1 -n 1 --format=%ct 2>/dev/null`; | |
if [ ! -z "$prevts" ] ; then | |
delta=$(( $thists - $prevts )); | |
# get substring of hash (#ix) |
NewerOlder