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 | |
if [ -z "$1" ] || [ -z "$2" ] ; then | |
echo "Usage: imsg [address] [message]" | |
else | |
/usr/bin/osascript -e 'tell application "Messages" | |
send "'"$2"'" to buddy "'"$1"'" of service "E:[email protected]" | |
end tell' | |
echo "Sent" | |
fi |
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
upstream app { | |
server unix:/home/user/application/tmp/socket fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /home/user/application/public; |
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 listenOn = 3000; | |
if(process.env.NODE_ENV == 'production'){ | |
listenOn = "tmp/socket"; | |
} | |
var startServer = function(){ | |
app.listen(listenOn, undefined, undefined, function(){ | |
console.log("Listening on " + listenOn); | |
if(typeof(listenOn) == 'string'){ | |
fs.chmod(listenOn, 0777); |
Installation commands:
$ wget http://redis.googlecode.com/files/redis-2.2.2.tar.gz
$ tar xvfz redis-2.2.2.tar.gz
$ cd redis-2.2.2/
$ mkdir -p /opt/redis
$ make PREFIX=/opt/redis install
$ cp redis.conf /opt/redis/redis.conf
$ chown -R redis:redis /opt/redis