I hereby claim:
- I am r1cebank on github.
- I am r1cebank (https://keybase.io/r1cebank) on keybase.
- I have a public key whose fingerprint is 97CC 0F2C EB94 CCA1 0D94 E039 A212 AE09 5E1E 47E5
To claim this, I am signing this object:
return new Promise((resolve, reject) => { | |
// Wait for connection and resolve this promise | |
// Create connection with mongoose | |
sharedInstance.mongodb = Mongodb.MongoClient.connect(sharedInstance.config.mongodb, function(err, db) { | |
if(err) reject(err); | |
else { | |
sharedInstance.L.info(TAG, 'connected to mongodb'); | |
sharedInstance.db = db; |
// (c) copyright unscriptable.com / John Hann | |
// License MIT | |
// For more robust promises, see https://github.com/briancavalier/when.js. | |
function Promise () { | |
this._thens = []; | |
} | |
Promise.prototype = { |
#!/bin/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
#!/usr/bin/env bash | |
brew uninstall node; | |
brew prune; | |
rm -f /usr/local/bin/npm; | |
rm -f /usr/local/lib/dtrace/node.d; | |
rm -rf ~/.npm; |
I hereby claim:
To claim this, I am signing this object:
const fs = require('fs'); | |
fs.writeFileSync('./env.json', JSON.stringify(process.env, null, 4)); |
#!/usr/bin/env python3 | |
# Python 3 code that will read, decompress, and then recompress the UE4 game | |
# save file that Astroneer uses. | |
# | |
# Though I wrote this for tinkering with Astroneer games saves, it's probably | |
# generic to the Unreal Engine 4 compressed saved game format. | |
import zlib | |
import sys |
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
siege -c50 -t60S -H 'Content-Type: application/json' 'http://domain.com/path/to/json.php POST {"ids": ["1","2","3"]}' |
import isEmpty from 'lodash/isEmpty'; | |
import validators from '../validators'; | |
import noop from '../utils/noop.js'; | |
function addProperty (context, name, getter) { | |
if (typeof getter !== 'function') { getter = function() { }; } | |
Object.defineProperty(context, name, { | |
get() { | |
const result = getter.call(this); |