Skip to content

Instantly share code, notes, and snippets.

@ascpixi
ascpixi / va_info.py
Created April 14, 2024 00:06
Script for displaying individual PT indices of a x86-64 virtual address
import sys
from colorama import Fore
from colorama import Style
va = int(sys.argv[1], base=0)
sign_extend_mask = 0b1111111111111111_000000000_000000000_000000000_000000000_000000000000
pml4_mask = 0b0000000000000000_111111111_000000000_000000000_000000000_000000000000
pdp_mask = 0b0000000000000000_000000000_111111111_000000000_000000000_000000000000
pd_mask = 0b0000000000000000_000000000_000000000_111111111_000000000_000000000000
@ascpixi
ascpixi / decrease.js
Last active March 6, 2024 03:07
🔊 YouTube gain control bookmarklets
javascript:(()=>{var $=(d)=>{return document.querySelector(d)};if(!window.K){var a=new AudioContext();var g=a.createGain();window.e=g;window.K=1.5;g.gain.value=1.5;a.createMediaElementSource($("video")).connect(g);g.connect(a.destination)}else{window.K/=2;window.e.gain.value=window.K}var f=$("#gV");if(f){f.remove()}let V=document.body.appendChild(document.createElement("div"));V.style="padding:8px;position:fixed;z-index:9999;background-color:#000000ee;color:#fff;font-size:2em;border-bottom:red solid 1px";V.innerText="Gain changed to "+window.K;V.id="gV";setTimeout(()=>{V.remove()},2000)})()
@ascpixi
ascpixi / MarkersToYouTubeChapters.cs
Last active November 29, 2021 02:05
🎬 Converts VEGAS Pro markers to YouTube chapters you can put in descriptions
/*
* Markers to YouTube Chapters Script for VEGAS Pro
* by ascpixi (https://github.com/ascpixi)
*
* This script is licenced under the MIT Licence:
* Copyright 2020 ascpixi
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CL