Skip to content

Instantly share code, notes, and snippets.

View eylles's full-sized avatar
🏠
playing unemployment simulator IRL

eylles

🏠
playing unemployment simulator IRL
  • Guatemala
  • 14:55 (UTC -06:00)
  • LinkedIn in/eylles
View GitHub Profile
@mariodivece
mariodivece / mad-scanlines-crt.glsl
Last active December 13, 2024 08:22
CRT Scanline Effect for Dolphin Emulator
void main()
{
float currentMillis = GetTime() / float(1000.0);
float2 coords = GetCoordinates();
float lineCount = GetWindowResolution().y / 2.0;
// scanlines
int lineIndex = int( ( coords.y + currentMillis * 0.5 ) * lineCount );
#ifdef API_OPENGL
float lineIntensity = mod(float(lineIndex), 2);
@jonfk
jonfk / hollow_knight_fix_dualsense.md
Last active May 4, 2025 17:55
Fix to use dualsense controller in hollow knight on linux

Map dualsense controller manually and disable Steam Input

This fixes the issue of swapped buttons and Triggers in the dualsense controller opening the pause menu The issue is caused by the SDL version used by hollow knight not recognizing the dualsense controller and mapping buttons properly. It is also not helped by steam input not disabling the native controller support when used in hollow knight. The issue cannot be fixed by simple mapping in steam input.

  1. Disable Steam Input
  2. Set the following as launch option
@tkapias
tkapias / fzf-img.sh
Last active September 5, 2023 21:29
fzf-img.sh - Image fuzzy finder with preview using fzf and ueberzug
#!/usr/bin/env bash
# This is just an example how ueberzug can be used with fzf.
# Copyright (C) 2019 Nico Bäurer
# Copyright (C) 2022 Tomasz Kapias
# - Updated:
# - optional PATH as only option
# - internal FDfind query for images
# - display SVGs after caching a converted png
# - Imagemagick's identify infos as header with margin
@therightstuff
therightstuff / parallel_test.sh
Last active July 28, 2023 00:29
Sample bash script for managing multiple parallel processes
#!/usr/bin/env bash
# inspired by https://stackoverflow.com/a/29535256/2860309
pids=""
failures=0
function my_process() {
seconds_to_sleep=$1
exit_code=$2