Skip to content

Instantly share code, notes, and snippets.

@umkl
umkl / config.fish
Created January 10, 2025 11:43
My current fish config
# Only execute commands in interactive sessions
if status is-interactive
# Ensure Homebrew is in the PATH for everything installed via Homebrew
if type brew &>/dev/null
set -gx PATH $PATH (brew --prefix)/bin
set -gx PATH $PATH (brew --prefix)/sbin
end
end
@umkl
umkl / show-hide-macos-desktop-icons.zshrc
Last active April 9, 2024 14:35
easily hide and show desktop icons on macos
alias hide-desktop="defaults write com.apple.finder CreateDesktop false; killall Finder"
alias show-desktop="defaults write com.apple.finder CreateDesktop true; killall Finder"
@umkl
umkl / script.js
Created January 12, 2024 14:40
Notifications remover automation javascript
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = "close_notifications_applescript";
const CLEAR_ALL_ACTION = "Clear All";
const CLEAR_ALL_ACTION_TOP = "Clear";
@umkl
umkl / default
Created December 9, 2023 17:57
default nginx config
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@umkl
umkl / 🎡 My Spotify Top Tracks
Last active February 19, 2024 13:43
My top tracks to focus on work πŸ₯½
Track Artist
------------------------------------------------------
Voyage Leavv
Spatial Sequence Endel, Dream Park
Sand Drawing Endel
School Rooftop Hisohkah, WMD
Deep Surf Jetson
Butterfly SwΓΈrn
Far Away SwΓΈrn
mocean tusken.
@umkl
umkl / ⌨️ TypeRacer | Statistics of ungarmichael
Last active December 8, 2023 09:41
⌨️ TypeRacer | Statistics of ungarmichael
64 Games played | 31 Games won | πŸ‘‘ 114 WPM | ΓΈ 83 WPM
―― Recent races (Average ΓΈ 84 WPM)
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 79 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 71 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 76 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 82 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 75 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 87 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘ 89 WPM
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘ 97 WPM
.no-scrollbar::-webkit-scrollbar {
display: none;
}
@umkl
umkl / globals.css
Created November 19, 2023 10:20
add text outline to tailwind
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
.font-outline-1 {
-webkit-text-stroke: 1px white;
}
.font-outline-2 {
-webkit-text-stroke: 2px white;
@umkl
umkl / prefix_remover_script.bash
Created November 19, 2023 09:43
bash_script to remove filename prefixes
#!/bin/bash
# Check if the prefix is provided as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <prefix>"
exit 1
fi
# Get the prefix from the command line argument
prefix="$1"
const player = "p";
const wall = "w";
const enemy = "e";
const obstacle = "o";
setLegend(
[ player, bitmap`
....288888......
...222888888....
...222880808....