git clone <repo>
clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
RSpec.configure do |config| | |
config.around do |example| | |
# For examples using capybara-webkit for example. | |
# Remove this if you don't use it or anything similar | |
if example.metadata[:js] | |
example.run | |
ActiveRecord::Base.connection.execute("TRUNCATE #{ActiveRecord::Base.connection.tables.join(',')} RESTART IDENTITY") | |
else | |
ActiveRecord::Base.transaction do |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require 'rvm/capistrano' | |
require 'bundler/capistrano' | |
set :rvm_ruby_string, '1.9.3' | |
set :rvm_type, :user | |
set :application, "net" | |
set :repository, "git@example.net:net.git" |
diff --git a/app/account.rb b/app/account.rb | |
index a108685..c89ad34 100644 | |
--- a/app/account.rb | |
+++ b/app/account.rb | |
@@ -1,4 +1,22 @@ | |
+require 'open-uri' | |
+ | |
module Sol | |
+ class Url | |
+ def self.get(url) |
echo -e "\n$(top -l 1 | awk '/PhysMem/';)\n" | |
=> PhysMem: 1701M wired, 6232M active, 976M inactive, 8909M used, 3376M free. | |
Add to ~/.bash_profile | |
alias freemem="top -l 1 | awk '/PhysMem/'" | |
A more brief output: |