Skip to content

Instantly share code, notes, and snippets.

View realoriginal's full-sized avatar

Austin Hudson realoriginal

View GitHub Profile
# Author: Justin Lucas
# Date: September 19, 2023
# Info: A script to colleagues' files starting at the current directory it is running
# Where found, it will attempt to receive the file as a redirected byte stream
beacon_command_register("peerseek", "Seek a file from your peers to grab instantly.", "peerseek FILENAME");
alias peerseek
{
@RubenKelevra
RubenKelevra / git partial push
Last active December 29, 2025 18:47
Github only accepts pushes up to 2 GB as they are bundled into a single pack - this allows for a partial push via `git partial-push origin branchname` after placing it into .gitconfig. Error message"remote: fatal: pack exceeds maximum allowed size (2.00 GiB) error: remote unpack failed: index-pack abnormal exit"
[alias]
partial-push = "!sh -c
'REMOTE=$0;BRANCH=$1;BATCH_SIZE=100;
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
range=$REMOTE/$BRANCH..HEAD;
else
range=HEAD;
fi;
n=$(git log --first-parent --format=format:x $range | wc -l);
echo "Have to push $n packages in range of $range";
@mrexodia
mrexodia / IntelPIN.cmake
Last active December 11, 2025 02:33
IntelPIN.cmake
# Website: https://software.intel.com/content/www/us/en/develop/articles/pin-a-binary-instrumentation-tool-downloads.html
# License: https://software.intel.com/sites/landingpage/pintool/pinlicense.txt
# This snippet: https://gist.github.com/mrexodia/f61fead0108603d04b2ca0ab045e0952
# TODO: lunix support
# Thanks to Francesco for showing me this method
CPMAddPackage(
NAME IntelPIN
VERSION 3.18
URL https://software.intel.com/sites/landingpage/pintool/downloads/pin-3.18-98332-gaebd7b1e6-msvc-windows.zip