Skip to content

Instantly share code, notes, and snippets.

View jasoncheng7115's full-sized avatar

Jason Cheng jasoncheng7115

View GitHub Profile
@tomdaley92
tomdaley92 / README.md
Last active April 14, 2025 17:56
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

@pletch
pletch / scrape_opnsense_dhcp_leases.py
Last active September 24, 2023 13:16
Scrape OpnSense DHCP Leases Status Page and Export Results as List
#!/usr/bin/env python3
#
# This python script provides a function to query the opnSense (v21.3 - v23.1.x) dhcp leases status page and
# return a list of tuples including ip, hostname, and mac address. This script will not work with version 23.7.x+
# due to changes in the DHCP lease page.
# See comment from dheldt on modified version that works using api searchLeases page.
# To use the original script, ensure LXML is installed via package manager or via pip.
#
# 27-Mar-2021 - Original release
@mrpeardotnet
mrpeardotnet / PMG-Enable Avast Antivirus.md
Created January 30, 2020 09:50
Enable Avast AV (Avast Business Antivirus) security in Proxmox Mail Gateway (PMG)

Enable Avast AV (Avast Business Antivirus) security in Proxmox Mail Gateway (PMG) 6.x

This cheatsheet shows how to install and enable Avast antivirus (Avast Business Antivirus for Linux) on your PMG server.

Please note that Avast Business Antivirus for Linux is not provided for free and you need to buy license. You can test it for free after requesting trial license.

Prepare the apt package manager

Download and install avast.gpg key:

wget -q -O - https://files.avast.com/files/resellers/linux/avast.gpg | apt-key add -
@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
@zopieux
zopieux / README.md
Last active November 18, 2024 11:35
QNAP TS-453 Pro: LCD, LEDs, fan & buttons

QNAP TS-453 Pro: LCD, LEDs, fan & buttons

QNAP NAS model TS-453 Pro has limited documentation on how to control its various peripherals, namely:

  • the front LCD display, a 2 row, 16 column blue & white LCD display, and its two menu buttons ("ENTER", "SELECT")
  • the front LEDs "STATUS" (red & green) & "USB" (blue)
  • the 4 "disk error" LEDs (red)
  • the front "USB COPY" button
  • the main rear fan
@barukasu
barukasu / Univention Centos Client Join
Last active April 20, 2022 20:26
univention centos login authentication
#!/bin/bash
#
# This script will allow your linux desktop to join a Univention Server domain
# This will allow you connect to an LDAP,Kerberos,Samba server
# This was tested on Centos7.5 logging into Univention Server, but might work for other servers too
#
# https://www.univention.com/
#
@Barneybook
Barneybook / Telegram_it_group_list.md
Last active April 8, 2025 13:15
Telegram 資訊相關 群組清單