Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 # 2nd line, says file has Unicode data and names | |
| ##################################################################### | |
| # Ruby 1.8 Unicode Demonstration | |
| ##################################################################### | |
| # Enable Unicode Support, or start with: ruby -Ku | |
| $KCODE = "UTF-8" |
| [user] | |
| name = Your Nmae | |
| email = you@example.com | |
| [core] | |
| editor = vim | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| ui = auto |
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New new -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| ========================================== | |
| BASH SCRIPTING ========================================== | |
| ========================================== TEST COMMAND | |
| ========================================== | |
| Invoke: bash [options] file | |
| Shebang: #!/usr/bin/env bash Test: test expression | |
| In script: [ expression ] | |
| ========================================== Alternate: [[ espression ]] | |
| LOOP Does not split string words | |
| ========================================== Does not expand pathglobs* |
| #!/usr/bin/env bash | |
| ################################################################################ | |
| # Script to initiate (or connect to) a tmux session | |
| ############################################################################### | |
| # Starts session and returns, or attaches to existing session name and exits. | |
| function tm_session { # session name | |
| #echo tmux start-server | |
| tmux start-server | |
| #echo tmux has-session -t $1 |
Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
| " vimscript function to rotate line number setting from [On -> Relative -> Off], set to <Leader>n | |
| " Author: Allen Fair, 2012 | |
| " License: Public Domain | |
| function RotateNumber() | |
| if &l:number | |
| let &l:number=0 | |
| let &l:relativenumber=1 | |
| echom "Line Numbers" | |
| elseif &l:relativenumber |
Use the curl command line tool from your terminal window to access web pages, resources, and API's. This swiss-army knife of the internet also supports many more protocols and tools.
curl [options] URL
The complete, offical reference page is here.
| var talk = { | |
| title: "JSON Messaging: From REST and Beyond", | |
| by: { name: "Allen Fair", | |
| twitter: "@allenfair" }, | |
| event: { organization: "Philly.rb", | |
| when: "August 12, 2013 23:00 UDT", | |
| style: "☇ Lightning" }, |
| FactoryGirl.define do | |
| factory :user do # class:User, aliases:[:name1, :name2] | |
| name "Ruby" | |
| date_of_birth { 21.years.ago } # Blocked called lazily at request time | |
| association_factory_name | |
| association :commenter, factory: :user, attrib:"value" | |
| factory(:admin_user) do # Inheritance | |
| admin true | |
| end |