Tested in Mac OS X| super == command (⌘)
| Shortcut | Action |
|---|---|
super+t |
go to file |
super+ctrl+p |
go to project |
| # run using ```rvm jruby-1.6.7 do jruby "-J-Xmx2000m" "--1.9" tej.rb``` | |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'csv' | |
| f = File.open("/tmp/preview.html") | |
| doc = Nokogiri::HTML(f) | |
| csv = CSV.open("/tmp/output.csv", 'w',{:col_sep => ",", :quote_char => '\'', :force_quotes => true}) |
| module Jekyll | |
| class CategoryAwareNextGenerator < Generator | |
| safe true | |
| priority :high | |
| def generate(site) | |
| site.categories.each_pair do |category_name, posts| | |
| posts.sort! { |a, b| b <=> a } |
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| an="$GIT_AUTHOR_NAME" | |
| am="$GIT_AUTHOR_EMAIL" | |
| cn="$GIT_COMMITTER_NAME" | |
| cm="$GIT_COMMITTER_EMAIL" | |
| if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ] |
| # From a fresh install of squeeze | |
| apt-get install ruby rubygems # Need ruby to use fpm | |
| gem1.8 install fpm --no-ri --no-rdoc | |
| apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
| tar -zxvf ruby-1.9.3-p125.tar.gz | |
| cd ruby-1.9.3-p125 | |
| rm -rf /tmp/ruby193 |
| require 'app' | |
| require 'thinking_sphinx/tasks' |