Skip to content

Instantly share code, notes, and snippets.

@darrencraig
darrencraig / halyard-config.sh
Created January 3, 2019 15:36 — forked from louisvernon/halyard-config.sh
Halyard configuration for GKE plus Spinnaker deployment
# execute from remote path
cd $(cd -P -- "$(dirname -- "$0")" && pwd -P)
BACKUP_ID=$(date '+%d-%M-%Y-%s')
mv ~/.hal ~/hal$BACKUP_ID
source config_vars
if [! "$CLSID" = "" ]; then
$QUIET = "-q"
@darrencraig
darrencraig / install_pdo_sqlsrv.sh
Created July 20, 2017 11:51 — forked from joecampo/install_pdo_sqlsrv.sh
Install Official MSSQL driver for Unbuntu 14.04 - pdo_sqlsrv
#!/bin/bash
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo -i export CPPFLAGS="-DSIZEOF_LONG_INT=8"
sudo apt-get -y install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
cd ~
echo "Configuring the unixODBC 2.3.1 Driver Manager"
@darrencraig
darrencraig / sudoers
Created March 6, 2017 16:43 — forked from keith/sudoers
The default OS X sudoers file
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
# Capistrano Laravel 4 Deployment Tasks
# Watts Martin (layotl at gmail com)
# https://gist.github.com/chipotle/5506641
# updated 01-Jul-2013
# Assumptions:
#
# - You are using a .gitignore similar to Laravel's default, so your
# vendor directory and composer(.phar) are *not* under version control
# - Composer is installed as an executable at /usr/local/bin/composer