Skip to content

Instantly share code, notes, and snippets.

View bbcreation's full-sized avatar

Grzegorz Bukat bbcreation

View GitHub Profile
DO BACKUP:
Edit config VM 100 on file:
/etc/pve/qemu-server/100.conf
we must add local nfs share to this VM by add this line:
args: -fsdev local,security_model=passthrough,id=fsdev0,path=/mnt/pve/qnap-backup -device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=9pshare,bus=pci.0,addr=0x4
where /mnt/pve/qnap-backup is mount point NFS storage and 9pshare tag is name
@bbcreation
bbcreation / AdobeAMDFix.md
Created October 20, 2020 09:19 — forked from naveenkrdy/AdobeAMDFix.md
To fix adobe products crashes on AMD hackintosh

Adobe Crash Fix XLNC

Instructions

  1. Install needed adobe apps from adobe creative cloud.

  2. Open Terminal.

  3. Copy-paste the below command to your terminal and run it (enter password if asked).

@bbcreation
bbcreation / PVE-HP-ssacli-smart-storage-admin.md
Created July 27, 2023 22:55 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

# SETUP #
DOMAIN=example.com
PROJECT_REPO="git@github.com:example.com/app.git"
AMOUNT_KEEP_RELEASES=5
RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S)
RELEASES_DIRECTORY=~/$DOMAIN/releases
DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME
# stop script on error signal (-e) and undefined variables (-u)
#!/bin/bash
# Zmienna definiująca zasób NFS
NFS_SERVER="10.20.0.10"
NFS_PATH="/backup/restic"
MOUNT_POINT="/mnt/restic"
# Ścieżka do repozytorium Restic (będzie w zasobie NFS)
REPO="$MOUNT_POINT"
@bbcreation
bbcreation / gist:67f8741d3b3c620c1a54de2c907df363
Created November 12, 2024 00:05
change ssh ubuntu 24.04 cloud init
#allow password login
nano /etc/ssh/sshd_config.d/60-cloudimg-settings.conf
# change port
nano /lib/systemd/system/ssh.socket