Skip to content

Instantly share code, notes, and snippets.

@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active December 29, 2023 00:40
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
anonymous
anonymous / my-bootstrap.bat
Created April 23, 2012 15:01
twitter bootstrap compilation under windows
@echo off
rem
rem 03.02.2012, setup of directories may vary
rem
mkdir bootstrap\img
mkdir bootstrap\css
mkdir bootstrap\js
copy img\* bootstrap\img
node.exe f:\nodejs\node_modules\less\bin\lessc.js less\bootstrap.less > bootstrap\css\bootstrap.css
node.exe f:\nodejs\node_modules\less\bin\lessc.js -x less\bootstrap.less > bootstrap\css\bootstrap.min.css
@fwielstra
fwielstra / api.js
Created June 14, 2011 14:46
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* 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');