Skip to content

Instantly share code, notes, and snippets.

View rafmagana's full-sized avatar

Rafael Magaña rafmagana

  • Colima, Mexico
View GitHub Profile
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
; A REPL-based, annotated Seesaw tutorial
; Please visit https://github.com/daveray/seesaw for more info
;
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers
; Seesaw's basic features and philosophy, but only scratches the surface
; of what's available. It only assumes knowledge of Clojure. No Swing or
; Java experience is needed.
;
; This material was first presented in a talk at @CraftsmanGuild in
; Ann Arbor, MI.
@rafmagana
rafmagana / gist:2242353
Created March 29, 2012 19:16
Building a CentOS 6 Box for Vagrant
@rafmagana
rafmagana / vagrant.md
Created March 29, 2012 18:11
Installing CentOS 5.6 64-bit and Puppet on Vagrant

Installing CentOS 5.6 64-bit and Puppet on Vagrant

Notes

This document is an adaptation of the instructions found here: http://vagrantup.com/docs/base_boxes.html

These instructions are specifically for 64-bit CentOS and Puppet.

Created with the following software:

@rafmagana
rafmagana / gist:1392283
Created November 24, 2011 21:03 — forked from dberesford/gist:968881
Sample Node.js code for connecting to Redis Service in CloudFoundry
require.paths.unshift('./node_modules')
var http = require('http');
var fs = require('fs');
var redis = require("redis");
var util = require('util');
var server = http.createServer(function (request, response) {
// Redis local settings, overridden below if we're running in CloudFoundry
var redisPort = 6379;