Skip to content

Instantly share code, notes, and snippets.

View drHyperion451's full-sized avatar

drHyperion451 drHyperion451

View GitHub Profile
@drHyperion451
drHyperion451 / main.c
Created November 4, 2023 13:21
Small c program that will print any arguments it parses
#include <stdio.h>
// This will print any argument it parses just for testing purposes.
int main(int argc, char *argv[]) {
for (int i = 1; i < argc; i++) {
printf("Argument %d: %s\n", i, argv[i]);
}
return 0;
}
@drHyperion451
drHyperion451 / Office2021configuration.xml
Created February 5, 2024 19:16
MS Office configuration for installing just what you need to.
<!-- Download MS Office deployment tool here: https://www.microsoft.com/en-us/download/details.aspx?id=49117-->
<!-- In theory it should download MS Office automatically from the servers. -->
<Configuration>
<Add SourcePath="" OfficeClientEdition="64">
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
<!-- Delete the programs you want to install below: -->
<ExcludeApp ID="Access" />
<ExcludeApp ID="Excel" />
<ExcludeApp ID="Word" />
@drHyperion451
drHyperion451 / USB_eject_ninja.ps1
Last active October 19, 2024 22:17
One line batch windows script to know which process is refusing to eject your USB disk.
# USB_eject_ninja.bat
# One line batch windows script to know which process is refusing to eject your USB disk.
# For Windows 11, but it should work on any Windows version
# Stolen from this superuser.com post: https://superuser.com/questions/87364/can-windows-tell-me-what-is-using-my-usb-drive
# License? None lol I've grabbed this from a random user on the internet.
# Why this isn't a feature inside Windows GUI? No fucking clue.
# THIS WORKS IF YOU ALREADY TRIED TO EJECT THE DRIVE.
# Just copy and paste the line below inside any cmd in Windows. It should work without admin privileges.