###Invite your readers to leave you a Bitcoin tip on Reddit
Reddit's Bitcoin implementation is ideal for beginners. Here's how to get them to give it a try.
####Structure
| #!/usr/bin/env bash | |
| # Generates gource video (h.264) out of multiple repositories. | |
| # Pass the repositories in command line arguments. | |
| # Example: | |
| # <this.sh> /path/to/repo1 /path/to/repo2 | |
| i=0 | |
| for repo in $*; do | |
| # 1. Generate a Gource custom log files for each repo. This can be facilitated by the --output-custom-log FILE option of Gource as of 0.29: | |
| logfile="$(mktemp /tmp/gource.XXXXXX)" |
| 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", |