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
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[0;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| LIGHT_GRAY="\[\033[0;37m\]" | |
| COLOR_NONE="\[\e[0m\]" |
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
| -- Drop this script in ~/Library/Address Book Plug-Ins | |
| -- Edit the path in the "do shell script" line | |
| using terms from application "Address Book" | |
| on action property | |
| return "phone" | |
| end action property | |
| on action title for aPerson with aNumber | |
| return "Dial with Google Voice" | |
| end action title |
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
| require 'rubygems' | |
| require 'hmac-sha1' | |
| require 'net/https' | |
| require 'base64' | |
| s3_access='S3_ACCESS_KEY' | |
| s3_secret='S3_SECRET_KEY' | |
| cf_distribution='CLOUDFRONT_DISTRIBUTION_ID' | |
| if ARGV.length < 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/sh | |
| # This program has two feature. | |
| # | |
| # 1. Create a disk image on RAM. | |
| # 2. Mount that disk image. | |
| # | |
| # Usage: | |
| # $0 <dir> <size> | |
| # |
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
| bash < <( curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
| source /etc/profile.d/rvm.sh | |
| yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel | |
| rvm install 1.9.3 | |
| rvm use --default 1.9.3 | |
| gem install --no-rdoc --no-ri adhearsion |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.0</real> | |
| <key>Green Component</key> | |
| <real>0.0</real> |
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
| # quick hack to monitor signal strength | |
| # based on info from: http://www.pcurtis.com/ubuntu-mobile.htm#signal_strength | |
| require 'rubygems' | |
| require 'serialport' | |
| require 'time' | |
| class GSM | |
| def initialize(options = {}) |
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
| 11:14 <reiddraper> drev1: at a higher level, my goal is to launch a | |
| Riak cluster on ec2 and have them join a cluster together without having to manually call "join" | |
| 11:15 <reiddraper> drev1: should I just launch one node first, | |
| call it the master, and then write a script which calls join with | |
| that node -- for the other machines? | |
| 11:16 <drev1> yes | |
| 11:16 <reiddraper> drev1: if I am launching a large cluster, |
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
| ~/$ lein new ring-on-heroku | |
| Created new project in: /home/jim/Development/ring-on-heroku | |
| ~/$ cd ring-on-heroku | |
| ~/ring-on-heroku$ echo 'web: lein run -m ring-on-heroku.core' > Procfile | |
| ~/ring-on-heroku$ cat > src/ring_on_heroku/core.clj | |
| (ns ring-on-heroku.core | |
| (:use ring.util.response | |
| ring.adapter.jetty)) | |
| (defn app [req] |
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
| /var/log/nginx/*.log { | |
| daily | |
| missingok | |
| rotate 52 | |
| compress | |
| delaycompress | |
| notifempty | |
| sharedscripts | |
| postrotate | |
| [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` |
OlderNewer