Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
LAYOUT=sfdp
SIZE=300
echo `date`: Producing graph
cat mutual_uoi_follows | perl -ne 's/(\w+)\t(\w+)/"\1"\t->\t"\2"/ and print' | samp 1 | graphify > graph.gv
echo `date`: Splitting out largest connected component
cat graph.gv | ccomps -zX#0 > graph-cc0.gv
@hepwori
hepwori / make-a-chrome
Created March 18, 2012 05:12
Make a Chrome instance
#!/bin/bash
mkdir -p "/Users/$USER/Applications/Google Chrome ($1).app/Contents/MacOS"
cat > "/Users/$USER/Applications/Google Chrome ($1).app/Contents/MacOS/Google Chrome ($1)" <<EOF
#!/bin/bash
exec -a "Google Chrome ($1)" "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--enable-udd-profiles \
--user-data-dir="/Users/$USER/Library/Application Support/Google/Chrome ($1)" &
#!/bin/bash
PROFILE_NAME="work"
GOOGLE_CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
USER_DIR="/Users/$USER/Library/Application Support/Google/Chrome ($PROFILE_NAME)"
exec -a "Google Chrome ($PROFILE_NAME)" "$GOOGLE_CHROME" \
--enable-udd-profiles \
--user-data-dir="$USER_DIR" &