List moved
Please use https://github.com/bf4/learning to fork and pull changes.
List moved
Please use https://github.com/bf4/learning to fork and pull changes.
| # navigation | |
| # ctrl + A - moves to the start of the line | |
| # ctrl + E - moves to the end of the line | |
| # ctrl + B - move back on character | |
| # ctrl + F - move forward one character | |
| # esc + B - move back one word | |
| # esc + F - move forward one word | |
| # alt + <-/-> | |
| # ctrl + U - delete from the cursor to the beginning of the line | |
| # ctrl + K - delete from the cursor to the end of the line |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| # -*- encoding : utf-8 -*- | |
| $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. | |
| require "rvm/capistrano" # Load RVM's capistrano plugin. | |
| set :rvm_ruby_string, '1.9.2' # Or whatever env you want it to run in. | |
| require 'bundler/capistrano' | |
| set :application, "YourApp" |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
| # coding: utf-8 | |
| require 'sinatra' | |
| set server: 'thin', connections: [] | |
| get '/' do | |
| halt erb(:login) unless params[:user] | |
| erb :chat, locals: { user: params[:user].gsub(/\W/, '') } | |
| end | |
| get '/stream', provides: 'text/event-stream' do |
| /* | |
| For more detailed instructions on how to use this script, sign up with your email here: | |
| http://adamloving.com/internet-programming/how-toexport-facebook-page-fans | |
| DISCLOSURE: This javascript runs in your browser pretending to be you | |
| looking through your page fans. Facebook should have no problem with this, | |
| but who knows if they will think it is strange to see you looking through | |
| all your fans so quickly (the script waits 3s before requesting each page). | |
| I've had no problem running this so far for 1000s of page fans, but I |
| #!/usr/bin/python | |
| ''' | |
| InFB - Information Facebook | |
| Usage: infb.py [email protected] password | |
| http://ruel.me | |
| Copyright (c) 2011, Ruel Pagayon | |
| All rights reserved. |