This file contains hidden or 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 | |
# The current Google container-optimized image starts Docker before this startup | |
# script gets a chance to run, so our mounts may not be set, etc. | |
# Kill the docker agent and containers that have started already. | |
ps -u root -o pid,cmd | grep docker-agent | perl -pe 's/\s*(\d+).*/$1/' | xargs -I {} kill -9 {}; | |
docker ps -q | xargs -I {} docker rm -f {}; | |
# Mount the MongoDB disk, which should have been attached by the instance create command | |
mkdir /mnt/pd1 | |
mount -t ext4 /dev/disk/by-id/google-mongodb-data-1 /mnt/pd1 | |
# Ensure MongoDB has somewhere to write its data, even if the disk is empty |
This file contains hidden or 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
# wpdownloadrc.sample | |
# | |
# This file specifies which files should be downloaded from wikimedia | |
# | |
# Copy it to ~/.wpdownloadrc and adjust it to fit your needs. | |
[Configuration] | |
# base_url (string) | |
# ----------------- |
This file contains hidden or 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
""" | |
A simple proxy server. Usage: | |
http://hostname:port/p/(URL to be proxied, minus protocol) | |
For example: | |
http://localhost:8080/p/www.google.com | |
""" |