Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash -x
VIRTUALBOX_DOWNLOAD_URL="http://download.virtualbox.org/virtualbox/4.3.28/VirtualBox-4.3.28-100309-OSX.dmg"
VIRTUALBOX_DOWNLOAD_PATH="/Users/$USER/Downloads/virtualbox.dmg"
VIRTUALBOX_INSTALLER_PKG="/Volumes/VirtualBox/VirtualBox.pkg"
VIRTUALBOX_INSTALLER_TARGET=/Volumes/Macintosh\ HD
DOCKER_DOWNLOAD_URL="https://get.docker.com/builds/Darwin/x86_64/docker-latest"
DOCKER_DOWNLOAD_PATH="/usr/local/bin/docker"
DOCKER_MACHINE_DOWNLOAD_URL="https://github.com/docker/machine/releases/download/v0.2.0/docker-machine_darwin-amd64"
DOCKER_MACHINE_DOWNLOAD_PATH="/usr/local/bin/docker-machine"
@pzula
pzula / sql.txt
Last active August 29, 2015 14:17 — forked from rewinfrey/sql.txt
SELECT organizations.name,
organizations.id,
organizations.ancestry,
tmp.average_activated_time_of_children from organizations
JOIN (
SELECT org.ancestry,
AVG(org.updated_at - org.created_at) as average_activated_time_of_children,
CAST(substring(org.ancestry from '\d+(?!\/)$') as integer) as organization_id
FROM organizations org
INNER JOIN accounts acc ON acc.organization_id=org.id
<?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>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.078821629285812378</real>
<key>Green Component</key>
<real>0.07883714884519577</real>
@pzula
pzula / README.md
Created January 6, 2013 23:58 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/