This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
#!/bin/bash | |
# https://gist.github.com/Nako/21d1a857fefae950d9afe8d9e4641af9 | |
# very simple script to print block device - model - state - temperature | |
grep -l "drivetemp" /sys/class/hwmon/hwmon*/name | while read f;\ | |
do echo `ls ${f%/*}/device/block` - `smartctl -a /dev/\`ls ${f%/*}/device/block\`| grep -i "Family"` - `smartctl -a /dev/\`ls ${f%/*}/device/block\`| grep -i "Serial"` - `cat ${f%/*}/device/model` - `cat ${f%/*}/device/state` - $((`cat ${f%/*}/temp1_input`/1000)); | |
done |
--- | |
- name: Disable cloudinit networking configuration, install ifupdown, and create/generate /etc/network/interfaces file | |
hosts: all | |
gather_facts: true | |
tasks: | |
- name: disable cloudinit networking configuration /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg | |
ansible.builtin.copy: | |
content: | | |
network: {config: disabled} |
; Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny | |
; http://www.autohotkey.com | |
; This script makes it much easier to move or resize a window: 1) Hold down | |
; the ALT key and LEFT-click anywhere inside a window to drag it to a new | |
; location; 2) Hold down ALT and RIGHT-click-drag anywhere inside a window | |
; to easily resize it; 3) Press ALT twice, but before releasing it the second | |
; time, left-click to minimize the window under the mouse cursor, right-click | |
; to maximize it, or middle-click to close it. | |
; This script was inspired by and built on many like it |
#!/usr/bin/env bash | |
### Bash Environment Setup | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html | |
# set -o xtrace | |
set -o errexit | |
set -o errtrace | |
set -o nounset | |
set -o pipefail |
#!/bin/sh | |
EMAILTO="user@example.com" | |
THRESHOLD=90 # if above $THRESHOLD is used -> send email notification to $EMAILTO | |
DFALL=$(df -h) | |
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; | |
do | |
echo $output | |
used=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) | |
partition=$(echo $output | awk '{ print $2 }' ) |
I1112 09:22:13.318824 18806 initconfiguration.go:116] detected and using CRI socket: /var/run/dockershim.sock | |
I1112 09:22:13.318956 18806 interface.go:431] Looking for default routes with IPv4 addresses | |
I1112 09:22:13.318959 18806 interface.go:436] Default route transits interface "eth0" | |
I1112 09:22:13.319010 18806 interface.go:208] Interface eth0 is up | |
I1112 09:22:13.319027 18806 interface.go:256] Interface "eth0" has 1 addresses :[10.0.2.15/24]. | |
I1112 09:22:13.319035 18806 interface.go:223] Checking addr 10.0.2.15/24. | |
I1112 09:22:13.319038 18806 interface.go:230] IP found 10.0.2.15 | |
I1112 09:22:13.319041 18806 interface.go:262] Found valid IPv4 address 10.0.2.15 for interface "eth0". | |
I1112 09:22:13.319044 18806 interface.go:442] Found active IP 10.0.2.15 |
DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.
In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.
Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud