Skip to content

Instantly share code, notes, and snippets.

Begin: Running /scripts/init-bottom ... done.
init: ureadahead main process (342) terminated with status 5
init: console-setup main process (2044) terminated with status 1
45) killed by SEGV signal
init: plymouth-splash main process (2196) terminated with status 2
mountall: Plymouth command failed
mountall: Disconnected from Plymouth
fsck from util-linux-ng 2.17.2
/dev/sda1 has gone 336 days without being checked, check
@rdj
rdj / private.xml
Created October 2, 2012 02:04
KeyRemap4MacBook configuration
<?xml version="1.0"?>
<root>
<item>
<name>RDJ’s Customizations</name>
<item>
<name>Pseudo-collapse ⎋ and `</name>
<item>
<name>⌘⎋ to ⌘`</name>
<identifier>private.cmd_esc_to_cmd_backtick</identifier>
<autogen>
@rdj
rdj / update-ip
Created November 6, 2012 06:34
Bash script to use from cron to dynamically update IP on Amazon route 53
#!/bin/bash
source ~/.rvm/environments/default
DNS_ZONE=yourdomain.com
DNS_RECORD=yourhost.yourdomain.com.
IP_CACHE_FILE="$(dirname $0)/update-ip.cache"
if [[ -r "$IP_CACHE_FILE" ]]; then
deploy@foxtrot:~$ uname -a
Linux XXXXXXX 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:
33 UTC 2010 x86_64 GNU/Linux
deploy@foxtrot:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
ryan@osangar ~ $ irb
1.9.3-p327 :001 > (1..10).each do |i|
1.9.3-p327 :002 > passes = true
1.9.3-p327 :003?> begin
1.9.3-p327 :004 > (rp, wp) = IO.pipe
1.9.3-p327 :005?> wp.write_nonblock ("F" * i) while(select [],
[wp], [], 0)
1.9.3-p327 :006?> rescue Errno::EAGAIN
1.9.3-p327 :007?> puts "#{i}: FAIL"
1.9.3-p327 :008?> passes = false
[user]
name = Ryan D Johnson
email = ryandjohnson@gmail.com
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status -s
log1 = log --format=oneline
PATH
remote: .
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0, >= 1.0.2)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.6)
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
PATH
remote: .
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0, >= 1.0.2)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.6)
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js