Skip to content

Instantly share code, notes, and snippets.

View dirtslayer's full-sized avatar
🏠
Working from home

Darrell Dupas dirtslayer

🏠
Working from home
  • Redwater, Alberta, Canada
  • 23:53 (UTC -07:00)
View GitHub Profile
@dirtslayer
dirtslayer / twind.kpl
Created January 24, 2025 21:23
krita tailwind palette
GIMP Palette
Name: Tailwind Colors
Columns: 11
#
239 246 255 blue-50
219 234 254 blue-100
191 219 254 blue-200
147 197 253 blue-300
96 165 250 blue-400
59 130 246 blue-500
@dirtslayer
dirtslayer / dirtslayer.ahk
Created May 29, 2021 19:18
AutoHotKey Script for some linux like window manipulations on windows
;AutoHotKey Script for some linux like window manipulations on windows
;
;^T (ctrl T) - toggle title bar of current window
;^SPACE (ctrl space) - toggle always on top for current window
;ALT+LMOUSEDRAG - drag a window
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

Darrell's Notes on Ncurses

working through ncurses_ebook_source from c-for-dummies.com

  • initscr() - initialize screen
  • stdscr - global var for the screen
  • box() - draw a rectangle
  • refresh() - update screen
  • getch() - read a single char / mouse click
  • endwin(44 D 110100 ⠙ (braille pattern dots-145) ⠙ d44 D 110100 ⠙ (braille pattern dots-145) ⠙ d) - clean up
@dirtslayer
dirtslayer / tmuxkeys.py
Created May 22, 2013 04:53
my first python script - prints my favorite tmux keys
#!/usr/bin/python
# my second python script
tmuxkeys = [ ("C-b","send-prefix"),("Space","next-layout"),("\"","split-window"),("0-9","select-window"),("?","list-keys"),("c","new-window"),("s","choose-session"),("t","clock") ]
for fav in tmuxkeys:
print fav[0],"\t", fav[1]