Skip to content

Instantly share code, notes, and snippets.

@bitraid
bitraid / update-pechecksum.cmd
Last active June 7, 2021 06:00
Update PE checksum
@echo off
setlocal EnableDelayedExpansion
if ["%~1"] == [""] (echo:Usage: %~nx0 ^<PE-File [...]^>) & (goto:eof)
:update_file
for %%G in ("%~1") do (
call:powershell update_pechecksum "%%~G"
if !ERRORLEVEL! equ 1 (1>&2 echo:%%~fG: Error: Could not open the file.)
if !ERRORLEVEL! equ 2 (1>&2 echo:%%~fG: Error: Could not map the file.)
@bitraid
bitraid / reddit.user.js
Last active November 26, 2022 18:41
greasemonkey reddit to teddit
// ==UserScript==
// @name reddit to teddit
// @namespace https://gist.github.com/bitraid/d1901de54382532a03b9b22a207f0417
// @version 1.0
// @description reddit to teddit
// @match *://*.reddit.com/*
// @match *://reddit.com/*
// @grant none
// @run-at document-start
// ==/UserScript==