Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
... | |
def posts_params | |
params[:post][:tags] = params[:post][:tags].split(",") if params[:post][:tags].is_a? String | |
params.require(:post).permit(:title, :content, :tags => []) | |
end | |
end |
#!/bin/bash | |
su - ubuntu -c "ruby $HOME/bin/update-dns.rb" |
# /home/ubuntu/bin/update-dns.rb | |
require 'rubygems' | |
require 'open-uri' | |
require 'route53' | |
zone = "bartimae.us" | |
record_type = "A" | |
ip_address = open("http://169.254.169.254/latest/meta-data/public-ipv4") { |f| f.read } |
# /home/ubuntu/bin/update-dns.rb | |
require 'rubygems' | |
require 'open-uri' | |
require 'route53' | |
zone = "bartimae.us" | |
record_type = "A" | |
ip_address = open("http://169.254.169.254/latest/meta-data/public-ipv4") { |f| f.read } |
/* Additional styles for Chrome Inspector; should be used with | |
http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
and | |
http://dpaste.com/hold/595890/ | |
*/ | |
#elements-content li.hovered:not(.selected) .selection { | |
/* hover color */ | |
background: rgba(255, 255, 255, .2) !important; | |
} | |
#elements-content .selection.selected { |
# Sample verbose configuration file for Unicorn (not Rack) | |
# | |
# This configuration file documents many features of Unicorn | |
# that may not be needed for some applications. See | |
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb | |
# for a much simpler configuration file. | |
# | |
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete | |
# documentation. |
# | |
# These are some basic settings for nginx. | |
# If it's not installed, install via `apt-get install nginx` | |
# Many pieces of this config came from other people's settings. Sorry for the lack of attribution. | |
# | |
upstream [app_name]_unicorn { | |
server unix:/tmp/[app_name].sock; | |
} |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: APPLICATION | |
# Required-Start: $all | |
# Required-Stop: $network $local_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start the APPLICATION unicorns at boot | |
# Description: Enable APPLICATION at boot time. | |
### END INIT INFO |
# | |
# This file MUST be edited with the 'visudo' command as root. | |
# | |
# Please consider adding local content in /etc/sudoers.d/ instead of | |
# directly modifying this file. | |
# | |
# See the man page for details on how to write a sudoers file. | |
# | |
Defaults env_reset |