#Centos 6.3 x86_64
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
git clone git://github.com/joyent/node.git
cd node
--Place holder --
| #!/bin/sh | |
| # | |
| # nginx - this script starts and stops the nginx daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
| # proxy and IMAP/POP3 proxy server | |
| # processname: nginx | |
| # config: /etc/nginx/nginx.conf | |
| # config: /etc/sysconfig/nginx |
| // includes bindings for fetching/fetched | |
| var PaginatedCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
| typeof(options) != 'undefined' || (options = {}); | |
| this.page = 1; | |
| typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
| }, | |
| fetch: function(options) { |
| <script type="text/javascript" src="http://wow.agms.co/jwplayer/mobile.js"></script> | |
| <script type="text/javascript" src="http://wow.agms.co/jwplayer/jwplayer.js"></script> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"> </script> | |
| <script type="text/javascript"> | |
| if (mobileCheckIsMobile()) { | |
| // Load for Tablet / Handheld mp4 | |
| jwplayer("video").setup({ | |
| file: "http://wow.agms.co:1935/free/mp4:the_karate_master_a.mp4/playlist.m3u8", | |
| controlbar: "over", | |
| height: 360, |
| # Nginx High Performance Server Build Script for CentOS, SL | |
| # Copyright Maanas Royy <m4manas@gmail.com> | |
| ### Install Section ### | |
| ## Uncomment to run only first time ## | |
| # Install Dependencies | |
| #yum groupinstall “Development Tools” | |
| # Install Additional Packages | |
| #yum install zlib-devel openssl openssl-devel cpio expat-devel gettext-devel pcre pcre-devel |
| #!/bin/sh | |
| # | |
| # /etc/rc.d/init.d/supervisord | |
| # | |
| # Supervisor is a client/server system that | |
| # allows its users to monitor and control a | |
| # number of processes on UNIX-like operating | |
| # systems. | |
| # | |
| # chkconfig: - 64 36 |
| ; localhost supervisor config file. | |
| ; | |
| ; For more information on the config file, please see: | |
| ; http://supervisord.org/configuration.html | |
| ; | |
| ; Note: shell expansion ("~" or "$HOME") is not supported. Environment | |
| ; variables can be expanded using this syntax: "%(ENV_HOME)s". | |
| [unix_http_server] | |
| file=/tmp/supervisor.sock ; (the path to the socket file) |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
| #!/bin/bash | |
| case "${1:-''}" in | |
| 'start') | |
| if test -f /tmp/selenium.pid | |
| then | |
| echo "Selenium is already running." | |
| else | |
| DISPLAY=:7 java -jar /usr/local/lib/selenium/selenium-server-standalone-2.4.0.jar -port 4444 > /var/log/selenium/selenium-output.log 2> /var/log/selenium/selenium-error.log & echo $! > /tmp/selenium.pid | |
| echo "Starting Selenium..." |