airikr / domain.conf
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 5 months ago
My default config file for a domain for Apache.
| 1 | Protocols h2 h2c http/1.1 |
| 2 | |
| 3 | <VirtualHost *:80> |
| 4 | <Directory /var/www/html/website/> |
| 5 | Options Indexes FollowSymLinks MultiViews |
| 6 | AllowOverride All |
| 7 | Order allow,deny |
| 8 | allow from all |
| 9 | </Directory> |
airikr / domain.conf
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 5 months ago
My default config file for a domain for Apache (Docker).
| 1 | Protocols h2 h2c http/1.1 |
| 2 | |
| 3 | <VirtualHost *:80> |
| 4 | ServerName domain.com |
| 5 | |
| 6 | RewriteEngine On |
| 7 | RewriteCond %{SERVER_NAME} =domain.com |
| 8 | RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] |
| 9 | </VirtualHost> |
airikr / Update Docker images/containers
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 5 months ago
TODO: check if the image is up-to-date or not.
| 1 | #!/bin/bash |
| 2 | declare -a arr=("snikket") |
| 3 | |
| 4 | for i in "${arr[@]}" |
| 5 | do |
| 6 | if [ "$i" = "snikket" ] |
| 7 | then |
| 8 | echo |
| 9 | echo "snikket" |
| 10 | echo |
airikr / download-youtube-videos.sh
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 4 months ago
| 1 | #!/bin/bash |
| 2 | path="/path/to/youtube-folder" |
| 3 | |
| 4 | sudo chown -R user:user "${path}" |
| 5 | |
| 6 | yt-dlp --config-location "ytdlp-config.txt" -a "${path}/channels.txt" |
| 7 | |
| 8 | echo |
| 9 | echo "Deleting JSON files" |
| 10 | echo |
airikr / Backup and restore PostgreSQL via Docker
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 1 year ago
| 1 | # BACKUP |
| 2 | docker exec -i <container-name> /bin/bash -c "PGPASSWORD=<passwd> pg_dump --username <user> <db-name>" > ~/db.sql |
| 3 | |
| 4 | # RESTORE |
| 5 | cat db.sql | docker exec -i <container-name> psql -U <user> <db-name> |
airikr / Backup the whole system
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 9 months ago
Send the entire system to one of my SSD's that I use only for this goal.
| 1 | #!/bin/bash |
| 2 | dir_backup="backup-ssd-dir" |
| 3 | sudo rsync -aAXv --progress --delete / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} "$dir_backup" |
airikr / Install softwares and restore backup files
0 вподобань
0 форк(-ів)
1 файл(-ів)
Остання активність 9 months ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # VARIABLES |
| 4 | dir_home='/home/{username}' |
| 5 | dir_backup='/to/dir' |
| 6 | GREEN='\033[0;32m' |
| 7 | YELLOW='\033[1;33m' |
| 8 | BLUE='\033[0;34m' |
| 9 | NC='\033[0m' |
| 10 | SLEEP='.5' |
Новіше
Пізніше