The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
server { | |
listen 80; | |
server_name domain.com ; | |
access_log /srv/www/domain.com/logs/access.log; | |
error_log /srv/www/domain.com/logs/error.log; | |
root /srv/www/domain.com/current/web; | |
index index.php index.htm index.html; |
INFO global: Vagrant version: 1.8.1 | |
INFO global: Ruby version: 2.2.3 | |
INFO global: RubyGems version: 2.4.5.1 | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant" | |
INFO global: VAGRANT_OLD_ENV_CLICOLOR="1" | |
INFO global: VAGRANT_OLD_ENV_USER="mikekilmer" | |
INFO global: VAGRANT_OLD_ENV_ECHO_NEST_API_KEY="xxx" | |
INFO global: VAGRANT_OLD_ENV_OLDPWD="/Users/mikekilmer/Documents/Clients/UsFoodCoop/OpenFoodNetwork/openfoodnetwork" | |
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F5:0:0" | |
INFO global: VAGRANT_OLD_ENV_VIRTUALENVWRAPPER_HOOK_DIR="/Users/mikekilmer/Envs" |
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
/// Convert angle | |
/// @author Chris Eppstein | |
/// @param {Number} $value - Value to convert | |
/// @param {String} $unit - Unit to convert to | |
/// @return {Number} Converted angle |
#as per http://hackercodex.com/guide/python-development-environment-on-mac-osx/ | |
# pip should only run if there is a virtualenv currently activated | |
export PIP_REQUIRE_VIRTUALENV=false | |
# cache pip-installed packages to avoid re-downloading | |
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache | |
gpip(){ | |
PIP_REQUIRE_VIRTUALENV="" pip "$@" | |
} | |
# In case there's anything in there we need: |
$('#domainName').formValidation({ | |
framework: 'bootstrap', | |
icon: { | |
valid: 'glyphicon glyphicon-ok', | |
invalid: 'glyphicon glyphicon-remove', | |
validating: 'glyphicon glyphicon-refresh' | |
}, | |
fields: { | |
ip: { | |
validators: { |
blockquote, blockquote p { | |
font-family: Hoefler Text,Baskerville Old Face,Garamond,Times New Roman,serif !important; | |
font-style: normal; | |
font-variant: normal; | |
font-weight: 500; | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
blockquote p cite { |
<?php | |
require_once('../lists/admin/PHPMailer/PHPMailerAutoload.php'); | |
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded | |
$mail = new PHPMailer(); | |
$body = file_get_contents('contents.html'); | |
$body = eregi_replace("[\]",'',$body); | |
$mail->IsSMTP(); // telling the class to use SMTP |
#!/bin/bash | |
# Read more: https://medium.com/@tatemz/using-wp-cli-with-docker-21b0ab9fab79#.bzqhqfa6a | |
# Also see https://github.com/chriszarate/docker-wordpress | |
if [ $# -eq 0 ] ; then | |
echo usage: directory_name | |
else | |
WPDIR="$1" | |
mkdir "$WPDIR" && cd "$WPDIR" | |
cat >> docker-compose.yml <<EOL |
#!/bin/bash | |
# Read more: https://medium.com/@tatemz/using-wp-cli-with-docker-21b0ab9fab79#.bzqhqfa6a | |
# Also see https://github.com/chriszarate/docker-wordpress | |
if [ $# -eq 0 ] ; then | |
echo usage: directory_name | |
else | |
WPDIR="$1" | |
mkdir "$WPDIR" && cd "$WPDIR" | |
cat >> docker-compose.yml <<EOL |