Skip to content

Instantly share code, notes, and snippets.

@kevinushey
kevinushey / enable-minidump.reg
Created January 8, 2019 17:28
Enable Windows Minidumps
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
@kevinushey
kevinushey / disable-minidump.reg
Created January 8, 2019 17:33
Disable Windows Minidumps
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
@kevinushey
kevinushey / broken.cpp
Last active February 9, 2020 17:56
Fails to compile with gcc 10 on Fedora Rawhide.
void* callback(const char* name);
extern "C" {
inline void f1()
{
static void (*f)();
f = (void(*)()) callback("f1");
f();
}
@kevinushey
kevinushey / cp
Created August 28, 2024 22:08
A wrapper for 'cp', which avoids copying un-needed directories.
#!/usr/bin/env sh
# use a plain old cp if R_CMD is not set
if [ -z "${R_CMD}" ]; then
/bin/cp "$@"
exit
fi
# TODO: default version of rsync on macOS is buggy;
# modification times are not preserved even when requested
@kevinushey
kevinushey / default-jdk.log
Last active October 7, 2025 15:54
Error log when activating Java extension in VSCode.
!SESSION 2025-10-07 08:37:59.272 -----------------------------------------------
eclipse.buildId=unknown
java.version=21.0.8
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: --pipe=\\.\pipe\lsp-3a8b89be84522a4aeb5eefc8c4a32559-sock
Command-line arguments: -data c:\Users\kevin\AppData\Roaming\Code\User\workspaceStorage\0a75e8ede35fb766e03c5c16949418a3\redhat.java\jdt_ws --pipe=\\.\pipe\lsp-3a8b89be84522a4aeb5eefc8c4a32559-sock
!ENTRY org.eclipse.core.resources 2 10035 2025-10-07 08:38:01.063
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.