Skip to content

Instantly share code, notes, and snippets.

View FuscaSoftware's full-sized avatar

Sebastian M. Braun FuscaSoftware

View GitHub Profile
@FuscaSoftware
FuscaSoftware / mysql_import_splitdump.sh
Created June 14, 2024 13:38
Import splitted/*.sql files into your database
#!/bin/bash
# Check if database name is provided
if [ $# -lt 1 ]; then
echo "USAGE: $0 DATABASE_NAME"
exit 1
fi
DATABASE=$1
@FuscaSoftware
FuscaSoftware / mysql_splitdump_v3.sh
Last active June 14, 2024 13:35 — forked from m-faraz/mysql_splitdump_v2.sh
Split MySQL dump SQL file into one file per table
#!/bin/bash
####
# SMB: I got this script from here and customized it:
# https://gist.github.com/m-faraz/4e32cbae283e3a9454118cd1d281f8cf
#
# Call like (should be run in its own folder!):
# ./mysql_splitdump_v2.sh shisha-koenig-2024-06-07-02-15-01.sql
#
####
# Split MySQL dump SQL file into one file per table
@FuscaSoftware
FuscaSoftware / PVE-host-backup.md
Created February 2, 2023 23:36 — forked from mrpeardotnet/PVE-host-backup.md
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup
@FuscaSoftware
FuscaSoftware / jitsimeet-quickinst.sh
Created December 16, 2021 23:12 — forked from mjtiempo/jitsimeet-quickinst.sh
Jitsi Meet Quick Install
sudo su &&
cd &&
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add - &&
echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list &&
apt-get update -y &&
apt-get upgrade -y &&
apt-get install prosody -y &&
chown root:prosody /etc/prosody/certs/localhost.key &&
chmod 644 /etc/prosody/certs/localhost.key &&
cp /etc/prosody/certs/localhost.key /etc/ssl &&
@FuscaSoftware
FuscaSoftware / macOS-mojave-iso.sh
Created August 8, 2019 22:54 — forked from jamieparfet/macOS-mojave-iso.sh
Create an ISO from the mojave installer app
#!/bin/bash
# This assumes that the ~6GB mojave installer is in the /Applications folder.
# If it's not, just open the App Store, search Mojave, and you can download the installer file from there.
hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J
hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave
sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave
mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ mojave