- USB SSD with at least 8GB
- Windows .ISO
Open terminal and do the following:
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com', 'http://www.new-domain.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ " | |
# gives me: | |
# jgfraga@ ~/development/ruby/project (master) # user in green, curr dir in yellow, and branch in green |
# config valid only for Capistrano 3.1 | |
lock '3.1.0' | |
set :application, 'samplewebsite.com' | |
# set :deploy_via, :copy | |
set :deploy_to, "/var/apps/#{fetch(:application)}" | |
set :checkout, "export" | |
# default_run_options[:pty] = true | |
set :use_sudo, false |
# Add this to Gemfile, then run 'bundle install' | |
gem "htmlentities" | |
# Add this to your helper | |
def truncate_and_sanitize(text, args={}) | |
truncate sanitize(HTMLEntities.new.decode(text), tags: []), args | |
end |
upstream samplewebsite { | |
server unix:/tmp/samplewebsite.com.socket fail_timeout=0; | |
} | |
server { | |
# enable one of the following if you're on Linux or FreeBSD | |
# listen 80 default deferred; # for Linux | |
# listen 80 default accept_filter=httpready; # for FreeBSD |