Compilation of useful AWS CLI commands that I accumulate over time
Don't forget to export AWS_DEFAULT_PROFILE=MyMagicalAWSProfile
:)
version: '3.1' | |
services: | |
db: | |
image: mariadb | |
restart: always | |
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0 | |
ports: | |
- 3306:3306 |
Compilation of useful AWS CLI commands that I accumulate over time
Don't forget to export AWS_DEFAULT_PROFILE=MyMagicalAWSProfile
:)
version: '2' | |
services: | |
traefik: | |
image: traefik | |
container_name: "traefik_site" | |
command: --web --docker --docker.domain=docker.localhost --logLevel=DEBUG | |
ports: | |
- "80:80" | |
- "8080:8080" |
#!/bin/sh | |
### | |
## Virtual box options | |
### | |
export VIRTUALBOX_CPU_COUNT='1' | |
export VIRTUALBOX_DISK_SIZE='10000' | |
export VIRTUALBOX_MEMORY_SIZE='512' | |
swarm_workers=2 |
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
for dir in `ls -d */`; do BASE_PATH=`pwd`; DIR_PATH=$BASE_PATH/$dir; cd $DIR_PATH; git pull; cd ../ ; done |
#!/bin/sh | |
## | |
## Bash install script for mongo 3.2 for Ubuntu 15.04, because of | |
## the replacement of upstart with systemd | |
## | |
## - AUTHOR: Alexandru Budurovici <https://w0rldart.com> | |
## - VERSION: 1.0 | |
## |
/** | |
* Convert ISO 8601 values like PT15M33S | |
* to a total value of seconds. | |
* | |
* @param string $ISO8601 | |
*/ | |
function ISO8601ToSeconds($ISO8601) | |
{ | |
preg_match('/\d{1,2}[H]/', $ISO8601, $hours); | |
preg_match('/\d{1,2}[M]/', $ISO8601, $minutes); |
-- | |
-- Database: `logs` | |
-- | |
DROP DATABASE `logs`; | |
CREATE DATABASE `logs` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | |
USE `logs`; | |
-- -------------------------------------------------------- |