Skip to content

Instantly share code, notes, and snippets.

View Luigi-Pizzolito's full-sized avatar
🎓
In University

Luigi Pizzolito Luigi-Pizzolito

🎓
In University
View GitHub Profile
@Luigi-Pizzolito
Luigi-Pizzolito / PoliMi_Webex_DL.md
Last active September 3, 2026 14:22
PoliMi Webex Recording Archive Lesson Recording Downloader
  1. Head to lesson archive in recording manager.
  2. Run the following JavaScript in the Dev Console:
(function() {
  const rows = document.querySelectorAll('tbody.TableDati-tbody tr');
  const items = [];
  for (const row of rows) {
    const playLink = row.querySelector('td:first-child a[href*="evn_preview_link=evento"]');
    if (!playLink) continue;
    const href = playLink.href;
@Luigi-Pizzolito
Luigi-Pizzolito / convert.sh
Created June 5, 2026 19:05
Convert Project Diva MegaMix+ (PC) Songpacks to MegaMix for Switch (VIP) (run in mods folder of DML)
#!/usr/bin/env zsh
# Save the absolute path of the parent directory
PARENT_DIR=$PWD
# Loop through all folders ending exactly in 'Pack' (excluding ' Pack')
for pack_dir in *Pack(/); do
# Strict check: Skip if the character right before 'Pack' is a space
if [[ "$pack_dir" == *" Pack" ]]; then
continue
@Luigi-Pizzolito
Luigi-Pizzolito / setup_dvr.sh
Created June 5, 2026 19:04
Glinet Comet Pro KVM USB Webcam Simple DVR (run from /userdata/media)
#!/bin/sh
# ============================================
# MediaMTX Setup Script for OpenWrt
# All files in /userdata/media
# ============================================
set -e
# Configuration
@Luigi-Pizzolito
Luigi-Pizzolito / gowin-eda-arch.md
Last active April 14, 2026 07:48
GoWin EDA on Arch Linux

Launching GoWin EDA on modern Arch Linux

  1. Install deps
sudo pacman -S mesa libglvnd
sudo pacman -S qt5-base libxcb xcb-util-keysyms xcb-util-image xcb-util-wm xcb-util-renderutil
  1. Install openssl-1.0
sudo mkdir -p /usr/local/lib/openssl-1.0
@Luigi-Pizzolito
Luigi-Pizzolito / hanko.go
Created November 10, 2025 22:38
Hank Auth Go Middleware
package auth
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
@Luigi-Pizzolito
Luigi-Pizzolito / starfield.go
Created August 4, 2025 17:57
Parallax starfield effect implemented using text mode terminal interface with tcell.
package main
import (
"fmt"
"math"
"math/rand"
"os"
"time"
"github.com/gdamore/tcell/v2"
@Luigi-Pizzolito
Luigi-Pizzolito / 99-touch-screen.rules
Last active March 13, 2025 03:42
Arch Redirect 2nd Monitor Touchscreen
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="32d7", ATTR{idProduct}=="0001", TAG+="systemd", ENV{SYSTEMD_WANTS}="map-touchscreen.service"
@Luigi-Pizzolito
Luigi-Pizzolito / main.go
Created January 19, 2025 17:11
Web App as Native in Go
// filepath: /<project folder>/main.go
package main
import (
"embed"
"net/http"
webview "github.com/webview/webview_go"
)
@Luigi-Pizzolito
Luigi-Pizzolito / AZVolumeWheelRemap.ahk
Created May 27, 2024 12:31
AHK Script to remap Volume Scroll Wheel of AK75Pro AJAZZ Keyboard, using AHK, ClickMonitorDDC and nircmd
#SingleInstance
#InstallKeybdHook
#Persistent
SetWorkingDir C:/ahk
; remap AJAZZ volume wheel to primary display brightness and screenshot on click
; remap to second display if shift is held
; original volume and pause mapping if Meta is held
; Temporarily disable Windows keys when other hotkeys are active
@Luigi-Pizzolito
Luigi-Pizzolito / Usage.md
Created March 19, 2024 13:09
Go Broadcast, one channel send to many goroutines channel recieve

BCast

Go Broadcast, one channel send to many goroutines channel recieve

Usage

package main

import (
  "fmt"
 "time"