This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script replaces the config directive to run Qthttpd on port 80 with port 81 | |
# It then starts the Lancache container | |
# The entire block is wrapped in an if statement to check if it's already running... | |
if [[ $(docker container ls | grep lancache01$ | wc -l) == 0 ]]; then | |
/bin/sed -i -re 's#(\s+)("/usr/local/sbin/Qthttpd -p) (80) (.*)#\1\2 81 \4#' /etc/init.d/Qthttpd.sh | |
/etc/init.d/Qthttpd.sh restart | |
docker container start selby-lancache01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"alwaysShowTabs": true, | |
"copyOnSelect": false, | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"initialCols": 180, | |
"initialRows": 45, | |
"keybindings": [{ | |
"command": "closePane", | |
"keys": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AWS_SECRET_ID="my-super-secret-secret" | |
AWS_REGION="ap-southeast-2" | |
ENVFILE="/srv/app/.env" | |
# Ensure your EC2 instance has the most recent version of the AWS CLI | |
apt-get install -y python3-pip jq | |
pip3 install awscli --upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"secretsmanager:GetResourcePolicy", | |
"secretsmanager:GetSecretValue", | |
"secretsmanager:DescribeSecret", | |
"secretsmanager:ListSecretVersionIds" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pi-hole: A black hole for Internet advertisements | |
# (c) 2017 Pi-hole, LLC (https://pi-hole.net) | |
# Network-wide ad blocking via your own hardware. | |
# | |
# Dnsmasq config for Pi-hole's FTLDNS | |
# | |
# This file is copyright under the latest version of the EUPL. | |
# Please see LICENSE file for your rights under this license. | |
############################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
traefik: | |
image: "traefik:latest" | |
container_name: "selby-traefik01" | |
restart: always | |
environment: | |
- TZ=Australia/Melbourne | |
command: |