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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name : Sam | |
Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
-
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
- Delete all untagged images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Observable } from './Observable' | |
import { Promise } from 'es6-promise' | |
export class Command { | |
constructor(options){ | |
this.invoker = undefined | |
this.options = typeof options !== 'undefined' ? options : {} | |
this.async = false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('http').createServer(function (req, res) { | |
res.writeHead(200, { | |
"Content-Length": 12 | |
}); | |
res.end("Hello World\n"); | |
}).listen(3000); |
I hereby claim:
- I am josephferris on github.
- I am joeyferris (https://keybase.io/joeyferris) on keybase.
- I have a public key whose fingerprint is 2CE6 A778 2847 B7E5 19DD 1C0B D34D D4F4 0015 6666
To claim this, I am signing this object:
I hereby claim:
- I am josephferris on github.
- I am joeyferris (https://keybase.io/joeyferris) on keybase.
- I have a public key ASBffdzKrShhz5M3MNkHzUgxOU-hea-YEQCf9E7w0E25DAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |