Skip to content

Instantly share code, notes, and snippets.

@gus33000
gus33000 / Disassembler.c
Last active May 2, 2024 15:52 — forked from sunflower2333/Disassembler.c
ProtocolsFinder
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
//#define DEBUG
uint32_t swap_uint32(uint32_t x) {
@gus33000
gus33000 / Windows_AArch64_Geekbench_2023-04-08.csv
Last active April 8, 2023 20:50
All devices on Geekbench browser when searching for "Windows AArch64" - Any database - May contain mistakes (Windows Subsystem for Android + Android devices (Google Pixel)) - 3 files: filtered (no vms, no surface devices, no phones etc), filtered (no vms, no surface devices), complete
Geekbench Result Url Name
https://browser.geekbench.com/ml/v0/inference/202807 ASUS X513EAN_K513EA
https://browser.geekbench.com/ml/v0/inference/202810 ASUS X513EAN_K513EA
https://browser.geekbench.com/ml/v0/inference/202813 ASUS X513EAN_K513EA
https://browser.geekbench.com/v4/cpu/10145691 ASUSTeK COMPUTER INC. NovaGo TP370QL
https://browser.geekbench.com/v4/cpu/10154749 ASUSTeK COMPUTER INC. NovaGo TP370QL
https://browser.geekbench.com/v4/cpu/10158736 ASUSTeK COMPUTER INC. NovaGo TP370QL
https://browser.geekbench.com/v4/cpu/10369846 HP HP ENVY x2 Detachable 12-e0xx
https://browser.geekbench.com/v4/cpu/10376593 ASUSTeK COMPUTER INC. NovaGo TP370QL
https://browser.geekbench.com/v4/cpu/10377393 ASUSTeK COMPUTER INC. NovaGo TP370QL
Product Code Product Name Expanded Code
OEM0 Surface Mini
OEMB Surface_3
OEMC Surface_Pro_3
OEMS Surface_2 Covington
OEMA0 Andromeda
OEMAL Surface_Go_3_1901 Alishan
OEMAP Surface_Pro_4
OEMB1 Surface Duo
@gus33000
gus33000 / run-in-container-without-impact.sh
Last active February 13, 2023 15:49
Runs a specific command under a given docker container while not modifying the content of a mounted directory on the host
#!/bin/bash
#
# Runs a specific command under a given docker container while not modifying the content of a mounted directory on the host
#
# Inspired by https://devops.stackexchange.com/questions/3872/how-do-i-make-read-only-mount-in-docker-container-writable
#
# ./start.sh <base image name/remote image on docker hub> <directory to mount using overlayfs> <some program with args to run ...>
#
# e.g.: ./run-in-container-without-impact.sh devtest /data/test-docker-gus/target bash
#include <iostream>
#include <windows.h>
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Devices.Lights.h>
#include <winrt/Windows.Devices.Enumeration.h>
using namespace winrt;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
@gus33000
gus33000 / SubExtUpdateHelper.cs
Last active October 23, 2022 15:23
Program to assist modifying subext infs for Qualcomm Windows platforms
/*
* Program to assist modifying subext infs for Qualcomm Windows platforms
*/
using System.Security.Cryptography;
using System.Text;
/*
* Parameters
@gus33000
gus33000 / QualcommMemoryMapParser.cs
Last active January 22, 2022 17:35
Generate code to include in EDK2 Memory Descriptor from Qualcomm's UEFIPlat.cfg files. Can also be used to generate blocks for gaps in the memory map.
string GetDefineForEfiMemType(string type)
{
switch (type)
{
case "Reserv":
{
return "EfiReservedMemoryType";
}
case "BsData":
{
From 76e3d4ef69998dafa3733429aab9d0fc9a85bf2b Mon Sep 17 00:00:00 2001
From: Gustave Monce <gustave.monce@outlook.com>
Date: Sun, 5 Dec 2021 19:45:28 +0100
Subject: [PATCH] Allow builds of Unigram.Native.Calls for ARM64
---
.../Unigram.Native.Calls.vcxproj | 26 +++++++------------
Unigram/Unigram.Native.Calls/packages.config | 2 +-
2 files changed, 10 insertions(+), 18 deletions(-)
@gus33000
gus33000 / Building Unigram WinRTC.md
Last active December 5, 2021 19:13
How to build the WebRTC/WinRTC fork Unigram uses from available source. This is based on current source available as of 2021-12-05.

Given Unigram reliance on WebRTC (and more precisely WinRTC) and forked changes, that are not clearly documented, this guide will help you build WinRTC yourself with the right changes that Unigram needs in order to work.

Preliminary

In order to make some file replacements easy, feel free to download a copy of this gist.

image

Build Status for Unigram.WinRTC

@gus33000
gus33000 / Program.cs
Last active February 25, 2023 06:36
Early Windows NT Kernel Version Reader for builds lower than 328. (Confirmed working with 196, 239)
// Copyright (c) 2020, Gustave Monce - gus33000.me - @gus33000
//
// 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