Skip to content

Instantly share code, notes, and snippets.

View betteryourweb's full-sized avatar

Derek Williams betteryourweb

View GitHub Profile
@betteryourweb
betteryourweb / mongo-create-user.js
Created October 10, 2018 17:46 — forked from foull/mongo-create-user.js
NodeJS - MongoDB - creating new user with admin privileges
var MongoClient = require('mongodb').MongoClient
//
// config
//
var mongoPort = '27017'
var mongoHost = 'localhost'
var dbName = 'dbName'
@foull
foull / mongo-create-user.js
Last active May 6, 2021 07:59
NodeJS - MongoDB - creating new user with admin privileges
var MongoClient = require('mongodb').MongoClient
//
// config
//
var mongoPort = '27017'
var mongoHost = 'localhost'
var dbName = 'dbName'
@JeffreyWay
JeffreyWay / countries.php
Created July 23, 2015 17:01
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",