Skip to content

Instantly share code, notes, and snippets.

View wille-io's full-sized avatar

Mike Wille wille-io

  • binfx.io
  • Lower Saxony, Germany
  • 05:05 (UTC +01:00)
View GitHub Profile
@wille-io
wille-io / gen8.md
Created May 15, 2025 20:53
Booting the HP ProLiant MicroServer Gen8

The Gen8 is a weird little box

It has no UEFI which is weird since UEFI was already pretty standard at the time the Gen8 was designed. Plus it is very picky with booting from USB. First it doesn't want to boot from the blue USB 3.0 ports. Second it only boots from USB devices formatted with MBR and where its first partition is FAT32 formatted with sector sizes not bigger than 16kb (Source: a 'reputable source' in the HP Community).

But now comes the worst characteristic about the Gen8. You can't change the boot order of the SATA devices. So if you use the ODD power cable (with an ODD to SATA adapter of course) and the "SATA ODD" port, you have a journey to go as the boot order is as follows: The leftmost drive, followed by the next 3 drives - and finally the device connected tot eh SATA ODD port. There's also a "CDROM Drive" boot order item in the boot order menu - but it doesn't boot the SATA ODD port, only if there's a real CDROM drive.

So what are the options?

The Gen8 has an internal USB port and

@wille-io
wille-io / MacOS-Nano-Plus-Syntax-Highlighting.md
Created May 2, 2022 07:41
Install nano on MacOS with syntax highlighting via homebrew

At least on MacOS Monterey you don't get the real nano when executing nano, but rather the original fork parent pico. If you want to use the real deal, you can install and replace pico. I hope you have homebrew installed.

  1. Install nano via homebrew: brew install nano
  2. Tell your Terminal to open homebrew's version of nano (works with zsh) by adding a line to your .zshrc file: echo 'alias nano="/opt/homebrew/bin/nano"' >> ~/.zshrc to the .zshrc file
  3. Reload .zshrc to have the current Terminal also have the new alias: source ~/.zshrc
  4. Tell nano to use syntax highlighting for all types of languages, etc. by writing / creating the .nanorc file: echo 'include "/opt/homebrew/share/nano/*.nanorc"' >> ~/.nanorc
@wille-io
wille-io / bitsquatting.c
Last active March 5, 2021 21:32
Find your Bitsquatting domain
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv)
{
char *d = argv[1];
size_t l = strlen(d);
for (int i = 0; (size_t)i < l; i++)

Keybase proof

I hereby claim:

  • I am wille-io on github.
  • I am willeio (https://keybase.io/willeio) on keybase.
  • I have a public key whose fingerprint is 78CF 5192 F935 7B8B 5EB0 2BE5 E756 4175 6E56 950D

To claim this, I am signing this object:

connect(mYourClass, &YourClass::destroyed, this, [this](QObject *obj)
{
if (static_cast(mYourClass) == obj)
mYourClass = nullptr;
});
@wille-io
wille-io / main.cpp
Last active May 18, 2018 13:54
jerryscript: Call to a JavaScript function from a prototype of 'this' when external function was called
#include <string.h>
#include <stdio.h>
#include <jerryscript.h>
#include <jerryscript-ext/handler.h>
static jerry_value_t c_function_handler(const jerry_value_t function_obj,
const jerry_value_t this_val,
const jerry_value_t args_p[],
int main()
{
return 0;
}