Last Update on October 31, 2015
LIST-
- 185.26.183.14:80
- 200.124.8.198:3128
- 162.208.49.45:3127
- 80.191.127.243:8080
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
# BEGIN Expire headers | |
AddDefaultCharset UTF-8 | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 7200 seconds" | |
ExpiresByType image/x-icon "access plus 2592000 seconds" | |
ExpiresByType image/jpeg "access plus 2592000 seconds" | |
ExpiresByType image/png "access plus 2592000 seconds" | |
ExpiresByType image/gif "access plus 2592000 seconds" | |
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title | Site Name</title> | |
<meta name="description" content="page description"> | |
<link rel="stylesheet" href="style.css"> | |
<!--[if lt IE 9]> | |
<script src="html5shiv.js"></script> | |
<![endif]--> |
#!/bin/bash | |
# settings | |
# Login information of freenom.com | |
freenom_email="main@address" | |
freenom_passwd="pswd" | |
# Open DNS management page in your browser. | |
# URL vs settings: | |
# https://my.freenom.com/clientarea.php?managedns={freenom_domain_name}&domainid={freenom_domain_id} | |
freenom_domain_name="domain.name" |
rsync -aHAXxv --numeric-ids --delete --progress -e "ssh -T -c arcfour -o Compression=no -x" user@<source>:<source_dir> <dest_dir> |
# UPDATE AND UPGRADE | |
alias update='sudo apt-get update' | |
alias upgrade='sudo apt-get upgrade' | |
# PACKAGE MANAGEMENT | |
alias install='sudo apt-get install' | |
alias uninstall='sudo apt-get remove' | |
alias aptsearch='sudo apt-cache search' | |
alias addkey='sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com' | |
alias finstall='sudo apt-get -f install' |
I'm gradually getting serious about switching to Docker to deploy lemp webapps. I've chased the topic of best practices around the web for a while and landed on information like http://phusion.github.io/baseimage-docker/ docker/compose#928 and https://groups.google.com/forum/#!topic/docker-user/gk-oSwgxyo4
I basically maintain "two" roughly mirrored environments: one webdevs are working against in vagrant and one in the cloud (qa, staging, prod). The webdev's typically work on 2-5 sites at a time depending on the SLA and new client volume. I began using fig and am about to migrate to docker-compose. If I store everything in a client specific fig file, it tends to rapidly consume the memory of the vm. This makes it complicated for the webdev to switch between client webapps. I've seen this more readily when dealing with the database containers.
In my mind, the answer to the memory problem is to have one db container that can run databases for multiple clients. Are there other