Skip to content

Instantly share code, notes, and snippets.

View dhrdlicka's full-sized avatar
🥲

David Hrdlička dhrdlicka

🥲
  • 07:37 (UTC +02:00)
View GitHub Profile
@dhrdlicka
dhrdlicka / apiset.hexpat
Last active February 28, 2023 13:26
API set schema pattern for ImHex
#include <std/mem.pat>
u32 schemaVersion;
u32 length;
bitfield SchemaFlags
{
Sealed : 1;
HostExtension : 1;
padding : 30;
@dhrdlicka
dhrdlicka / Program.cs
Created July 10, 2022 13:20
Retrieve Windows timebomb expiration date
unsafe DateTime? GetSystemExpirationDate() => *(long*)0x7ffe02c8 switch
{
0 => null,
var x => DateTime.FromFileTime(x)
};
var date = GetSystemExpirationDate();
Console.WriteLine(date);
@dhrdlicka
dhrdlicka / CMakeLists.txt
Last active January 30, 2021 17:53
X_VCPKG_APPLOCAL_DEPS_INSTALL bug repro
cmake_minimum_required(VERSION 3.19)
project(Hello)
set(CPACK_GENERATOR "ZIP")
include(CPack)
find_path(GETTIMEOFDAY_INCLUDE_DIR NAMES "gettimeofday.h")
find_library(GETTIMEOFDAY_LIBRARY gettimeofday)
@dhrdlicka
dhrdlicka / pw1.xhtml
Created September 26, 2018 12:41
PW - praktická maturita - úkol č. 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
<meta name="generator" content="PSPad editor, www.pspad.com" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PRAKTICKÁ MZK - I</title>
</head>