This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Created on 2011-04-23 | |
@author: Bohdan Mushkevych | |
@author: Aaron Westendorf | |
""" | |
import functools | |
import time | |
from pymongo.errors import AutoReconnect | |
from pymongo.connection import Connection as MongoConnection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Variables | |
USER="admin" | |
PASS="password" | |
# Assert Root User | |
SCRIPTUSER=`whoami` | |
if [ "$SCRIPTUSER" != "root" ] | |
then |