This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function kicknginx () { | |
| kill -HUP `cat /usr/local/var/run/nginx.pid` | |
| touch ./tmp/restart.txt | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| # This script installs to /usr/local only. To install elsewhere you can just | |
| # untar https://github.com/mxcl/homebrew/tarball/master anywhere you like. | |
| module Tty extend self | |
| def blue; bold 34; end | |
| def white; bold 39; end | |
| def red; underline 31; end | |
| def reset; escape 0; end | |
| def bold n; escape "1;#{n}" end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parse_git_branch { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "("${ref#refs/heads/}")" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How are you doing, today? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| require 'osx/foundation' | |
| OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework' | |
| include OSX | |
| $d=File.basename Dir.pwd | |
| Dir.chdir '..' | |
| fsevents_cb = proc do |stream, ctx, numEvents, paths, marks, eventIDs| | |
| system "rsync -vcir ~/projects/karrupa/neuchatel/site/sites/all/* controllercode.com@controllercode.com:/nfs/c06/h01/mnt/88354/domains/neuchatel.karrupa.com/html/sites/all/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +------------+----------+----------------------------------------------------------------+ | |
| | Engine | Support | Comment | | |
| +------------+----------+----------------------------------------------------------------+ | |
| | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | | |
| | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | | |
| | InnoDB | YES | Supports transactions, row-level locking, and foreign keys | | |
| | BerkeleyDB | NO | Supports transactions and page-level locking | | |
| | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | | |
| | EXAMPLE | NO | Example storage engine | | |
| | ARCHIVE | YES | Archive storage engine | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| paul@salt:~$ dpkg --get-selections | grep mysql | |
| libdbd-mysql-perl install | |
| libmysql-ruby1.8 install | |
| libmysqlclient15-dev install | |
| libmysqlclient15off install | |
| mysql-client install | |
| mysql-client-5.0 install | |
| mysql-common install | |
| mysql-server install | |
| mysql-server-5.0 install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| :dialog_thumb: c106x106 | |
| :grid: c135x135 | |
| :preview: c96x96 | |
| :small: 110x110> | |
| :medium: 225x255> | |
| :large: 450x450> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Foo < Tableless | |
| column :bar, :string | |
| validates_presence_of :bar | |
| end |