Skip to content

Instantly share code, notes, and snippets.

View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version '>= 1.5.1'
Vagrant.configure('2') do |config| = 'precise64'
config.vm.box_url = '' :private_network, ip: ''
View wp.conf
server {
listen 80;
access_log /var/logs/nginx/;
error_log /var/logs/nginx/;
root /srv/www/;
index index.php;
location / {
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version '>= 1.5.1'
Vagrant.configure('2') do |config|
config.vm.define 'dev' do |dev| = 'roots/bedrock' :private_network, ip: ''
dev.vm.hostname = ''
View copy.rb
set :theme_path,'web/app/themes/mytheme')
set :local_app_path,'/Applications/MAMP/htdocs/mysite')
set :local_theme_path, fetch(:local_app_path).join(fetch(:theme_path))
namespace :deploy do
task :compile_assets do
run_locally do
within fetch(:local_theme_path) do
execute :grunt, :build
View iThemes
It’s unbelievable that people are using words like “honesty” and “transparency” right now.
iThemes is a company that KNOWINGLY stored plain text passwords for 6 years.
Did they ever mention this until now? No. That’s not honest or transparent.
They were hiding it from their customers for 6 years hoping that no one would ever find out.
Two things are obvious about this:
1) They don’t know what they’re doing when it comes to security.
2) They don’t care about their customers enough to protect them and do things properly.
View model.rb
class Model < ActiveRecord::Base
enum status: {
cancelled: 'cancelled',
delayed: 'delayed',
final: 'final',
suspended: 'suspended'
View ansible-snippet.yaml
- username: patrick
github: patio11
name: "Patrick McKenzie"
- username: thomas
github: tqbf
name: "Thomas Ptacek"
- username: erin
github: boboTjones
View brewdoctor.txt
Your gcc 4.2.x version is older than the recommended version. It may be advisable
to upgrade to the latest release of Xcode.
We couldn't detect any version of Xcode.
If you downloaded Xcode 4.1 from the App Store, you may need to run the installer.
swalkinshaw / brewconfig.txt
Created July 27, 2011 18:28
brew --config
View brewconfig.txt
brew --config
HEAD: 1e472655c6b764c79f1056c956c6da2453214aba
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.7
swalkinshaw / vimrc
Created August 2, 2011 17:40
View vimrc
" Tabs and Spaces
set tabstop=2
set shiftwidth=2
set softtabstop=2
set backspace=indent,eol,start
set expandtab
set autoindent
set smartindent
set smarttab