Skip to content

Instantly share code, notes, and snippets.

View silenceisgolden's full-sized avatar

AJ Klein silenceisgolden

  • Frisco, TX
View GitHub Profile
@silenceisgolden
silenceisgolden / docker-machine create vm (specific boot2docker)
Last active August 10, 2016 02:42
create a new vm in docker machine specific boot2docker
docker-machine create \
--driver virtualbox \
--virtualbox-cpu-count "2" \
--virtualbox-disk-size "64000" \
--virtualbox-memory "4096" \
--virtualbox-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.11.2/boot2docker.iso \
default
'use strict';
/**
* Using gulp 4 syntax
* https://demisx.github.io/gulp4/2015/01/15/install-gulp4.html
* npm install gulpjs/gulp.git#4.0 --save-dev
*
* Note: probably also make a .gitignore for the node_modules folder
*/

Keybase proof

I hereby claim:

  • I am silenceisgolden on github.
  • I am ajklein (https://keybase.io/ajklein) on keybase.
  • I have a public key whose fingerprint is 6111 E05C 0370 3CA2 B280 B507 B490 BD8E E864 3620

To claim this, I am signing this object:

@silenceisgolden
silenceisgolden / gulpfile.js
Created March 9, 2015 16:06
Example Gulpfile with Pagespeed Insights
var gulp = require('gulp');
var psi = require('psi');
var ngrok = require('ngrok');
var sequence = require('run-sequence');
// note server must already be running on port to be able to
// run this example perfectly
var PORT = 8000;
var site = '';
* HTML5 = Truly evergreen browsers
@silenceisgolden
silenceisgolden / google-client-lib.html
Last active August 29, 2015 14:08
Google Client Library Polymer Element alternative
<link rel="import" href="../../bower_components/polymer/polymer.html">
<polymer-element name="google-client-lib">
<template>
</template>
<script>
(function() {
// to reference 'this' during callback
var handler;

Running redis using upstart on Ubuntu

I've been trying to understand how to setup systems from the ground up on Ubuntu. I just installed redis onto the box and here's how I did it and some things to look out for.

To install:

@silenceisgolden
silenceisgolden / Using SailsJS with PassportJS (0.9)
Last active January 4, 2016 09:09
Awesome tutorial for SailsJS PassportJS integration
http://jethrokuan.github.io/2013/12/19/Using-Passport-With-Sails-JS.html