Skip to content

Instantly share code, notes, and snippets.

##
# APC recipe
# => convenience rules for dealing with APC in applications
##
_cset(:apc_webroot) { "" }
namespace :apc do
desc <<-DESC
Create a temporary PHP file to clear APC cache, call it (using curl) and removes it
# Aliases
alias ls='ls -hG'
alias ll='ls -l'
alias la='ls -A'
alias lla='ls -lA'
alias le='ls -lAeO@'
alias cleardns="dscacheutil -flushcache"
alias crontab="VIM_CRONTAB=true crontab"
alias gl="git log --graph --pretty='format:%C(yellow)%h%Cblue%d%Creset %s %C(white)%an, %ar%Creset'"
#!/bin/bash
### Set default parameters
# somewhat follows the conventions from: http://michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/
# designed to run on a debian symbiosis box if your interested why its /srv
action=$1
domain=$2
appname=$3
owner=$(who am i | awk '{print $1}')
sitesEnable='/etc/nginx/sites-enabled/'
sitesAvailable='/etc/nginx/sites-available/'
@Benedict
Benedict / map.make
Created December 29, 2015 00:10 — forked from mpgeek/map.make
Drush make file for large-scale mapping with server side clustering via the geocluster stack and leaflet for display.
; Large-scale mapping build spec.
;; GeoPHP
libraries[geoPHP][download][type] = "git"
libraries[geoPHP][download][url] = "https://github.com/phayes/geoPHP.git"
libraries[geoPHP][download][revision] = "0aae7c3"
projects[geophp][version] = "1.7"
;; Geocoder