Skip to content

Instantly share code, notes, and snippets.

View redcap3000's full-sized avatar
💭
NONE

Ronaldo Barbachano redcap3000

💭
NONE
View GitHub Profile
@redcap3000
redcap3000 / nodejs-custom-version-openshift-installer.sh
Last active December 15, 2015 19:29
File that loads git://github.com/openshift/nodejs-custom-version-openshift.git in to an openshift app repo. Supply with path to existing openshift repo, or move script into repo root
#!/bin/bash
## Nodejs custom version installer
##
## Ronaldo Barbachano April 2013
## Based on the openshift/nodejscustom-version-openshift repo
##
## Supply with path to existing openshift repo, or move script into
## repo root.
##
## Probably less headaches if this is run immediately after
@redcap3000
redcap3000 / number_base.php
Created October 28, 2011 19:51
Number Base Conversion Helper
<?php
// Ronaldo Barbachano October 2011
// Created out of a need to compress integer values in couch databases. Php 5.3 will allow up to 36 bit bases,
// which results in the smallest integer representation.
//To convert to default base, of 8, just provide
// number_base::number_convert(1);
// encodes 1 into base 32 number
// number_base::num_convert(1,32);