From 039a2f2755e0115b0339fea56d97fd90c4bbc951 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Thu, 11 Sep 2025 21:12:26 -0500 Subject: --- content/_index.md | 5 ++ content/about.md | 7 +++ content/android-chrome-192x192.png | Bin 0 -> 48916 bytes content/android-chrome-512x512.png | Bin 0 -> 228914 bytes content/apple-touch-icon.png | Bin 0 -> 44269 bytes content/banner.png | Bin 0 -> 448044 bytes content/cheatsheets/c_cpp.md | 109 +++++++++++++++++++++++++++++++++++++ content/favicon-16x16.png | Bin 0 -> 749 bytes content/favicon-32x32.png | Bin 0 -> 2287 bytes content/favicon.ico | Bin 0 -> 15406 bytes content/posts/win7.md | 35 ++++++++++++ 11 files changed, 156 insertions(+) create mode 100644 content/_index.md create mode 100644 content/about.md create mode 100755 content/android-chrome-192x192.png create mode 100755 content/android-chrome-512x512.png create mode 100755 content/apple-touch-icon.png create mode 100644 content/banner.png create mode 100644 content/cheatsheets/c_cpp.md create mode 100755 content/favicon-16x16.png create mode 100755 content/favicon-32x32.png create mode 100755 content/favicon.ico create mode 100644 content/posts/win7.md (limited to 'content') diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..6f79ef2 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ ++++ +title = 'Home' ++++ + +![banner](/banner.png) diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..f7b6fa0 --- /dev/null +++ b/content/about.md @@ -0,0 +1,7 @@ ++++ +title = 'About' ++++ + +My name is Hunter. I'm a hobbyist multimedia programmer from Minnesota. + +If you have a question or would like to report an issue, please email hunter@\. \ No newline at end of file diff --git a/content/android-chrome-192x192.png b/content/android-chrome-192x192.png new file mode 100755 index 0000000..32f3bab Binary files /dev/null and b/content/android-chrome-192x192.png differ diff --git a/content/android-chrome-512x512.png b/content/android-chrome-512x512.png new file mode 100755 index 0000000..dc0c9d1 Binary files /dev/null and b/content/android-chrome-512x512.png differ diff --git a/content/apple-touch-icon.png b/content/apple-touch-icon.png new file mode 100755 index 0000000..598a0af Binary files /dev/null and b/content/apple-touch-icon.png differ diff --git a/content/banner.png b/content/banner.png new file mode 100644 index 0000000..f602b7e Binary files /dev/null and b/content/banner.png differ diff --git a/content/cheatsheets/c_cpp.md b/content/cheatsheets/c_cpp.md new file mode 100644 index 0000000..e25e874 --- /dev/null +++ b/content/cheatsheets/c_cpp.md @@ -0,0 +1,109 @@ ++++ +title = 'C/C++' ++++ + +* [Preprocessor Definitions](#preprocessor-definitions) + * [Platform detection](#platform-detection) + * [Compiler detection](#compiler-detection) + * [Architecture detection](#architecture-detection) +* [Standard Headers](#standard-headers) + +## Preprocessor Definitions + +* [predef wiki](https://github.com/cpredef/predef) + +### Platform detection +``` +#ifdef _WIN32 + // Windows +#endif + +#ifdef __APPLE__ + // Apple + + #include + #idef TARGET_OS_OSX + // macOS + #elif TARGET_OS_IPHONE + // Some kind of mobile device + #if TARGET_OS_MACCATALYST + // Mac Catalyst - iOS app on macOS + #elif TARGET_OS_VISION + // visionOS + #elif TARGET_OS_TV + // tvOS + #else + // iOS + #endif + #endif // TARGET_OS_OSX +#endif // __APPLE__ + +#ifdef __linux__ + // Linux +#endif + +``` + +### Compiler detection +``` +#ifdef __GNUC__ + // GCC +#endif + +#ifdef __clang__ + // clang +#endif + +#ifdef _MSC_VER + // Visual C++ +#endif +``` + +### Architecture detection +``` +#if (defined(_MSC_VER) && _M_X64) || (defined(__GNUC__) && __amd64__) + // x86-64 +#endif + +#if (defined(_MSC_VER) && _M_ARM64) || (defined(__GNUC__) && __aarch64__) + // arm64 +#endif +``` + +## Standard Headers + +* [C standard headers](https://en.cppreference.com/w/c/header.html) +* [C++ standard headers](https://en.cppreference.com/w/cpp/header.html) +# +* [assert.h](https://en.cppreference.com/w/c/header/assert.html) +* [complex.h](https://en.cppreference.com/w/c/header/complex.html) +* [ctype.h](https://en.cppreference.com/w/c/header/ctype.html) +* [errno.h](https://en.cppreference.com/w/c/header/errno.html) +* [fenv.h](https://en.cppreference.com/w/c/header/fenv.html) +* [float.h](https://en.cppreference.com/w/c/header/float.html) +* [inttypes.h](https://en.cppreference.com/w/c/header/inttypes.html) +* [iso646.h](https://en.cppreference.com/w/c/header/iso646.html) +* [limits.h](https://en.cppreference.com/w/c/header/limits.html) +* [locale.h](https://en.cppreference.com/w/c/header/locale.html) +* [math.h](https://en.cppreference.com/w/c/header/math.html) +* [setjmp.h](https://en.cppreference.com/w/c/header/setjmp.html) +* [signal.h](https://en.cppreference.com/w/c/header/signal.html) +* [stdalign.h](https://en.cppreference.com/w/c/header/stdalign.html) +* [stdarg.h](https://en.cppreference.com/w/c/header/stdarg.html) +* [stdatomic.h](https://en.cppreference.com/w/c/header/stdatomic.html) +* [stdbit.h](https://en.cppreference.com/w/c/header/stdbit.html) +* [stdbool.h](https://en.cppreference.com/w/c/header/stdbool.html) +* [stdckdint.h](https://en.cppreference.com/w/c/header/stdckdint.html) +* [stddef.h](https://en.cppreference.com/w/c/header/stddef.html) +* [stdint.h](https://en.cppreference.com/w/c/header/stdint.html) +* [stdio.h](https://en.cppreference.com/w/c/header/stdio.html) +* [stdlib.h](https://en.cppreference.com/w/c/header/stdlib.html) +* [stdmchar.h](https://en.cppreference.com/w/c/header/stdmchar.html) +* [stdnoreturn.h](https://en.cppreference.com/w/c/header/stdnoreturn.html) +* [string.h](https://en.cppreference.com/w/c/header/string.html) +* [tgmath.h](https://en.cppreference.com/w/c/header/tgmath.html) +* [threads.h](https://en.cppreference.com/w/c/header/threads.html) +* [time.h](https://en.cppreference.com/w/c/header/time.html) +* [uchar.h](https://en.cppreference.com/w/c/header/uchar.html) +* [wchar.h](https://en.cppreference.com/w/c/header/wchar.html) +* [wctype.h](https://en.cppreference.com/w/c/header/wctype.html) diff --git a/content/favicon-16x16.png b/content/favicon-16x16.png new file mode 100755 index 0000000..5694cb4 Binary files /dev/null and b/content/favicon-16x16.png differ diff --git a/content/favicon-32x32.png b/content/favicon-32x32.png new file mode 100755 index 0000000..835f909 Binary files /dev/null and b/content/favicon-32x32.png differ diff --git a/content/favicon.ico b/content/favicon.ico new file mode 100755 index 0000000..ebda066 Binary files /dev/null and b/content/favicon.ico differ diff --git a/content/posts/win7.md b/content/posts/win7.md new file mode 100644 index 0000000..87c0d83 --- /dev/null +++ b/content/posts/win7.md @@ -0,0 +1,35 @@ ++++ +title = 'Updating a fresh Windows 7+SP1 install' +date = 2024-02-05T02:30:19-06:00 ++++ + +## How to update a fresh Windows 7+SP1 install in 2024 + +*Mostly taken from http://www.freenode-windows.org/resources/vista-7/windows-update ([archived](https://web.archive.org/web/20220925214048/http://www.freenode-windows.org/resources/vista-7/windows-update))* + +Windows 7 Ultimate (SP1) SHA1 hash: `36ae90defbad9d9539e649b193ae573b77a71c83` + +## 1. Download rollup updates +First, manually download (but don't install) these updates from the [Microsoft Update Catalog](https://www.catalog.update.microsoft.com/home.aspx): + +1. [KB3125574](https://www.catalog.update.microsoft.com/Search.aspx?q=KB3125574) +2. [KB3172605](https://www.catalog.update.microsoft.com/Search.aspx?q=KB3172605) +3. [KB3020369](https://www.catalog.update.microsoft.com/Search.aspx?q=KB3020369) + +## 2. Disable Windows Update + +1. Disable the internet connection +2. Disable the Windows Update service (`stop-service wuauserv` in admin PowerShell) +3. Remove cached update files (`remove-item C:\windows\softwaredistribution\WuRedir` in admin PowerShell) + +## 3. Install rollup updates + +1. Install KB3020369 +2. Install KB3172605 and reboot +3. Install KB3125574 and reboot + +## 3. Updating via Windows Update + +Reconnect to the internet and launch the standard Windows Update program. + +Many updates will fail, but if you retry and restart enough, they will eventually succeed. -- cgit v1.2.3