Skip to content

Instantly share code, notes, and snippets.

View GaussianWonder's full-sized avatar
🗿

Teodor GaussianWonder

🗿
View GitHub Profile
@GaussianWonder
GaussianWonder / theme.ron
Created August 17, 2025 11:24
gitui theme for sainnhe/gruvbox-material hard dark style
(
selected_tab: Some("#e78a4e"),
command_fg: Some("#d4be98"),
selection_bg: Some("#504945"),
selection_fg: Some("#ddc7a1"),
use_selection_fg: true,
cmdbar_bg: Some("#1d2021"),
cmdbar_extra_lines_bg: Some("#282828"),
disabled_fg: Some("#9C938E"),
diff_line_add: Some("#a9b665"),
@GaussianWonder
GaussianWonder / biome.json
Last active July 13, 2025 23:08
Opinionated biome.js config. Works well for both frontend and backend services.
{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
@GaussianWonder
GaussianWonder / komorebi.ahk
Created September 28, 2024 08:22
Komorebi ahk config. Auto start and close.
#Requires AutoHotkey v2.0.2
#SingleInstance Force
Komorebic(cmd) {
RunWait(format("komorebic.exe {}", cmd), , "Hide")
}
; Start komorebi if not started already
if !ProcessExist("komorebi.exe")
Komorebic("start")
@GaussianWonder
GaussianWonder / PacketTracer.desktop
Created November 22, 2022 12:52
Open PacketTracer on kde without broken gui
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=XDG_CURRENT_DESKTOP=GNOME /usr/bin/packettracer
Name=PacketTracer
Comment=PacketTracer
Icon=/opt/packettracer/art/app.png
#!/bin/bash
awkGrab=""
if [ -z "$1" ]
then
awkGrab="all"
else
awkGrab="$1"
fi
@GaussianWonder
GaussianWonder / userChrome.css
Created July 21, 2022 10:46
Smaller and tighter firefox tabs, similar to how chrome/edge renders them.
.tab-background {
border-radius: 10px 10px 0 0 !important;
margin-bottom: 0px !important;
}
.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
background-color: color-mix(in srgb, currentColor 5%, transparent);
}
.tabbrowser-tab {
@GaussianWonder
GaussianWonder / cnp.ts
Created June 21, 2022 13:57
Romanian CNP
/**
* Validate CNP
* @param {string} value CNP
* @returns {boolean} Valid or not
*/
export const cnp = (value: string) => {
var re = /^\d{1}\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])(0[1-9]|[1-4]\d| 5[0-2]|99)\d{4}$/,
bigSum = 0,
rest = 0,
ctrlDigit = 0,
@GaussianWonder
GaussianWonder / lvide.desktop
Created June 12, 2022 15:03
OpenFolder and OpenFile(s) context menu options for kde's file manager DOLPHIN. It uses a script to open a LunarVim config in Neovide.
[Desktop Entry]
Type=Service
Icon=nvim
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=text/plain;
Actions=openFilesInLunarNeovide;
Encoding=UTF-8
X-KDE-AuthorizeAction=shell_access
[Desktop Action openFilesInLunarNeovide]
@GaussianWonder
GaussianWonder / lvide.sh
Last active June 12, 2022 14:59
Start LunarVim in Neovide while still being able to pass arguments to each instance individually. Arguments are separated by "--". First half of the arguments are vim arguments, the other half are neovide arguments.
#!/bin/bash
# find index of $1 in [$2 $3 $4 ...]
function indexof {
search="$1"; shift
i=0
for arg; do
if [ "$search" = "$arg" ]
then
echo $i
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.