Dockerfile:
# sshd
#
# VERSION 0.0.2
FROM ubuntu:14.04
MAINTAINER Sven Dowideit <SvenDowideit@docker.com>
RUN apt-get update && apt-get install -y openssh-server
| For Broadcom BCM4311, | |
| sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source | |
| sudo apt-get install b43-fwcutter firmware-b43-installer |
| Characters Meaning | |
| $ End of a line | |
| ^ Start of a line | |
| [] Character class | |
| ? The preceding item is optional and matched at most once | |
| * Zero or more of the preceding item | |
| + One or more of the preceding item | |
| {} Match some number of the preceding item | |
| | Alternation (true if either of the regexes it separates match) | |
| . Any one character |
| sudo apt-get install apache2-utils | |
| sudo htpasswd -c /etc/nginx/.htpasswd exampleuser | |
| server { | |
| location / { | |
| auth_basic "Restricted"; #For Basic Auth | |
| auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth | |
| } | |
| } |
| sudo chown -R $USER:$USER "$(git rev-parse --show-toplevel)/.git" |
| http://www.rsjoomla.com/support/view-article/1012-troubleshooting-extension-installation-errors.html |
| #!/bin/bash | |
| inotifywait -m /path/to/folder -e modify,create -e moved_to | | |
| while read path action file; do | |
| echo "The file '$file' appeared in directory '$path' via '$action'" | mailx -s 'Monitor File' your_email.com | |
| done |
| cd .git/ | |
| sudo chmod -R g+ws * | |
| sudo chgrp -R www-data * | |
| git config core.sharedRepository true |
| sync data | |
| gsutil rsync -d -r /path/to/folder gs://bucket | |
| set public-read | |
| gsutil acl -R set public-read gs://bucket | |
| setmeta | |
| gsutil setmeta -R -h "Cache-Control:public, max-age=604800" gs://bucket |
Dockerfile:
# sshd
#
# VERSION 0.0.2
FROM ubuntu:14.04
MAINTAINER Sven Dowideit <SvenDowideit@docker.com>
RUN apt-get update && apt-get install -y openssh-server
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |