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
@m-faraz
m-faraz / mysql_splitdump_v2.sh
Last active July 17, 2025 03:08
Split MySQL dump SQL file into one file per table
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
####
# This version modified from https://gist.github.com/jasny/1608062
####
@tomdaley92
tomdaley92 / README.md
Last active November 10, 2025 09:01
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

@mjtiempo
mjtiempo / jitsimeet-quickinst.sh
Last active July 21, 2023 14:19
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 &&
@mrpeardotnet
mrpeardotnet / PVE-host-backup.md
Created December 17, 2019 18:03
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
@pyrou
pyrou / docker-compose.yml
Last active August 27, 2025 20:34
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
version: '3'
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
@jamieparfet
jamieparfet / macOS-mojave-iso.sh
Last active December 10, 2024 14:38
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
@anthonyeden
anthonyeden / paradox.py
Last active November 5, 2020 21:31 — forked from BertrandBordage/paradox.py
Python Paradox database reader
# coding: utf-8
"""
Converts Paradox databases to Python objects or CSV.
You don't need any dependency (except Python) to make this module work.
This module is incomplete but reads most Paradox `.DB` files.
If this module is not fast or complete enough for you, consider using pxview.
CAUTION: THIS SOFTWARE DOES NOT RELIABLY FETCH ALL DATA FROM PARADOX. CONSIDER USING ODBC DRIVERS INSTEAD.
@UnquietCode
UnquietCode / GroovyCLI.groovy
Last active July 13, 2018 06:52
A simple command line utility template for Groovy. Functionality can be implemented by declaring new methods of the form "_doXYZ" where XYZ is the name of the command to run.
/**
* Base class for command line applications.
*
* Children can provide functionality in the form of
* <command name> <arguments...>
*
* @author Ben Fagin
*/
class GroovyCLI implements Runnable {
private String[] args;