Skip to content

Instantly share code, notes, and snippets.

@kevinmeziere
kevinmeziere / gist:0680da5afee47d02ec92fb8850585b60
Created January 2, 2020 21:02
Fix makedev package on Ubuntu 14.04 for Joyent SmartOS LX zones
Unfortunately the Ubuntu makedev package fails to detect it's in a container environment on SmartOS LX zones, resulting in errors of the form:
# apt-get install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nano
0 upgraded, 1 newly installed, 0 to remove and 141 not upgraded.
1 not fully installed or removed.
@kevinmeziere
kevinmeziere / .bash_profile
Created December 5, 2015 06:23 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
var mongoose = require('mongoose')
, Futures = require('futures')
, Schema = mongoose.Schema
, db = mongoose.connect('mongodb://localhost/mongoose-db');
var UserSchema = new Schema({
"name": {type: String},
"location": {
"latitude": {type: Number, required: true, min: -90, max: 90},
"longitude": {type: Number, required: true, min: -180, max: 180}