start new:
tmux
start new with session name:
tmux new -s myname
| This playbook has been removed as it is now very outdated. |
| Install XCode *and* Command Line Tools (just CLT won't be enough, readline won't work =[) | |
| sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2 | |
| sudo ln -s /usr/bin/g++ /usr/bin/g++-4.2 | |
| brew install wget openssl readline libyaml curl libxslt | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
| tar xzvf ruby-1.9.3-p392.tar.gz | |
| cd ruby-1.9.3-p392 |
| #!/bin/bash | |
| # WebSocket shell, start & browse to http://<Host>:6655/ | |
| # Requires bash 4.x, openssl. | |
| # Author: rootshell@corelogics.de (which isn't me, apk) | |
| coproc d { nc -l -p 6656 -q 0; } | |
| nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE | |
| HTTP/1.1 200 OK | |
| <html><head><script language="javascript"> | |
| var url = location.hostname + ':' + (parseInt(location.port) + 1); |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "code.google.com/p/go.crypto/ssh" | |
| "code.google.com/p/go.crypto/ssh/terminal" |
| # UX para Developers - Referências | |
| ## Soluções prontas | |
| - jQuery Mobile (http://www.jquerymobile.com) | |
| - HTML 5 Boilerplate (http://html5boilerplate.com) | |
| ## Ferramentas | |
| - Spin.js (http://fgnass.github.com/spin.js) |
| en: | |
| errors: | |
| messages: | |
| wrong_content_type: "is the wrong content type" |
| /** | |
| * The sample usage of ECMA 5 Mozilla Features Implemented in V8 | |
| * https://github.com/joyent/node/wiki/ECMA-5-Mozilla-Features-Implemented-in-V8 | |
| * You can use thease new feature of ECMA5 on Node.js as you like. | |
| * because there is no IE :) | |
| * Order is deferent form original wiki. | |
| * Sources are Checked on Node.js v0.5.0(unstable), v0.4.9(stable) | |
| * | |
| * you can execute this file. | |
| * $ node ecma5_on_v8.js |
| class Product | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| field :description, :type => String | |
| field :price_pence, :type => Integer, :default => 0 | |
| field :currency_iso, :type => String, :default => Money.default_currency.iso_code | |
| validates_presence_of :description |