Create a websites
user.
sudo adduser --disabled-password --home /src/websites websites
Login and install dropbox.
sudo -s su - websites
# Copyright 2010 Drew Blas <[email protected]> | |
# From: http://drewblas.com/2010/07/15/an-analysis-of-gpled-code-in-thesis | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# This document describes updating the SmartOS boot_archive and /usr volumes. | |
# | |
# The boot_archive effectively contains /. If you want to make changes to SMF | |
# or so forth, you need to update the boot_archive. | |
# | |
# If you want to add things to /usr, such as drivers, you will need to update | |
# usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once | |
# you have updated usr.lgz you will need to copy it back to the mounted | |
# boot_arhive. | |
# |
== Rules == | |
On Infrastructure | |
----------------- | |
There is one system, not a collection of systems. | |
The desired state of the system should be a known quantity. | |
The "known quantity" must be machine parseable. | |
The actual state of the system must self-correct to the desired state. | |
The only authoritative source for the actual state of the system is the system. | |
The entire system must be deployable using source media and text files. |
# Author: Aram Grigorian <[email protected]> | |
# https://github.com/aramg | |
# https://github.com/opendns | |
# | |
# By default, nginx will close upstream connections after every request. | |
# The upstream-keepalive module tries to remedy this by keeping a certain minimum number of | |
# persistent connections open at all times to upstreams. These connections are re-used for | |
# all requests, regardless of downstream connection source. There are options available | |
# for load balacing clients to the same upstreams more consistently. | |
# This is all designed around the reverse proxy case, which is nginxs main purpose. |
# | |
# Varnish AWS S3 Gateway VCL | |
# | |
# Allows global read (GET, HEAD) and ACL protected writes (POST, PUT, DELETE). | |
# When writing, pass in Content-Type and Content-MD5, both are optional. | |
# | |
# Params: | |
# | |
# %BUCKET% - S3 bucket name, S3 host may be regional | |
# %ACCESS_ID% - IAM access ID for bucket |
#!/bin/bash | |
# | |
# This script is an attempt to rewrite the Ubuntu setup script for Redash along with supervisor, nginx, | |
# PostgreSQL and Redis. | |
# | |
# This script is not idempotent and if it stops in the middle, you can't just run it again. You should either | |
# understand what parts of it to exclude or just start over on a new VM (assuming you're using a VM). | |
# This sets to immediately exit on a non-zero return status and also | |
# any unset Environment Variables are flagged as an error |