Skip to content

Instantly share code, notes, and snippets.

View pranavbhargava's full-sized avatar

Pranav Bhargava pranavbhargava

View GitHub Profile
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

var sys = require('sys'),
fs = require('fs'),
http = require('http');
//
// Setup a very simple HTTP server to serve our routing map!
//
var server = http.createServer(function (request, res) {
// this is inside path which handles your HTTP POST method request
if(request.method === "POST") {
@pranavbhargava
pranavbhargava / getset.js
Created July 3, 2012 20:09 — forked from jahfer/getset.js
JavaScript: Get/Set Properties
// Super amazing, cross browser property function, based on http://thewikies.com/
// Found via http://johndyer.name/native-browser-get-set-properties-in-javascript/
function addProperty(obj, name, onGet, onSet) {
// wrapper functions
var
oldValue = obj[name],
getFn = function () {
return onGet.apply(obj, [oldValue]);