Skip to content

Instantly share code, notes, and snippets.

[client]
user=root
password=mysupersecuremysqlpassword
@halcyonCorsair
halcyonCorsair / mymodule.drush.inc
Created January 9, 2012 21:58
My slightly ugly reference implementation
<?php
/**
* Implementation of hook_provision_drupal_create_directories().
*
* Make the directory create phase of a site install web cluster ready.
* A patch to provision is needed.
* @url http://drupal.org/files/issues/provision_drupal_create_directories.patch
*/
function mymodule_provision_drupal_create_directories(&$dirs, $url) {
$web_group = d('@server_master')->web_group;
@halcyonCorsair
halcyonCorsair / fabfile.py
Created January 14, 2012 00:10
sample fabfile
import sys
def printpath():
for path in sys.path:
print "path element: " + path
def test():
config_name = 'testconfig'
__import__(config_name)
@halcyonCorsair
halcyonCorsair / nginx.conf
Created January 25, 2012 05:33
fabric-aegir-mac nginx.conf
# Nginx web server main configuration file /etc/nginx/nginx.conf
#
user [username] staff;
worker_processes 4;
worker_rlimit_nofile 8192;
error_log logs/error.log;
#pid /var/run/nginx.pid;
events {
@halcyonCorsair
halcyonCorsair / org.nginx.nginx.plist
Created January 26, 2012 00:00
Nginx plist file for homebrew
<?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>Label</key>
<string>org.nginx.nginx</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
@halcyonCorsair
halcyonCorsair / org.homebrew.php-fpm
Created January 26, 2012 08:08
php-fpm plist file for homebrew
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>org.homebrew.php-fpm</string>
<key>LaunchOnlyOnce</key>
<true/>
@halcyonCorsair
halcyonCorsair / Vagrantfile
Created September 5, 2012 21:10
A json file for chef-solo, and the equivalent Vagrantfile to setup koha
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
@halcyonCorsair
halcyonCorsair / Berksfile
Created September 14, 2012 22:28
chef-koha berksfile
metadata
cookbook 'apache2'
cookbook 'mysql'
cookbook 'perl'
cookbook 'koha', git: 'git://github.com/halcyonCorsair/chef-koha.git'
@halcyonCorsair
halcyonCorsair / Vagrantfile
Created September 14, 2012 22:52
chef-koha Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "kohadeps"
@halcyonCorsair
halcyonCorsair / flac2mp3.sh
Created October 30, 2012 01:56
some randam flac2mp3 script, nfi where I got this from
$ cat /usr/local/bin/flac2mp3.sh
PRESET=$1
DESTDIR=$2
if test "x$PRESET" = "x"; then
PRESET=extreme
fi
if test "x$DESTDIR" = "x"; then
DESTDIR=.