Skip to content

Instantly share code, notes, and snippets.

View gorkem-cetin's full-sized avatar
🏠
Working from home

Görkem Çetin gorkem-cetin

🏠
Working from home
View GitHub Profile
@jamiekurtz
jamiekurtz / mongo-enc-provision.sh
Created October 17, 2014 21:55
Shell script for installing and configuring MongoDB on Ubuntu to use a secondary LUKS (dm-crypt) encrypted disk for its database files.
#!/bin/bash
# !!! This script assumes that the device needing to be formatted and encrypted is /dev/sdb
# !!! Also... be sure to copy and store the generated encryption key file from /root
# Note that the secondary drive will be mounted at /var/lib/mongodb,
# ... which is the default location for MongoDB data files on Ubuntu and Mongo at least v2.6
# add PPA for mongodb
@oroce
oroce / geoip-lite updater.js
Created February 17, 2013 18:58
Update geop-lite data from countly installation.
var async = require( "async" ),
request = require( "request" ),
fs = require( "fs" ),
path = require( "path" ),
zlib = require( "zlib" ),
AdmZip = require( "adm-zip" ),
spawn = require( "child_process" ).spawn;
// http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity-latest.zip
// http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip