Skip to content

Instantly share code, notes, and snippets.

View raspiduino's full-sized avatar

gvl610 raspiduino

View GitHub Profile
@raspiduino
raspiduino / readme.sh
Last active July 27, 2024 06:07
How to install memgpt on Termux
# Install required Termux packages
apt update
apt install openssh openssl openssl-1.1 proot-distro
# Setup ssh (optional)
passwd # Type your password here
whoami # Get your username
ifconfig # Get your IP
# Add openssl-1.1 library to path (otherwise curl and other programs won't work)
@raspiduino
raspiduino / FirstLogonAnim.html
Created July 23, 2024 04:14
Windows 11 OOBE first logon animation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script>
var uniqueId = 0;function genUniqueKeyframeName(){return"seq-"+uniqueId++}var uniqueId=0,SceneItem=function(n,t,i,r,u){n.style.visibility="visible";this.keyframe_sequence=u;this.element=n;this.animation_name=t;this.animation_duration=r;this.keyframes="@-ms-keyframes "+t+" {"+i+"}"},KeyframeSequencer=function(n){this._created_keyframes=[];this.container_element=n;this._sequences=[];var t=document.createElement("style");document.head.appendChild(t);this.stylesheet=t.sheet},ScenesManager;KeyframeSequencer.prototype.addSequence=function(n,t,i,r){var u={},e,s,f,o,h,c;for(u.element=n,u.keyframe_name=genUniqueKeyframeName(),u.keyframe_style_str="@-ms-keyframes "+u.keyframe_name+" {",e=0,f=0;f<t.length;f++)o=t[f].duration,e+=o;for(s=0,f=0;f<t.length;f++)o=t[f].duration,s+=o,h=s/e*100+"%",c=t[f].properties,u.keyframe_style_str+=h+"{"+c+"}";u.keyframe_style_str+="}";u.delay=i;u.duration=e+"s";u.fill_mode=r||"both";this._sequences.push(u)};Key
@raspiduino
raspiduino / main.cpp
Last active July 7, 2024 16:08
Alternative to parent_path() on std::filesystem::path with Windows style path
#include <filesystem>
#include <string>
#include <iostream>
#include <regex>
namespace fs = std::filesystem;
int main() {
fs::path p = "e:\\abc\\xyz.txt";
std::string s = p.string();
@raspiduino
raspiduino / readme.md
Created July 5, 2024 10:16
VirusTotal detection API from ProcessExplorer

Disclaimer

  • Me (@raspiduino/gvl610) DID NOT do any Process Explorer reverse engineer. This API had appeared multiple times on the Internet before I wrote this.
  • This API key is not intended for any uses outside of the Process Explorer program itself.
  • I takes absolutely NO responsibilities for any damage and/or problems that may occur when using this API.
  • DON'T ABUSE this API.

The API itself

Basic API is as following. You can use curlconverter to convert to any programming language you would like.

@raspiduino
raspiduino / readme.md
Last active June 22, 2024 04:36
How to build QEMU ESP32 for Windows

How to build QEMU ESP32 for Windows

QEMU ESP32 is a fork of QEMU with Espressif patches for emulating ESP32 microcontroller series. Normally there is prebuilt files in Releases tab, but for some reasons if you want to (or have to) build yourself, then you can follow this guide.

I would recommend Windows environment with MSYS2 for building this. This guide aims at building for x64 architecture, but probably you can do the same for x86 by replacing x86_64 packages with x86 ones.

  • Step 1: Install MSYS2.
  • Step 2: Open MSYS2 MINGW64 prompts.
  • Step 3: Install required packages
@raspiduino
raspiduino / readme.md
Last active December 24, 2023 16:38
Quick and dirty solution for the Segmentation fault problem of processing package libc-bin when using apt in Armbian

I recently have Armbian installed on my set-top box and its apt got crazy when I used it:

$ sudo apt install xfce4-terminal
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libvte-2.91-0 libvte-2.91-common
The following NEW packages will be installed:
@raspiduino
raspiduino / loadmap.py
Created September 28, 2023 11:53
IDAPython script for loading Linux kernel's generated System.map
import idaapi
import idc
import idautils
# Function to open a file dialog and return the selected file path
def select_map_file():
map_file = idaapi.ask_file(0, "*.map", "Select System.map")
return map_file
# Function to parse the map file and create a dictionary of address-function name mappings
@raspiduino
raspiduino / ldd1.txt
Last active February 23, 2023 18:35
Get `libvulkan.so` to load
root@localhost:~# ldd /system/lib64/libvulkan.so
linux-vdso.so.1 (0x00000077322f2000)
android.hardware.configstore@1.0.so => /system/lib64/android.hardware.configstore@1.0.so (0x000000773226c000)
android.hardware.configstore-utils.so => /system/lib64/android.hardware.configstore-utils.so (0x00000077322eb000)
libziparchive.so => /system/lib64/libziparchive.so (0x000000773225d000)
libhardware.so => /system/lib64/libhardware.so (0x00000077322e7000)
libsync.so => /system/lib64/libsync.so (0x0000007732258000)
libbase.so => /system/lib64/libbase.so (0x0000007732243000)
libdl_android.so => /system/lib64/libdl_android.so (0x0000007732240000)
libhidlbase.so => /system/lib64/libhidlbase.so (0x000000773219a000)
@raspiduino
raspiduino / remove.py
Created August 12, 2022 03:24
Remove the first `+` character in a diff when you need to copy some large added code
f = open("in.c")
a = f.read().split("\n")
f.close()
b = []
for i in a:
b.append(a[1:])
f = open("out.c", "w")
@raspiduino
raspiduino / uninstall-cuda-on-mac.md
Created June 4, 2022 03:28 — forked from patharanordev/uninstall-cuda-on-mac.md
Uninstall CUDA.framework on macOS

Uninstall CUDA.framework on macOS

If you

  • got message like "CUDA.framework is malware, ... damage on your mac"
  • using OpenCL instead
  • using macOS 10.14+ (used Metal framework instead)

and try to remove it.

Delete the following folders/files: