Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
¯\_ (ツ) _/¯

Chai Phonbopit Phonbopit

👻
¯\_ (ツ) _/¯
View GitHub Profile
@Phonbopit
Phonbopit / frp.md
Created Aug 31, 2016 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language
View frp.md

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@Phonbopit
Phonbopit / README.md
Created Aug 30, 2016
How to setup a Oracle 12c database on DigitalOcean
View README.md

Step 0:

Start downloading the install files from Oracle

Step 1:

Create a blank CentOs 6.5 instance

Convert to Oracle Linux: (source)

curl -O https://linux.oracle.com/switch/centos2ol.sh 
sh centos2ol.sh
@Phonbopit
Phonbopit / randomString.js
Created Jul 22, 2016 — forked from dchest/randomString.js
Generates cryptographically secure uniform random string in browsers and Node.js [IN DEVELOPMENT]
View randomString.js
// randomString(length)
// --------------------
//
// Generates and returns a cryptographically secure
// uniform alphanumeric random string.
//
// Examples:
//
// randomString(14) // "oXYWpc1vODNR3M"
// randomString.hex(8) // "663c722b65943b9b"
@Phonbopit
Phonbopit / learning_resources.md
Created Feb 3, 2016 — forked from nathansmith/web-design-development-learning-resources.md
Resources for learning web design & front-end development
View learning_resources.md
@Phonbopit
Phonbopit / gist:fb85e3474224c0e6d20f
Created Oct 19, 2015 — forked from jrochkind/gist:2161449
A Capistrano Rails Guide
View gist:fb85e3474224c0e6d20f

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

View nodejs-cheatsheet.js
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
View essential-javascript-links.md
View db.coffee
mongoose = require "mongoose"
paginate = require('paginate')({
mongoose: mongoose
});
mongoose.set "debug", true
# connection sharing thanks to [connection-sharing mongoose examples](https://github.com/LearnBoost/mongoose/tree/master/examples/express/connection-sharing)
db = global.db = mongoose.createConnection(conf.db.mongoUrl);