mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-12-04 23:41:00 +01:00
Compare commits
4 Commits
be0c5488a6
...
a635273e20
Author | SHA1 | Date | |
---|---|---|---|
|
a635273e20 | ||
|
718bf213b1 | ||
|
b9438d411d | ||
|
326fae5d2d |
24
scripts/backup-proxmox-confs.sh
Executable file
24
scripts/backup-proxmox-confs.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
|
# Backup folder
|
||||||
|
BACKUP_MAIN="$HOME/backups"
|
||||||
|
mkdir -p $BACKUP_MAIN
|
||||||
|
|
||||||
|
# Copy iptables rules
|
||||||
|
if [ -d "/etc/iptables/" ]; then
|
||||||
|
mkdir -p $BACKUP_MAIN/iptables
|
||||||
|
rm $BACKUP_MAIN/iptables/rules.*
|
||||||
|
sudo cp /etc/iptables/rules.v4 $BACKUP_MAIN/iptables/
|
||||||
|
sudo cp /etc/iptables/rules.v6 $BACKUP_MAIN/iptables/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy LXC confs
|
||||||
|
if [ -e "/etc/pve/lxc/" ]; then
|
||||||
|
mkdir -p $BACKUP_MAIN/lxc
|
||||||
|
rm $BACKUP_MAIN/lxc/*.conf
|
||||||
|
sudo cp -R /etc/pve/lxc/* $BACKUP_MAIN/lxc/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Change owner
|
||||||
|
sudo chown -R $USER:$USER $BACKUP_MAIN
|
8
scripts/clean-logs-linux.sh
Executable file
8
scripts/clean-logs-linux.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
|
# Delete logs older than 7 days
|
||||||
|
sudo journalctl --vacuum-time=7days
|
||||||
|
|
||||||
|
# Delete other archived log files
|
||||||
|
sudo rm /var/log/*.gz
|
@ -4,7 +4,11 @@ set -euo pipefail
|
|||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
brew doctor
|
brew doctor
|
||||||
|
|
||||||
|
#
|
||||||
|
echo "Installed Homebrew."
|
||||||
|
read -p "Press any key to continue installing packages"
|
||||||
|
|
||||||
# Install some default tools
|
# Install some default tools
|
||||||
brew update
|
brew update
|
||||||
brew install tmux mosh eza lsd ffmpeg aria2 bat dog f3 gping btop imagemagick iperf3 ncdu p7zip pigz rclone rsync screen thefuck tldr unzip yt-dlp zstd
|
brew install aria2 bat btop dog eza f3 ffmpeg gping imagemagick iperf3 lsd mosh mozjpeg nano ncdu nmap p7zip pigz rclone rsync screen syncthing telnet tesseract thefuck tldr tmux unzip yt-dlp zstd
|
||||||
brew install --cask balenaetcher cryptomator iina handbrake imageoptim libreoffice losslesscut mgba mkvtoolnix nextcloud obs rar retroarch-metal secretive ultimaker-cura vlc vscodium zed signal transmission
|
brew install --cask balenaetcher calibre cryptomator iina handbrake imageoptim libreoffice losslesscut mgba mkvtoolnix nextcloud rar retroarch-metal secretive signal transmission ultimaker-cura vlc vscodium zed
|
||||||
|
Loading…
Reference in New Issue
Block a user