Skip to content

Instantly share code, notes, and snippets.

Building, breaking, and fixing things.

Nick Parsons nparsons08

Building, breaking, and fixing things.
Block or report user

Report or block nparsons08

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View aggregated_feed.json
"next": "",
"duration": "46ms",
"results": [{
"created_at": "2017-06-28T16:38:58.806970",
"updated_at": "2017-06-28T16:38:58.806970",
"activities": [{
"actor": "ian",
"foreign_id": "5",
"target": null,
nparsons08 /
Created Oct 16, 2016 — forked from agendor/
A practical introduction to building a RESTful API with the hapi.js server framework for Node.js
nparsons08 /
Created May 18, 2016 — forked from patrickhammond/
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL"
nparsons08 / nginx-ssl-config
Created May 13, 2016 — forked from apollolm/nginx-ssl-config
Nginx Configuration with multiple port apps on same domain, with SSL.
View nginx-ssl-config
# the IP(s) on which your node server is running. I chose port 3000.
upstream app_geoforce {
upstream app_pcodes{
View Magento-1.7.2: Delete all orders and dashboard.sql
-- Tested on 1.7.2.
-- Run the below MySQL query in your phpmyadmin
-- It has deleted my all test orders and also reset my dashboard.
TRUNCATE `catalogsearch_query`;

How to use Heroku's SSL Endpoint with an SSL certificate purchased from GoDaddy.

Create a Private Key

openssl genrsa -des3 -out server.orig.key 2048
openssl rsa -in server.orig.key -out server.key
nparsons08 / api.js
Created Nov 27, 2015 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
View api.js
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');
nparsons08 / Bcrypt.php
Created Aug 7, 2012 — forked from marcoarment/Bcrypt.php
Simple PHP 5.3+ Bcrypt class and functions
View Bcrypt.php
By Marco Arment <>.
This code is released in the public domain.
Usage example:
// In a registration or password-change form:
View 1-restify-server-cheatsheet.js
// Restify Server CheatSheet.
// More about the API:
// Install restify with npm install restify
// 1.1. Creating a Server.
var restify = require('restify');
View haiku
haiku = ->
adjs = [
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark",
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter",
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue",
"billowing", "broken", "cold", "damp", "falling", "frosty", "green",
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old",
"red", "rough", "still", "small", "sparkling", "throbbing", "shy",
"wandering", "withered", "wild", "black", "young", "holy", "solitary",
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine",
You can’t perform that action at this time.