Skip to content

Instantly share code, notes, and snippets.

@scyto
scyto / proxmox.md
Last active February 18, 2025 21:56
my proxmox cluster

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@aatizghimire
aatizghimire / XRDP-MultiUser-Installation
Last active February 18, 2025 21:55
This is short tutorial to install XRDP on Ubuntu for multi-user Remote desktop connection.
--------------------------------------------
Xrdp Server (Remote Desktop) Installation:
--------------------------------------------
Tested in Ubuntu 22.04.03 LTS
1. Update Environment
$ sudo apt-get update
$ sudo apt-get upgrade
@inhies
inhies / twrp.sh
Last active February 18, 2025 21:53
Creates TWRP compatible backups over USB using ADB without any files ever touching your SD card.
#!/bin/bash
#
# Version 1.4
#
# twrp.sh -- a TWRP compatible backup script for your computer
# Brought to you by inhies
#
# This script creates TWRP compatible backups over usb using adb and magikz
# By default it makes a folder in the standard TWRP date--time format (I think)
# To restore these backups, place the folder in /sdcard/TWRP/BACKUPS/<serialnumber>/
@jcberthon
jcberthon / networkmanager-wifi-powersave.md
Last active February 18, 2025 21:53
NetworkManager Wi-Fi powersaving configuration

NetworkManager WiFi Power Saving

NetworkManager supports WiFi powersaving but the function is rather undocumented.

From the source code: wifi.powersave can have the following value:

  • NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
  • NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
  • NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
@willccbb
willccbb / grpo_demo.py
Last active February 18, 2025 21:51
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
@mahmoudimus
mahmoudimus / idapro_python_apply_dif_file_patch_to_idb.py
Created February 18, 2025 21:51
Program for using IDA's .dif files to patch binaries
# from https://reverseengineering.stackexchange.com/a/11835/13408
# ported to python3 and IDA 8.0+ by Mahmoud Abdelkader
import idaapi
import ida_bytes
import ida_kernwin
def apply_dif_file(dif_file_name):
print("Applying " + dif_file_name + " to database.")
@flga
flga / odin.py
Created February 18, 2025 21:30
WIP Odin lldb
import lldb
import math
import traceback
def __lldb_init_module(debugger, dict):
debugger.HandleCommand('type summary add -F odin.string_summary -w odin string')
debugger.HandleCommand('type summary add -F odin.typeid_summary -w odin typeid')
debugger.HandleCommand('type synth add -l odin.TypeidSynth -w odin typeid')
@bouzou4
bouzou4 / directory-print
Last active February 18, 2025 21:48
Concatenates the contents of specified file types into a single file, with headers indicating the source files.
#!/bin/zsh
# Help message function
function show_help() {
cat <<- EOF
Usage: ${0} [OPTIONS] -e EXTENSIONS
Concatenates the contents of specified file types into a single file, with headers indicating the source files.
OPTIONS:
-d Directory to start looking for files (default is current directory)
-e Extensions to include, comma-separated. Example: js,jsx,ts
@xpn
xpn / sccmdecryptpoc.cs
Last active February 18, 2025 21:48
SCCM Account Password Decryption POC
// Twitter thread: https://twitter.com/_xpn_/status/1543682652066258946 (was a bit bored ;)
// Needs to be run on the SCCM server containing the "Microsoft Systems Management Server" CSP for it to work.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace SCCMDecryptPOC
{
internal class Program
@taotiwordpress
taotiwordpress / twig-bag-of-tools.md
Last active February 18, 2025 21:47
Twig Cheatsheet #twig #timber #wordpress #cheatsheet #images #wp-query #wp_query #the_loop

Timber Bag of Tools Cheat Sheet

Useful Variables

Remember, there are 'TWIG' tools and then there are 'Timber' tools.

The second is WordPress specific.

Twig-based Variables