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
Set up databases to run AS YOUR USER ACCOUNT with: | |
unset TMPDIR | |
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp | |
To set up base tables in another folder, or use a different user to run | |
mysqld, view the help for mysqld_install_db: | |
mysql_install_db --help | |
and view the MySQL documentation: | |
* http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html |
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/env ruby | |
# -*- coding: utf-8 -*- | |
Numbers = [ | |
[" - ", | |
"| |", | |
"| |", | |
"| |", | |
" - "], |
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
#!/bin/sh | |
sudo apt-get install lamp-server^ | |
sudo apt-get install postgresql-server^ |
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
cd /opt/local/etc/ejabberd/ | |
cp ejabberd.cfg.sample ejabberd.cfg | |
cp ejabberdctl.cfg.sample ejabberdctl.cfg | |
cp inetrc.sample inetrc |
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
javascript:function iprl5(){var d=document,z=d.createElement('scr'+'ipt'),b=d.body;try{if(!b)throw(0);d.title='(Saving...) '+d.title;z.setAttribute('src','http://www.instapaper.com/j/aoOVr4t2wFMs?u='+encodeURIComponent(d.location.href)+'&t='+(new Date().getTime()));b.appendChild(z);}catch(e){alert('Please wait until the page has loaded.');}}iprl5();void(0) |
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 GetHead | |
# Returns a Net::HTTPResponse. Get the status code (as string): | |
# resp = with_http "http://imaiku.me/" | |
# code = resp.code # => "301" | |
# resp.each {|k,v| puts k + "\t" + v} | |
def with_http url | |
uri = URI.parse url | |
http = Net::HTTP.start uri.host, uri.port | |
resp = http.head uri.path |
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
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold |
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 iterateOver(arry, div) { | |
var ol = $(document.createElement("ol");); | |
ol.class("records_list"); | |
div.append(ol); | |
$.each(arry, function(i, item) { | |
ol.append("<li>" + item.value + "</li>"); | |
}); | |
} |
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
# add git branch and rvm ruby@gemset in addition to the usual \u \h \w | |
source "$rvm_path/contrib/ps1_functions" | |
ps1_set |
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
---> Computing dependencies for postgresql83-server | |
---> Fetching postgresql83-server | |
---> Verifying checksum(s) for postgresql83-server | |
---> Extracting postgresql83-server | |
---> Configuring postgresql83-server | |
---> Building postgresql83-server | |
---> Staging postgresql83-server into destroot | |
---> Creating launchd control script | |
########################################################### | |
# A startup item has been generated that will aid in |