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
@darrencraig
darrencraig / _reset.scss
Created September 16, 2014 12:08
Eric Meyer's CSS reset in SCSS format
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
// 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
@darrencraig
darrencraig / gist:5530650
Created May 7, 2013 06:38
Laravel 4 Pagodabox Boxfile
web1:
document_root: public
php_version: 5.3.10
php_extensions:
- apc
- mbstring
- mcrypt
- pdo_mysql
- zip
shared_writable_dirs: