Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
localhost ~ # cat <<EOF> /etc/wpa_supplicant.conf | |
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel | |
update_config=1 | |
EOF | |
localhost ~ # wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B | |
Successfully initialized wpa_supplicant | |
localhost ~ # wpa_cli | |
wpa_cli v2.0 | |
Copyright (c) 2004-2012, Jouni Malinen <[email protected]> and contributors |
-480p - Run tenfoot in 480p rather than 1080p | |
-720p - Run tenfoot in 720p rather than 1080p | |
-accesscode - | |
-all_languages - show longest loc string from any language | |
-batterytestmode - rapidly cycle battery percentages for testing | |
-bigpicture - Start in Steam Big Picture mode | |
-blefw - | |
-cafeapplaunch - Launch apps in a cyber cafe context | |
-candidates - Show libjingle candidates for local connection as they are processed | |
-ccsyntax - Spew details about the localized strings we load |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
product | price | quantity | |
---|---|---|---|
widget1 | 19.95 | 10 | |
widget2 | 24.00 | 20 | |
widget1 | 12.00 | 40 |
$ ActiveRecord::Base.connection.reset_pk_sequence!('table_name')
If you need the table names:
$ ActiveRecord::Base.connection.tables
=> ["accounts", "assets", ...]
# put this in your ~/.irbrc | |
begin | |
require 'pry' | |
Pry.start | |
exit | |
rescue LoadError | |
puts "Pry not found, using 'irb' instead. Try\n gem install pry" | |
end |
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
As configured in my dotfiles.
start new:
tmux
start new with session name:
/* just webkit, 'cause yeah... */ | |
@-webkit-keyframes wobble { | |
0% { -webkit-transform: rotate(0deg); } | |
20% { -webkit-transform: rotate(2deg); } | |
50% { -webkit-transform: rotate(-2deg); } | |
100% { -webkit-transform: rotate(0deg); } | |
} | |
.wobble { -webkit-animation: wobble 5s infinite; } |