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
version: '2' | |
services: | |
wekandb: | |
#------------------------------------------------------------------------------------- | |
# ==== MONGODB FROM DOCKER HUB ==== | |
image: mongo:6 | |
#------------------------------------------------------------------------------------- | |
container_name: wekan-db | |
restart: always | |
# command: mongod --oplogSize 128 |
#!/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="[email protected]" | |
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 |