- .bashrc
- .zsh
- .tmux.conf
- aliases.sh
- alacritty.yml
- smb.conf
- iptables script
This file contains hidden or 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
# add those after ^ | |
# Modules executing scripts on login and using your password passed to stdin as input for commands | |
# Feel free to locate scripts wherever you like, e.g. `/etc/pams.d/pam_crypthome.sh` => `/etc/scripts/unlock_home.sh` | |
# (...) | |
auth include system-auth | |
# add those after ^ | |
auth optional pam_exec.so expose_authtok /etc/pams.d/pam_crypthome.sh | |
auth optional pam_exec.so expose_authtok /etc/pams.d/pam_cryptswap.sh | |
# (...) |
This file contains hidden or 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
#!/usr/bin/env bash | |
cd /home/user/Desktop | |
RO_FILE='auth.ro' | |
RW_FILE='auth.rw' | |
SCRIPTNAME='script' | |
HTPASSWD='/usr/bin/docker run httpd htpasswd -BbnC 12' |
This file contains hidden or 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
#!/usr/bin/env sh | |
docker run --rm --name phpmyadmin -d \ | |
-e PMA_ARBITRARY="1" \ | |
-e UPLOAD_LIMIT="512M" \ | |
-v /etc/timezone:/etc/timezone:ro \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
--network=<my_network> \ | |
-p 8080:80 \ | |
phpmyadmin:5 |
This file contains hidden or 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" | |
networks: | |
db_net: | |
ipam: | |
config: | |
- subnet: 10.10.0.0/16 | |
gateway: 10.10.0.1 | |
volumes: |
This file contains hidden or 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
# This one differs from gfs-rotate.sh, because it splits backups into directories and it's just a basic rotation based on date | |
BAK_DIR_RECENT = /backups/recent | |
BAK_DIR_DAY = /backups/daily | |
BAK_DIR_WEEK = /backups/weekly | |
BAK_DIR_MONTH = /backups/monthly | |
DATE_WEEK = $(shell date +%W) | |
DATE_DAY = $(shell date +%d) | |
DATE_MONTH = $(shell date +%m) | |
DATE_DAY_OF_WEEK = $(shell date +%u) |
This file contains hidden or 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 | |
# Get certificate | |
certbot certonly --standalone --preferred-challenges http |
This file contains hidden or 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" | |
services: | |
dst-overworld: | |
image: steamcmd/steamcmd:ubuntu-20 | |
hostname: dst-overworld-container | |
tty: true | |
restart: on-failure | |
entrypoint: [ "/bin/bash", "-c" ] | |
command: | |
This file contains hidden or 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
{ | |
"storage-driver": "overlay2", | |
"log-driver": "local", | |
"log-opts": { | |
"max-size": "250m", | |
"max-file": "5" | |
} | |
} |
This file contains hidden or 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 | |
# Executed on remote server | |
# List all databases | |
mysql -u root -p -e "SHOW DATABASES" > database_list.txt | |
# Execute on local machine | |
for x in "$(cat database_list.txt)"; do | |
sshpass -p[ssh_password] ssh [user]@[target_server] "mysqldump -u root --single-transaction -p[mysql_root_password] ${x}" > ${x}.sql | |
done |
OlderNewer