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/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 |
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/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)" & |
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/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" & |