curl -i -H "Accept: application/json" http://192.168.0.165/persons/person/1
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
# 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] |
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
# | |
# MongoDB Dockerfile | |
# | |
# https://github.com/dockerfile/mongodb | |
# | |
# Pull base image. | |
FROM ubuntu:14.04 | |
# Install MongoDB. |
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 | |
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 |
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
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 ) |
NewerOlder