Skip to content

Instantly share code, notes, and snippets.

@gioxx
gioxx / proxmox_shutdown.sh
Last active February 28, 2026 02:56
How to properly shutdown virtual machines and LXCs in Proxmox using qm/pct commands (and track operations in a log file).
#!/bin/bash
# Proxmox: Shutdown VMs and LXCs (GSolone, 2025)
# This script stops all running VMs and LXC containers, excluding specified IDs, and logs the operation.
# In DEBUG mode, it only stops one VM and one LXC container for testing purposes, ignoring exclusions.
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
logfile="/var/log/proxmox_shutdown.log"
LOCKFILE="/tmp/proxmox_shutdown.lock"
# Timestamp helper
@jziggas
jziggas / nowhal.js
Last active February 28, 2026 02:53
JavaScript to delete all of your Reddit comments
// Go to https://www.reddit.com/user/<username>/ and paste into your console.
// Reddit throttles these actions, hence the 1s timer.
let interval = setInterval(() => {
let deleteButtons = $('a.togglebutton[data-event-action="delete"]');
if (deleteButtons.length === 0) {
clearInterval(interval);
if ($('.next-button > a')[0]) {
$('.next-button > a')[0].click();
alert('Restart script.');
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>PS Classic Menu — Fixed Options Enter</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<style>
  • Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  • #100~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
$ node async-bench.js 
node_v24.13.1    sync time            time     1537 rate     19514068 rate/core     19514068 ns/iter        51.24 rss     58302464 usr 100.00 sys   0.00 tot 100.00
node_v24.13.1    sync time            time     1514 rate     19814339 rate/core     19814339 ns/iter        50.46 rss     58937344 usr 100.00 sys   0.00 tot 100.00
node_v24.13.1    sync time            time     1473 rate     20361091 rate/core     20361091 ns/iter        49.11 rss     58937344 usr 100.00 sys   0.00 tot 100.00
node_v24.13.1    sync time            time     1451 rate     20674993 rate/core     20883832 ns/iter        48.36 rss     58937344 usr  99.00 sys   0.00 tot  99.00
node_v24.13.1    sync time            time     1479 rate     20270737 rate/core     20270737 ns/iter        49.33 rss     58937344 usr 100.00 sys   0.00 tot 100.00
---
name: plan-exit-review
version: 2.0.0
description: |
Review a plan thoroughly before implementation. Challenges scope, reviews
architecture/code quality/tests/performance, and walks through issues
interactively with opinionated recommendations.
allowed-tools:
- Read
- Grep
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>PS Classic Menu — Fixed Options Enter</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<style>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>PS Classic Menu — Fixed Options Enter</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<style>
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active February 28, 2026 02:44
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@snakevil
snakevil / howto-setup-transparent-proxied-router.md
Last active February 28, 2026 02:39
如何在路由器中实现透明代理?

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。