Skip to content

Instantly share code, notes, and snippets.

@muness
muness / 2012-BoS-notes.txt
Created October 2, 2012 17:58
BoS 2012 conference notes
# General notes
* Wifi woes, as usual.
* Conference food sucks, as usual
* Gave away a dead tree book. why a dead tree and not an eBook?
* #Bos2012
* Lots of energy from everyone I talked to.
# Kathy Sierra's badass users talk

Start a rest server by running:

bin/rest 8888 myalias "datomic:mem://"

Then interact with it with curl:

curl -i -X PUT http://localhost:8888/db/myalias/seattle # Create a database
curl -H Content-Type: -H "Content-Type:" -X POST -d @- http://localhost:8888/db/myalias/seattle
[              

{:db/id #db/id[:db.part/db]

@muness
muness / setup.sh
Created August 28, 2009 13:19
Setup things on a fresh Leopard box
# 1) Install XCode. Requires auth and doesn't accept http basic auth
mkdir ~/tmp
mkdir ~/bin
pushd ~/tmp
curl -O -s http://iterm.sourceforge.net/iTerm_0.9.6.20090415.zip &&
unzip iTerm*.zip &&
sudo mv iTerm.app /Applications
# In ~/.bash_profile define a PROJECT_PARENT_DIRS array and source this script. e.g.
# PROJECT_PARENT_DIRS="$HOME/src:$HOME/work"
# source ~/.project_aliases.sh
if [ -z "${PROJECT_PARENT_DIRS[*]}" ]; then
echo "Define a PROJECT_PARENT_DIRS array in ~/.bash_profile"
fi
for PARENT_DIR in ${PROJECT_PARENT_DIRS[@]} ; do
if [ -d "$PARENT_DIR" ]; then
for PROJECT_DIR in $(ls $PARENT_DIR); do