Skip to content

Instantly share code, notes, and snippets.

View i80and's full-sized avatar
🦨
SKUNKS

Heli Aldridge i80and

🦨
SKUNKS
View GitHub Profile
systemLog:
destination: file
path: "/var/log/mongodb/mongodb.log"
logAppend: true
processManagement:
fork: true
storage:
dbPath: /var/lib/mongodb
replication:
replSetName: "rs0"

Keybase proof

I hereby claim:

  • I am i80and on github.
  • I am i80and (https://keybase.io/i80and) on keybase.
  • I have a public key whose fingerprint is C580 AF99 A368 3B0D D1BD E831 2377 F819 DA1D E078

To claim this, I am signing this object:

@i80and
i80and / gist:3426705
Created August 22, 2012 15:21
Rust array corruption?
struct Element {
vals: &[float];
}
impl Element {
fn test() {
// Prints a random value close to, but not exactly equal to, 0.
// e.g. 9.52676e-317, 1.43533e-316
// Optimization flags make it exactly 0.
log(info, self.vals[0]);