This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // see more @ https://www.unknowncheats.me/forum/general-programming-and-reversing/397104-ntquerysysteminformation-systemsuperfetchinformation.html | |
| #pragma once | |
| #include <cstdint> | |
| #include <vector> | |
| #include "lazy_loader_light.hpp" | |
| #include "ntstatus.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Automates the JPEG XL + jxlpy build/install steps on Windows for a specific Python. | |
| .EXAMPLE | |
| .\Install-Jxlpy.ps1 -PythonExe "C:\path\to\python.exe" -WorkDir "C:\temp\jxlpy-build" | |
| .NOTES | |
| - Downloads: | |
| libjxl v0.11.1 Windows static zip |
- Open Automator.app
- Create new Quick Action
- Select Run AppleScript
- Add this:
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 100
display notification "Volume set to 100" with title "✅ Microphone is on"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import platform | |
| import subprocess | |
| import time | |
| from concurrent.futures import ProcessPoolExecutor, as_completed | |
| import click | |
| from elftools.elf.elffile import ELFFile |
Quick Guide For Fixing/Installing Python, PyTorch, CUDA, Triton, Sage Attention and Flash Attention For Local AI Image Generation
With all the new local image & video generation tools coming out I've been seeing a lot of posts and error threads being opened for various issues with cuda/pytorch/sage attantion/triton/flash attention. I was tired of digging links up so I initially made this as a cheat sheet for myself but expanded it with hopes that this will help some of you get your venvs and systems running smoothly.
- Check Installed Python Versions
- Set Default Python Version by Changing PATH
- Installing VS Build Tools
- Check the Currently Active CUDA Version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # (c) Tim Blazytko 2021 | |
| # implementation based on the blog post "Automated Detection of Control-flow Flattening" | |
| # https://synthesis.to/2021/03/03/flattening_detection.html | |
| import sys | |
| from miasm.analysis.binary import Container | |
| from miasm.analysis.machine import Machine | |
| from miasm.core.locationdb import LocationDB |
- Ilfak's presentation at Recon 2018
- Microcode in pictures
- Hex-Rays Microcode API vs. Obfuscating Compiler
- Scripts vds10, vds11, vds12 and vds13 from Hex-Rays SDK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import idc | |
| import idautils | |
| import idaapi | |
| import ida_bytes | |
| import ida_funcs | |
| def is_function(ea): | |
| f = idaapi.get_func(ea) | |
| if not f: | |
| return False |
NewerOlder