I hereby claim:
- I am bobbydams on github.
- I am bobbydrake (https://keybase.io/bobbydrake) on keybase.
- I have a public key ASDkHPv5sSgL9cc1W0W1Ew1Nwh8Wls-KCPzbjKmNX2gGgwo
To claim this, I am signing this object:
{"lastUpload":"2020-04-02T12:06:20.964Z","extensionVersion":"v3.4.3"} |
I hereby claim:
To claim this, I am signing this object:
def get(self, collection='',filter=None, callback=None): | |
cursor = self.db[collection].find(filter) | |
data = yield cursor.to_list(length=1000) | |
for doc in data: | |
if '_id' in doc and isinstance(doc['_id'], ObjectId): | |
doc['_id'] = str(doc['_id']) | |
callback(data) |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Perfect UPSTART SCRIPT | |
# Provides: mongodb | |
# Required-Sart: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: mongodb |
MongoDB upstart scripts for Ubuntu. | |
Run following commands after installing upstart scripts: | |
ln -s /lib/init/upstart-job /etc/init.d/mongoconf | |
ln -s /lib/init/upstart-job /etc/init.d/mongodb | |
ln -s /lib/init/upstart-job /etc/init.d/mongos | |
To start services use: |