Skip to content

Instantly share code, notes, and snippets.

View Realiserad's full-sized avatar

Bastian Fredriksson Realiserad

View GitHub Profile
@angelsen
angelsen / github-setup.md
Created May 8, 2025 09:44
Quick setup guide for fish-ai shell assistant using GitHub's free LLM API - no credit card needed

Quick Setup for fish-ai with Free GitHub API

Step 1: Install fish-ai

# Install fisher (Arch Linux)
sudo pacman -S fisher    # or yay -S fisher

# Install fish-ai
fisher install realiserad/fish-ai
@Realiserad
Realiserad / thoughts.md
Last active August 18, 2024 07:17
Thoughts on software engineering

Funny PRs/issues on GitHub

Troll sends out emails to 398463 members on GitHub.

I think you just notified 398463 members. 👯

Complaint about too many emojis in minikube.

Is there any way to turn off all those emojis in console output? I've grown already and it feels like playing with toys which have to be cute so babies love them.

@crazygolem
crazygolem / mpv-gnome-inhibit.lua
Last active January 29, 2025 15:29
Prevent the screen from blanking under GNOME+Wayland while a video is playing
--[[
Prevent the screen from blanking while a video is playing.
This script is a workaround for the GNOME+Wayland issue documented in the
[Disabling Screensaver] section of the mpv manual, and depends on
gnome-session-inhibit (usually provided by the gnome-session package) to set up
the inhibitors.
#Download
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.img
#Install
#Note I have tried changing the edition in install.wim but it did not work.
#Run the following command
Dism /Online /Set-Edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula
#Reboot and enjoy
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active December 10, 2025 05:50 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@avih
avih / equalizer.lua
Last active February 26, 2025 19:12
Visual equalizer script for mpv
--[[
mpv 5-bands equalizer with visual feedback.
Copyright 2016 Avi Halachmi ( https://github.com/avih )
License: public domain
Default config:
- Enter/exit equilizer keys mode: ctrl+e
- Equalizer keys: 2/w control bass ... 6/y control treble, and middles in between
- Toggle equalizer without changing its values: ctrl+E (ctrl+shift+e)
@derrickorama
derrickorama / make-cert-and-pk.md
Last active October 29, 2025 10:13
Extracting certs/private keys from certificates that disable private key exporting

Situation

  • I have to use a Windows client to install a certificate (say via the Magnum PKI Client)
  • I cannot export the private key for this certificate
  • I am a Linux user that needs to have the cert and private key

Solution (steps)

Install/export certificate using Windows VM