Skip to content

Instantly share code, notes, and snippets.

View josephferris's full-sized avatar
:electron:
Coding

Joey Ferris josephferris

:electron:
Coding
View GitHub Profile
@josephferris
josephferris / gist:ff6da9f7b2a562e84ba9
Created October 4, 2015 05:28
Balsamiq Mockups 2.2.22 for mac key
Name : Sam
Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw==
@josephferris
josephferris / INSTALLATION.md
Created October 4, 2015 17:17 — forked from DenisIzmaylov/INSTALLATION.md
OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

@josephferris
josephferris / brew-perms.sh
Created November 11, 2016 03:56 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@josephferris
josephferris / remove-docker-containers.md
Created November 22, 2016 23:11 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm
    

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images
@josephferris
josephferris / normal.js
Created May 25, 2017 17:47 — forked from creationix/normal.js
Raw node http server vs stock node http server. (measurements done on a cheap PC laptop using Ubuntu Linux)
require('http').createServer(function (req, res) {
res.writeHead(200, {
"Content-Length": 12
});
res.end("Hello World\n");
}).listen(3000);
// docker run -d -p 8080:8080 -v /git/myproj:/tmp/here wernight/phantomjs phantomjs /tmp/here/renderpage.js
var system = require('system');
var fs = require('fs');
var webserver = require('webserver');
var args = system.args;
var page = require('webpage').create();
phantom.onError = function(msg, trace) {