Skip to content

Instantly share code, notes, and snippets.

View cyakimov's full-sized avatar

Carlos Yakimov cyakimov

  • Falabella
  • Santiago, Chile
View GitHub Profile
@cyakimov
cyakimov / nodejs.sh
Created August 13, 2011 20:06 — forked from crcastle/nodejs.sh
Node.js startup script for AWS EC2 Linux box
#!/bin/bash
# nodejs - Startup script for node.js server
# chkconfig: 35 85 15
# description: node is an event-based web server.
# processname: node
# server: /path/to/your/node/file.js
# pidfile: /var/run/nodejs.pid
#
@cyakimov
cyakimov / description.txt
Created July 11, 2011 20:38 — forked from samueldana/description.txt
Server setup issue using Nginx, RVM, Ruby-1.9.1, and Thin
So, I'm setting up a new Ubuntu 10.04 server with nginx, RVM, Ruby-1.9.1, and Thin.
I got through installing nginx, RVM, ruby-1.9.1 without any problems.
Ruby-1.9.1 was installed using 'rvm install x';
I don't have a system Ruby (Which is what I've been doing previously).
I've also set the default ruby to 1.9.1 for myself and root.
I installed the thin gem using 'gem install thin'
I then installed thin to the system using
'thin install'
@cyakimov
cyakimov / visibility.js
Created June 20, 2011 16:01 — forked from niallkennedy/visibility.js
Page Visibility API visibility test using jQuery
var isVisible = false;
function onVisible() {
isVisible = true;
jQuery.getScript("http://www.google-analytics.com/ga.js");
}
if ( document.webkitVisibilityState === undefined || document.webkitVisibilityState === "visible" ) {
onVisible();
} else {
jQuery.bind( "webkitvisibilitychange", function() {