Skip to content

Instantly share code, notes, and snippets.

View comerford's full-sized avatar

Adam Comerford comerford

View GitHub Profile
@comerford
comerford / keybase.md
Created April 25, 2014 13:53
keybase.md

Keybase proof

I hereby claim:

  • I am comerford on github.
  • I am comerford (https://keybase.io/comerford) on keybase.
  • I have a public key whose fingerprint is A706 6556 2C81 E177 8932 2D88 9454 794E C192 0598

To claim this, I am signing this object:

@comerford
comerford / openELEC.sh
Last active August 29, 2015 14:08 — forked from timbru31/openELEC.sh
#!/bin/bash
#
# author: Tim "xGhOsTkiLLeRx" Brust
# license: CC BY-NC-SA 4.0
# version: 0.2
# date: 07/10/2014
# description: replace (root) password of squashfs from openELEC
# usage: ./openELEC [password] [device] [hash] [user]
# dependencies: mkpassword (whois), squashfs-tools
#
@comerford
comerford / mongo_wt_snappy.conf
Last active August 29, 2015 14:09
YAML Config for MongoDB 2.7.9 - WiredTiger, snappy compression
storage:
dbPath: "/ssd/db/wt_snappy"
engine: "wiredTiger"
systemLog:
destination: file
path: "/data/wt_snappy/mongodb.log"
processManagement:
fork: true
@comerford
comerford / mongo_wt_none.conf
Last active August 29, 2015 14:09
YAML Config for MongoDB 2.7.9 - WiredTiger, compression disabled
storage:
dbPath: "/ssd/db/wt_none"
engine: "wiredTiger"
wiredTiger:
collectionConfig: "block_compressor="
systemLog:
destination: file
path: "/data/wt_none/mongodb.log"
processManagement:
fork: true
@comerford
comerford / mongo_mmap.conf
Last active August 29, 2015 14:09
YAML Config for MongoDB 2.7.9 - mmap v1
storage:
dbPath: "/ssd/db/mmap"
engine: "mmapv1"
systemLog:
destination: file
path: "/data/mmap/mongodb.log"
processManagement:
fork: true
@comerford
comerford / mongo-rocks-startup.log
Last active August 29, 2015 14:18
Mongo Rocks Startup
./mongod --storageEngine=rocksdb
2015-04-03T19:09:38.983+0100 I STORAGE Compression: snappy
2015-04-03T19:09:38.983+0100 I STORAGE MaxWriteMBPerSec: 1024
2015-04-03T19:09:39.042+0100 I CONTROL [initandlisten] MongoDB starting : pid=16433 port=27017 dbpath=/data/db 64-bit host=fed-vm
2015-04-03T19:09:39.042+0100 I CONTROL [initandlisten]
2015-04-03T19:09:39.042+0100 I CONTROL [initandlisten] ** NOTE: This is a development version (3.1.1-pre-) of MongoDB.
2015-04-03T19:09:39.042+0100 I CONTROL [initandlisten] ** Not recommended for production.
2015-04-03T19:09:39.042+0100 I CONTROL [initandlisten]
2015-04-03T19:09:39.043+0100 I CONTROL [initandlisten]
2015-04-03T19:09:39.043+0100 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
@comerford
comerford / gist:2429630
Created April 20, 2012 15:29
segfault - SSL Primary with non-SSL Secondary
Fri Apr 20 16:22:27 [rsMgr] replSet can't see a majority, will not try to elect self
Fri Apr 20 16:22:28 [initandlisten] connection accepted from 192.168.2.71:59427 #3990253 (2 connections now open)
Fri Apr 20 16:22:28 [conn3990253] end connection 192.168.2.71:59427 (1 connection now open)
Fri Apr 20 16:22:28 [initandlisten] connection accepted from 192.168.2.72:55076 #3990254 (2 connections now open)
Fri Apr 20 16:22:28 [conn3990254] end connection 192.168.2.72:55076 (1 connection now open)
Fri Apr 20 16:22:30 [initandlisten] connection accepted from 192.168.2.71:59428 #3990255 (2 connections now open)
Fri Apr 20 16:22:30 [conn3990255] end connection 192.168.2.71:59428 (1 connection now open)
Fri Apr 20 16:22:30 [initandlisten] connection accepted from 192.168.2.72:55077 #3990256 (2 connections now open)
Fri Apr 20 16:22:30 [conn3990256] end connection 192.168.2.72:55077 (1 connection now open)
Fri Apr 20 16:22:32 [initandlisten] connection accepted from 192.168.2.71:59429 #3990257 (2 connections now open)
@comerford
comerford / gist:5525099
Created May 6, 2013 13:22
How to make oplogMainRowCount appear on MongoDB
// delete oplog, crete new and empty
testReplSet:PRIMARY> use local
switched to db local
testReplSet:PRIMARY> db.oplog.rs.drop()
true
testReplSet:PRIMARY> db.createCollection("oplog.rs", {capped:1, size: 2*1024*1024, autoIndexId:false})
{ "ok" : 1 }
// run the command to get the fields
testReplSet:PRIMARY> db.getReplicationInfo()
{
@comerford
comerford / mongo_wt_zlib.conf
Last active January 9, 2017 12:08
YAML Config for MongoDB 2.7.9 - WiredTiger, zlib compression
storage:
dbPath: "/ssd/db/wt_zlib"
engine: "wiredTiger"
wiredTiger:
collectionConfig: "block_compressor=zlib"
systemLog:
destination: file
path: "/data/wt_zlib/mongodb.log"
processManagement:
fork: true
@comerford
comerford / mm-standalone.conf
Last active March 23, 2021 08:57
Config Files for MongoDB 3.0 Compression Testing
storage:
dbPath: "/data/db/300-mm"
directoryPerDB: true
journal:
enabled: true
systemLog:
destination: file
path: "/data/db/300-mm/mongodb.log"
logAppend: true
timeStampFormat: iso8601-utc