Skip to content

Instantly share code, notes, and snippets.

View usirin's full-sized avatar

Umut Sirin usirin

View GitHub Profile
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family IA Writer Mono S
font_family InconsolataGo Nerd Font
# Address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
set -g history-limit 50000
set -g display-time 4000
set -g status-interval 5
set -g status-keys emacs
set -g focus-events on
setw -g aggressive-resize on
setw -g mouse
@usirin
usirin / hosts
Created July 8, 2023 19:51
/etc/hosts for kampus local dev
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@usirin
usirin / create-kernel.ts
Created January 14, 2023 23:50
typescript port of github.com/usirin/simple-kernel
export interface Bootstrapper<T> {
bootstrap(context: T): Promise<any> | any;
}
export interface KernelOptions<T> {
bootstrappers: Array<Bootstrapper<T>>;
}
export function createKernel<T>(
options: KernelOptions<T>,
@usirin
usirin / .yabairc
Created November 22, 2022 09:54
my yabai config
#!/usr/bin/env sh
# vi: ft=sh
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
# float system preferences
yabai -m rule --add app='^System Information$' manage=off
yabai -m rule --add app='^System Preferences$' manage=off
yabai -m rule --add title='Preferences$' manage=off
@usirin
usirin / obsidian-daily-template.md
Created June 9, 2022 20:36
obsidian-daily-template.md

focus

Tasks

Overdue

not done
due before {{date:YYYY-MM-DD}}
@usirin
usirin / task-dashboard.md
Created May 11, 2022 19:37
My obsidian dashboard for personal task management

Tasks

Due Today
not done
due today
Due Tomorrow
not done
due tomorrow
@usirin
usirin / kitty-theme-bleed-purple.conf
Created September 6, 2021 22:31
kitty-bleed-purple
# Color scheme {{{
# The foreground color
foreground #adadb8
# The background color
background #18181b
# The opacity of the background. A number between 0 and 1, where 1 is opaque and 0 is fully transparent.
# This will only work if supported by the OS (for instance, when using a compositor under X11). Note
# that it only sets the default background color's opacity. This is so that
@usirin
usirin / parse-repo-commits.go
Created May 28, 2021 08:36
parse-repo-commits.go
package cmd
import (
"context"
"errors"
"fmt"
"os"
"strings"
"time"
^1^T^Soperations^T^SMailing^T^S#Default^T^Srestock^b^SmaxQty^N10^SkeepQty^N0^Starget^S^SrestockSources^T^t^SmaxQtyEnabled^b^t^SGlegtotem^T^Srestock^b^SmaxQty^N10^SkeepQty^N0^Starget^SGlegtotem^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQtyEnabled^b^t^SGlegcola^T^Srestock^b^SmaxQty^N10^SkeepQty^N0^Starget^SGlegcola^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQtyEnabled^b^t^t^SAuctioning^T^SSell~`Material~`(20)^T^SaboveMax^SmaxPrice^SnormalPrice^Smatnormal^Sduration^N1^SmatchStackSize^B^Sblacklist^S^SpostCap^N10^SbidPercent^N0.95^SstackSizeIsCap^b^SmaxPrice^Smatmax^SignoreLowDuration^N0^SstackSize^N20^SkeepPosted^N0^Sundercut^S1c^SkeepQuantity^N0^SmaxExpires^N0^SkeepQtySources^T^t^SpriceReset^SminPrice^ScancelUndercut^B^ScancelRepost^b^ScancelRepostThreshold^S0c^SminPrice^Smatmin^t^SSell~`Material~`(200)^T^SaboveMax^SmaxPrice^SnormalPrice^Smatnormal^Sduration^N1^SmatchStackSize^B^Sblacklist^S^SpostCap^N5^SbidPercent^N0.95^SstackSizeIsCap^b^SmaxPrice^Smatmax^SignoreLowDuration^N0^SstackSize^N200^SkeepPosted^N0^Sunder