Skip to content

Instantly share code, notes, and snippets.

@Waester
Waester / DisableVoucherRequirement.lua
Created March 5, 2025 19:30
Monster Hunter Wilds
local function pre_skipOriginalFunction(args)
return sdk.PreHookResult.SKIP_ORIGINAL
end
local function post_getRemainingTickets(retval)
return sdk.to_ptr(1)
end
local function post_useTicket(retval)
return
#Requires AutoHotkey v2
#SingleInstance
ListLines(0), KeyHistory(0)
ProcessSetPriority("High")
for k, v in Map("a","d","w","s")
Set(k, v, 0), Set(v, k, 0), Set(k, v, 1), Set(v, k, 1)
Set(a, b, up) {
if up
from bs4 import BeautifulSoup
from urllib.parse import unquote
import requests
url = 'http://dev.packages.vyos.net/'
path = '?dir=repositories/equuleus/pool/main'
def scan(_path):
page = requests.get(url + _path).text
soup = BeautifulSoup(page, 'html.parser')
#!/usr/bin/python3
import sys
import os
import re
args = sys.argv
layout = {
"stereo": "2",
"5.1": "6"
log.info("[Rise Voucher Manager] started loading")
local config = {
enable = false,
desiredVoucherUseCount = 0
}
local DlcManager = nil
local config_file = "RiseVoucherManager.json"
local _config = json.load_file(config_file)
@Waester
Waester / config.py
Last active September 1, 2024 07:27
RSS = (
{ 'url': 'https://example.com' },
{ 'url': 'https://example.com', 'regex': '^.+720p.*$' },
)
PROXIES = {
'http': 'http://example.com:8080',
'https': 'https://example.com:8443',
}
set -g mouse on
set -g history-limit 100000
set -s escape-time 0
set -g default-command $SHELL
unbind -T copy-mode MouseDrag1Pane
unbind -T copy-mode MouseDragEnd1Pane
unbind -T copy-mode DoubleClick1Pane
unbind -T copy-mode TripleClick1Pane
In my understanding, the "tcp meltdown" problem is not difficult to solve:
you only need to set a large retransmission timeout for the inner tcp connection.
By greatly increasing the minimum retransmission timeout of the inner TCP connection,
we have effectively disabled the timeout retransmission mechanism of the inner TCP.
Therefore, the TCP meltdown problem is avoided.
For example, in linux, you can use ip route replace 192.168.168.1/24 via 192.168.168.2 rto_min 12s
to increase the minimum retransmission timeout of all internal connections established through OpenVPN
from 0.2 seconds to 12 seconds (It is assumed that 192.168.168.1/24 is your OpenVPN network segment).
#!/bin/bash
# https://turecki.net/content/getting-most-out-ssh-hardware-acceleration-tuning-aes-ni
# Usage: cipherbench.sh <hostname>
size=1000
for i in $(ssh -Q cipher); do
dd if=/dev/zero bs=1MB count=$size 2> /dev/null | \
ssh -c $i $1 "(time -p cat) > /dev/null" 2>&1 | \
grep real | \
# https://blogs.msdn.microsoft.com/santhoshonline/2011/11/24/how-to-launch-a-process-with-cpu-affinity-set/
Set-StrictMode -Version Latest
while ($true) {
Start-Sleep -Seconds 10
$ApplicationList = Import-Csv affinity.csv
$ProcessList = Get-Process
foreach ($Process in $ProcessList) {