Skip to content

Instantly share code, notes, and snippets.

View WaleedMortaja's full-sized avatar

Waleed Mortaja WaleedMortaja

View GitHub Profile
@WaleedMortaja
WaleedMortaja / shared_folder_centos_virtualbox.txt
Last active August 30, 2020 07:48 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required (You must have internet on the CentOs machine)
yum update
yum install tar bzip2 kernel-devel make gcc elfutils-libelf-devel
# Click: Devices/Insert Guest Additions CD Image
@WaleedMortaja
WaleedMortaja / firefly-iii-backuper.sh
Last active December 30, 2023 17:23 — forked from dawid-czarnecki/firefly-iii-backuper.sh
Script to backup Firefly III database, uploads and config files installed with docker-compose
#!/bin/bash
files_to_backup=(.env .db.env .fidi.env docker-compose.yml )
info() { echo -e "\\033[1;36m[INFO]\\033[0m \\033[36m$*\\033[0m" >&2; }
warn() { echo -e "\\033[1;33m[WARNING]\\033[0m \\033[33m$*\\033[0m" >&2; }
fatal() { echo -e "\\033[1;31m[FATAL]\\033[0m \\033[31m$*\\033[0m" >&2; exit 1; }
intro () {
echo " ====================================================="