brew install mongodb
mkdir -p /data/dbEnsure that user account running mongod has correct permissions for the directory:
| import os | |
| from selenium import webdriver | |
| import subprocess | |
| ff_prof = webdriver.FirefoxProfile() | |
| #set some privacy settings | |
| ff_prof.set_preference( "places.history.enabled", False ) | |
| ff_prof.set_preference( "privacy.clearOnShutdown.offlineApps", True ) | |
| ff_prof.set_preference( "privacy.clearOnShutdown.passwords", True ) | |
| ff_prof.set_preference( "privacy.clearOnShutdown.siteSettings", True ) |
| #!/bin/sh | |
| defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
| enabled=$? | |
| if [ "$1" = "off" ]; then | |
| if [ $enabled -eq 1 ]; then | |
| defaults write com.apple.finder CreateDesktop false | |
| osascript -e 'tell application "Finder" to quit' | |
| open -a Finder |
| # | |
| # MongoDB Dockerfile | |
| # | |
| # https://github.com/dockerfile/mongodb | |
| # | |
| # Pull base image. | |
| FROM ubuntu:14.04 | |
| # Install MongoDB. |
| # https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes | |
| # https://docs.docker.com/compose/compose-file/ | |
| # | |
| # [ How to delete Dangling Images (which are layers that have no relationship to any tagged images) ] | |
| # docker rmi $(docker images -f dangling=true -q) | |
| # | |
| # [How to login the container] | |
| # docker run -t -i kali_kali /bin/bash | |
| # | |
| # [About Metasploit] |