summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/_index.md5
-rw-r--r--content/about.md7
-rwxr-xr-xcontent/android-chrome-192x192.pngbin0 -> 48916 bytes
-rwxr-xr-xcontent/android-chrome-512x512.pngbin0 -> 228914 bytes
-rwxr-xr-xcontent/apple-touch-icon.pngbin0 -> 44269 bytes
-rw-r--r--content/banner.pngbin0 -> 448044 bytes
-rw-r--r--content/cheatsheets/c_cpp.md109
-rwxr-xr-xcontent/favicon-16x16.pngbin0 -> 749 bytes
-rwxr-xr-xcontent/favicon-32x32.pngbin0 -> 2287 bytes
-rwxr-xr-xcontent/favicon.icobin0 -> 15406 bytes
-rw-r--r--content/posts/win7.md35
11 files changed, 156 insertions, 0 deletions
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@\<this domain>. \ 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
--- /dev/null
+++ b/content/android-chrome-192x192.png
Binary files differ
diff --git a/content/android-chrome-512x512.png b/content/android-chrome-512x512.png
new file mode 100755
index 0000000..dc0c9d1
--- /dev/null
+++ b/content/android-chrome-512x512.png
Binary files differ
diff --git a/content/apple-touch-icon.png b/content/apple-touch-icon.png
new file mode 100755
index 0000000..598a0af
--- /dev/null
+++ b/content/apple-touch-icon.png
Binary files differ
diff --git a/content/banner.png b/content/banner.png
new file mode 100644
index 0000000..f602b7e
--- /dev/null
+++ b/content/banner.png
Binary files 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 <TargetConditionals.h>
+ #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
--- /dev/null
+++ b/content/favicon-16x16.png
Binary files differ
diff --git a/content/favicon-32x32.png b/content/favicon-32x32.png
new file mode 100755
index 0000000..835f909
--- /dev/null
+++ b/content/favicon-32x32.png
Binary files differ
diff --git a/content/favicon.ico b/content/favicon.ico
new file mode 100755
index 0000000..ebda066
--- /dev/null
+++ b/content/favicon.ico
Binary files 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.