-
SSH into proxmox node and become root user. Run the following commands to download extra software dependencies we'll need.
apt update apt install -y libsasl2-modules mailutils
-
Enable 2FA for the gmail account that will be used by going to security settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase_admin | |
from firebase_admin import messaging | |
from firebase_admin import exceptions | |
from flask import jsonify | |
import json | |
from firebase_admin import auth | |
from functools import wraps | |
import jwt | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Example code for resetting the USB port that a Teensy microcontroller is | |
attached to. There are a lot of situations where a Teensy or Arduino can | |
end up in a bad state and need resetting, this code is useful for | |
""" | |
import os | |
import fcntl | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
MJpeg Viewer using pure Kivy + urllib | |
===================================== | |
.. author:: Mathieu Virbel <[email protected]> | |
""" | |
import io | |
import urllib | |
import threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy into /etc/cron.hourly | |
pushover_app_token="your--app--token" | |
pushover_user_guid="your--user--or--group--id" | |
dropbox_username="user--with--dropbox--installed" | |
process_to_check="your--process--name" | |
# Notification function | |
notify () { | |
# Send pushover notification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def read_nonblocking(path, bufferSize=100, timeout=.100): | |
import time | |
""" | |
implementation of a non-blocking read | |
works with a named pipe or file | |
errno 11 occurs if pipe is still written too, wait until some data | |
is available | |
""" | |
grace = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6c1d401600b76dd7d9c24ca4c6aa8d6e6b54fb05 Mon Sep 17 00:00:00 2001 | |
From: Joan Bruguera <[email protected]> | |
Date: Fri, 16 Apr 2021 09:29:24 +0200 | |
Subject: [PATCH] Tentative fix for NVIDIA 465.27 driver for Linux 5.13-rc1 | |
--- | |
nvidia-drm/nvidia-drm-crtc.c | 23 +++++++++++++++++++++++ | |
1 file changed, 23 insertions(+) | |
diff --git a/nvidia-drm/nvidia-drm-crtc.c b/nvidia-drm/nvidia-drm-crtc.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"pactl set-sink-volume @DEFAULT_SINK@ -1000" | |
XF86AudioLowerVolume | |
"pactl set-sink-volume @DEFAULT_SINK@ +1000" | |
XF86AudioRaiseVolume | |
"playerctl play-pause" | |
m:0x0 + c:208 | |
XF86AudioPlay | |
"playerctl play-pause" | |
m:0x0 + c:209 | |
XF86AudioPause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/aallan/b4bb86db86079509e6159810ae9bd3e4 | |
{ | |
"OFFICIALLY XEROX": [ | |
"000000" | |
], | |
"SUPERLAN-2U": [ | |
"000001" | |
], | |
"BBN (WAS INTERNAL USAGE ONLY, NO LONGER USED)": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License. | |
# | |
import os | |
import os.path | |
from subprocess import Popen, PIPE | |
import sys | |
from threading import Thread | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve |
OlderNewer