Skip to content

Instantly share code, notes, and snippets.

View Megakuul's full-sized avatar
🦕
Megaquul

Linus Moser Megakuul

🦕
Megaquul
View GitHub Profile
@Megakuul
Megakuul / aws-cheatsheet.md
Last active September 18, 2025 20:31
aws cheatsheet
@Megakuul
Megakuul / silence-ilo4-fans.md
Created June 22, 2025 20:34
Silence HPE Proliant fans (iLO 4)

If you need to manually control (silence) the fans of a HPE Proliant Gen8/9 servers with iLO 4 follow these steps:

  1. Download firmware flash package on the installed os:
  2. Download modified firmware with fancommands.
  3. Disable iLO security (via hardware switch).
  4. Unload hpilo kernelmod if present: sudo modprobe -r hpilo.
  5. Extract flash package and replace the original firmware with the modified:
sh ./CP027911.scexe --unpack=ilo_250
cd ilo_250
@Megakuul
Megakuul / hpe-ams-ubuntu.md
Last active June 21, 2025 23:04
Install HPE Agentless Management Service (Gen8) on Ubuntu 24.04

Latest ams do not work as expected with old Gen8 (iLO 4) servers.

Install the one from focal and install outdated dependencies:

curl https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/hpe-key.gpg

echo "deb https://downloads.linux.hpe.com/SDR/repo/mcp focal/current non-free" > /etc/apt/sources.list.d/hpe-mcp.list

wget http://security.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c4_0.13.1+dfsg-7_amd64.deb
@Megakuul
Megakuul / keyboard-repeat-rate.sh
Created December 24, 2024 22:53
Perfect keyboard repeat rate
# Work in progress for finding the ultimate keyboard repeat rate for extrem speed.
xset r rate 150 20
@Megakuul
Megakuul / kdenlive-gpu.md
Last active December 27, 2024 06:31
Setup kdenlive with gpu acceleration

Install kdenlive, movit and rtaudio:

s pacman -S kdenlive movit rtaudio

Manually compile mlt shared libs (this should now detect and link against movit and rtaudio):

yay -S mlt-git
@Megakuul
Megakuul / good-terminal.md
Last active October 25, 2024 23:02
Good looking terminal/shell setup

Install starship, kitty and nerd font

yay -S starship kitty ttf-firacode-nerd

Set starship as default shell

echo 'eval "$(starship init bash)"' >> ~/.bashrc
@Megakuul
Megakuul / self-signed-ssl.md
Last active October 8, 2024 11:04
create self signed

Create self signed ssl certificate

Generate a certificate signing request (this generates the privkey.pem and includes the public key in the csr):

openssl req -new -nodes > req.csr

Then convert the public key to a public certificate and sign it with its own private key.

openssl x509 -req -in req.csr -signkey privkey.pem -out cert.pem
@Megakuul
Megakuul / aws-local-sso-setup.md
Last active September 15, 2024 18:30
aws-local-sso-setup.md

AWS local sso setup

If you want to use multiple aws accounts over one sso login, the local setup looks like this:

Configure sso sessions using the --profile flag to generate a profile associated with the session:

aws configure sso --profile MyProfile-Prod

Create a session and give it a locally unique name (e.g. 'prod').

@Megakuul
Megakuul / convert-gif-to-mov
Created March 25, 2024 20:17
Convert gif to mov with ProRes 4444 codec, this format is supported by blender and can be used to work with transparent gifs in blender
#!/bin/bash
# Directory containing your GIF files
GIF_DIR="./"
# Target directory for the converted video files
TARGET_DIR="./gifs_web/"
# Create the target directory if it doesn't exist
mkdir -p "$TARGET_DIR"
@Megakuul
Megakuul / convert-gif-to-mp4.sh
Created March 25, 2024 19:43
Convert gif to mp4 with ffmpeg (e.g. for blender)
#!/bin/bash
# Directory containing your GIF files
GIF_DIR="./"
# Target directory for the converted video files
TARGET_DIR="./gifs/"
# Create the target directory if it doesn't exist
mkdir -p "$TARGET_DIR"