Skip to content

Instantly share code, notes, and snippets.

@skutov
skutov / README
Last active December 29, 2023 07:01
Configuring VLANS in Proxmox Network Interfaces
This is a quick brain dump to hopefully help explain the other files here.
/etc/network/interfaces is from my working proxmox install with an overly complicated VLAN setup. All configuration is
based off a forum post by x307 which I have copied here for reference.
My server has 2 sets of NICs hooked up to 2 seperate switches, my main switch runs traffic for management, applications,
and general home devices. I have a seperate swtich for SAN and Corosync traffic.
eno1 & eno2 are onboard NICs that are teamed in a LAG to the main switch. Proxmox has an IP address on VLAN 10 for
management, VMs can then access VLANs 1, 10, 20 and 999 through the LAG as needed (home, management, applications and
@skutov
skutov / qlab_buttons.ino
Last active August 28, 2020 13:27
Qlab Button triggers using arduino
//#include "Keyboard.h"
#include "MIDIUSB.h"
// At the moment, button 9 is being used as an output to control a relay via MIDI
const int buttonPins[10] = {3, 4, 5, 6, 7, 9, 8, 10, 11, 12}; // input pins for pushbuttons
const char buttonKeys[10] = {'1', '2', '3', '4', '5', '6', '7', '8', '9', '0'};
int buttonCurrentStates[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int buttonPrevStates[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
unsigned long lastDebounceTime[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
@skutov
skutov / panasonicProjectorControl
Last active June 21, 2022 14:44
Script to controll a panasonic projector (or any with a HTTP interface) over network using AppleScript. This was written for use from within Qlab
set powerOn to "/cgi-bin/power_on.cgi"
set powerOff to "/cgi-bin/power_off.cgi"
set shutterClose to "/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
set shutterOpen to "/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"
set setSourceHDMI1 to "/cgi-bin/proj_ctl.cgi?key=hdmi&lang=e&osd=on"
set theServer to "192.168.0.100" -- set this to the ip address of the projector
set theCommand to powerOn --set the command required, option are, powerOn, powerOff, shutterClose, shutterOpen
set theUser to "dispadmin"
set thePass to "password"
#! /usr/bin/python3
#
# spoke something on GoogleHome
#
# use: ./ghome_say [ghome_ip] [text_to_say]
#
#
import sys