~/Downloads $ wget https://mega.co.nz/sdk.zip &>/dev/null
~/Downloads $ unzip sdk.zip
Archive: sdk.zip
inflating: readme.txt
inflating: megabdb.cpp
inflating: megacli.cpp
inflating: megaclient.cpp
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 | |
prefix=/opt/vim | |
vimrc=https://gist.github.com/rjeczalik/6574654/raw/377037c862ad21481e48d00210708f76c62bb412/vimrc | |
# TODO: install deps for vundle, Command-T and YouCompleteMe (python-dev, ruby-dev, xorg-dev etc.) | |
# vim --version must at very minimum yield support for +python +ruby +xterm_clipboard | |
die() { | |
if [ ! -z "${*}" ]; then |
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 | |
to-ogg() { | |
local src= | |
local dst= | |
{ | |
[ ${#} == 0 ] && src=. && dst=. | |
} || { | |
[ ${#} == 1 ] && |
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
# Building static nginx for teh lulz | |
# | |
# basic dependencies | |
sudo apt-get install libxslt1-dev libxml2-dev zlib1g-dev libpcre3-dev libbz2-dev libssl-dev | |
# download nginx and openssl | |
wget http://nginx.org/download/nginx-1.5.6.tar.gz | |
tar xf nginx-1.5.6.tar.gz; cd nginx-1.5.6 |
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 | |
######################################### | |
# Directory structure and prerequisites # | |
######################################### | |
case "$(uname -a)" in | |
*Darwin*) | |
tool=brew | |
;; |
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 | |
[[ -z "${DOCKER_HOME}" ]] && { | |
DOCKER_HOME=${HOME}/vagrant/docker | |
} | |
die() { | |
[[ ! -z "${*}" ]] && { | |
echo "error: ${*}" | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnableGlobbing</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>gitlab-ci-runner</string> |
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 | |
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) | |
COMMIT_MESSAGE=$(git log --format=%B -n1 HEAD) | |
if ! echo "${BRANCH_NAME}" | perl -ne 'exit 1 unless /^(lmx|licstat)\d+$/'; then | |
echo "git-pr: invalid issue branch name: ${BRANCH_NAME}" 1>&2 | |
exit 1 | |
fi |
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 | |
toggle-camera() { | |
if kextstat | grep AppleCameraInterface &>/dev/null; then | |
for ((i=0; i<3; i++)); do | |
if sudo kextunload /System/Library/Extensions/AppleCameraInterface.kext &>/dev/null; then | |
echo "toggle-camera: AppleCameraInterface unloaded" | |
return 0 | |
fi | |
done |
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 | |
die_usage() { | |
if [ ! -z "${*}" ]; then | |
echo "ccl: error: ${*}" 1>&2 | |
echo | |
fi | |
echo "usage: ccl <review id> <commit>" 1>&2 | |
echo " ccl <commit range>" 1>&2 | |
exit 1 |
OlderNewer