Skip to content

Instantly share code, notes, and snippets.

View sggr57a's full-sized avatar

mX2r sggr57a

View GitHub Profile
@sggr57a
sggr57a / nc_update.sh
Created September 11, 2024 03:36 — forked from jult/nc_update.sh
nextcloud update and post-update occ commands, file and database integrity fixes
#!/bin/bash
find /etc -type f -name "php.ini" -exec sed -i 's/output_buffering/;output_buffering/g' {} +
sudo -u www-data sed -i "s/output_buffering=.*/output_buffering='Off'/" /var/www/nextcloud/.user.ini
sudo -u www-data php /var/www/nextcloud/occ app:disable survey_client
sudo -u www-data php /var/www/nextcloud/occ app:disable firstrunwizard
sudo -u www-data php /var/www/nextcloud/occ app:enable admin_audit
sudo -u www-data php /var/www/nextcloud/occ app:enable files_pdfviewer
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
nohup chown -R www-data:www-data /var/www/nextcloud &
@sggr57a
sggr57a / nc_update.sh
Created September 11, 2024 03:36 — forked from jult/nc_update.sh
nextcloud update and post-update occ commands, file and database integrity fixes
#!/bin/bash
find /etc -type f -name "php.ini" -exec sed -i 's/output_buffering/;output_buffering/g' {} +
sudo -u www-data sed -i "s/output_buffering=.*/output_buffering='Off'/" /var/www/nextcloud/.user.ini
sudo -u www-data php /var/www/nextcloud/occ app:disable survey_client
sudo -u www-data php /var/www/nextcloud/occ app:disable firstrunwizard
sudo -u www-data php /var/www/nextcloud/occ app:enable admin_audit
sudo -u www-data php /var/www/nextcloud/occ app:enable files_pdfviewer
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
nohup chown -R www-data:www-data /var/www/nextcloud &
@sggr57a
sggr57a / 10GbNIC.md
Created August 26, 2024 02:03 — forked from fschiettecatte/10GbNIC.md
10Gb NIC on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

10Gb NIC on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

I have an AQC107 10Gb NIC installed in my PC running AlmaLinux 8. AlmaLinux 8 supports the card well enough but I found that a number of network settings need to be changed to get the best performance.

The driver is included in AlmaLinux 8 but you may want to install the current release which you can download from Marvell. Installation instructions for the driver are included in the download.

@sggr57a
sggr57a / proxmox-tb-net.md
Created May 23, 2024 11:52 — forked from scyto/proxmox-tb-net.md
Thunderbolt Networking Setup

Thunderbolt Networking

this gist is part of this series

NOTE FOR THIS TO BE RELIABLE ON NODE RESTARTS YOU WILL NEED PROXMOX KERNEL 6.2.16-14-pve OR HIGER

This fixes issues i bugged with the thunderbolt / thunderbolt-net maintainers (i will take everyones thanks now, lol)

Install LLDP - this is great to see what nodes can see which.

  • install lldpctl with apt install lldpd
@sggr57a
sggr57a / PVE-host-backup.md
Created October 10, 2023 13:45 — 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
@sggr57a
sggr57a / mk_pkg_manifest.py
Created March 28, 2020 20:52 — forked from jessepeterson/mk_pkg_manifest.py
Create an Apple software distribution manifest for an Apple pkg installer (see http://help.apple.com/deployment/osx/#/ior5df10f73a)
#!/usr/bin/python
# create a "wireless manifest" for Apple pkg installers. for details
# on the manifest see: http://help.apple.com/deployment/osx/#/ior5df10f73a
import subprocess
from tempfile import mkdtemp
import os
from xml.dom.minidom import parse, parseString
from hashlib import md5