This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This one-liner will read the ~/.bash_history file and give the top ten most frequently used commands | |
$ cat ~/.zsh_history \ | |
| cut -f2 -d ";"\ | |
| cut -f1 -d " "\ | |
| awk '{c [$1]++}END{for(j in c)print j,""c[j]""}'\ | |
| sort -hr -k2\ | |
| head \ | |
| column -t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STEP 1: | |
$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \ | |
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev \ | |
sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison \ | |
subversion mustang | |
STEP 2: | |
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rss/1.0' | |
require 'rss/2.0' | |
require 'open-uri' | |
source = "http://feeds.feedburner.com/railscasts" | |
content ="" | |
open(source) do |s| content = s.read end |
NewerOlder