Skip to content

Instantly share code, notes, and snippets.

View dabudke's full-sized avatar

Daniel Budke dabudke

View GitHub Profile
#include "metaverse.h"
#include "display.h"
#include <fstream>
#include <ios>
#include <iostream>
#include <istream>
#include <unistd.h>
#include <vector>
/**
@dabudke
dabudke / panic.sh
Last active December 5, 2019 19:22
Cause a kernel panic from Bash
#!/bin/bash
echo 1 > /proc/sys/kernel/sysrq
echo c > /proc/sysrq-trigger
@dabudke
dabudke / bsod.bat
Last active December 5, 2019 16:43
BSOD on Right Ctrl + Scroll Lock (Windows)
@echo off
echo This file will change registry entries. Please back up the registry if you want to restore the system.
echo Press any key to continue...
pause
rem REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\i8042prt\Parameters" /v "CrashOnCtrlScroll" /t REG_DWORD /d 0x01 /f
REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\kbdhid\Parameters" /v "CrashOnCtrlScroll" /t REG_DWORD /d 0x01 /f
ECHO Registry files edited.
ECHO To finalize changes, you must restart. Press Ctrl+C to abort shutdown, otherwise, press any key.