Michelle Krejci, Greg Pamier, Will Milton, Doug Dobrzynski, Matthew Gilboy
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 | |
creds=( `pass $1` ) | |
for cred in "${creds[@]}"; do | |
export $cred; | |
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
{ | |
"repositories": [{ | |
"type": "composer", | |
"url": "http://drupal-packagist.org" | |
}], | |
"minimum-stability": "alpha", | |
"require": { | |
"drupal/panopoly": "7.*" | |
} | |
} |
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
# Copy mode¬ | |
setw -g mode-keys vi¬ | |
bind ` copy-mode¬ | |
unbind [¬ | |
unbind p¬ | |
bind p paste-buffer¬ | |
bind -t vi-copy H start-of-line¬ | |
bind -t vi-copy L end-of-line¬ | |
bind -t vi-copy v begin-selection¬ | |
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"¬ |
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
require 'plist' | |
name_servers = ['172.17.42.1', '8.8.4.4', '8.8.8.8'] | |
plist_file = '/Library/Preferences/SystemConfiguration/preferences.plist' | |
plist = Plist::parse_xml(plist_file) | |
current_set_key = plist['CurrentSet'].split('/').at(-1) | |
service_key = nil | |
plist['NetworkServices'].each do |key, dict| | |
if (addresses = dict['DNS']['ServerAddresses']) | |
addresses = addresses + (name_servers - addresses) |
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"?> | |
<ruleset name="Symfony"> | |
<description>Symfony coding standards code sniffer ruleset.</description> | |
<rule ref="PEAR"> | |
<exclude name="PEAR.Commenting.FunctionComment"/> | |
<exclude name="PEAR.Commenting.FileComment"/> | |
<exclude name="PEAR.Commenting.ClassComment"/> | |
</rule> | |
</ruleset> |
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
<?php | |
require __DIR__ . '/vendor/.composer/autoload.php'; | |
$app = new Silex\Application(); | |
$app['autoloader']->registerNamespace('SilexExtension', __DIR__ . '/vendor/fate/silex-extensions/src'); | |
$app->register(new SilexExtension\MongoDbExtension(), | |
array( | |
'mongodb.class_path' => __DIR__ . 'vendor/doctrine/mongodb/lib', | |
'mongodb.connection' => array( |
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
require 'rake/clean' | |
DRUPAL_ROOT = "#{File.dirname(__FILE__)}/www" | |
PROJECT = "airbox" | |
DRUPAL_URI = "#{PROJECT}.dev" | |
DATABASE_PATH = "archives/current/database.sql" | |
FILES_PATH = "archives/current/files" | |
ARCHIVE_DIR = "/var/drupals/archives/#{PROJECT}" | |
DRUSH_DIR = "#{ENV['HOME']}/.drush" | |
BUILD_DIR = "build" |
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
Vagrant.configure("2") do |config| | |
config.berkshelf.enabled = true | |
config.berkshelf.berksfile_path = "./Berksfile" | |
config.vm.box = "squeeze" | |
config.vm.box_url = "https://s3.amazonaws.com/wa.milton.aws.bucket01/sqeeze.box" | |
config.ssh.max_tries = 40 | |
config.ssh.timeout = 120 |
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
site :opscode | |
cookbook "drupal", git: "https://github.com/promet/drupal_cookbook" | |
cookbook "solo-helper", git: "https://github.com/glennpratt/solo-helper_cookbook.git" |
OlderNewer