Skip to content

Instantly share code, notes, and snippets.

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version '>= 1.5.1'
Vagrant.configure('2') do |config|
config.vm.box = 'precise64'
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
config.vm.network :private_network, ip: '192.168.50.5'
server {
listen 80;
server_name example.dev;
access_log /var/logs/nginx/example.dev.access.log;
error_log /var/logs/nginx/example.dev.error.log;
root /srv/www/example.dev/current/web;
index index.php;
location / {
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version '>= 1.5.1'
Vagrant.configure('2') do |config|
config.vm.define 'dev' do |dev|
dev.vm.box = 'roots/bedrock'
dev.vm.network :private_network, ip: '192.168.50.5'
dev.vm.hostname = 'example.dev'
set :theme_path, Pathname.new('web/app/themes/mytheme')
set :local_app_path, Pathname.new('/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
end
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.
class Model < ActiveRecord::Base
enum status: {
cancelled: 'cancelled',
delayed: 'delayed',
final: 'final',
suspended: 'suspended'
}
end
vars:
starfighters:
- username: patrick
github: patio11
name: "Patrick McKenzie"
- username: thomas
github: tqbf
name: "Thomas Ptacek"
- username: erin
github: boboTjones
/usr/bin/gcc
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
swalkinshaw / brewconfig.txt
Created July 27, 2011 18:28
brew --config
brew --config
/usr/bin/gcc
HOMEBREW_VERSION: 0.8
HEAD: 1e472655c6b764c79f1056c956c6da2453214aba
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.7
@swalkinshaw
swalkinshaw / vimrc
Created August 2, 2011 17:40
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