Skip to content

Instantly share code, notes, and snippets.

View shmup's full-sized avatar
🐌

Jared Miller shmup

🐌
View GitHub Profile
; Window positioning script with hotkeys for moving/resizing windows
; Supports half-screen, corner, maximize, and center positioning
; Repeat a snap hotkey to toggle compact mode for that snap family.
; User settings
center_x_padding := 400
center_y_padding := 200
compact_scale := 0.85
; State
# two escapes clear command line
"\e\e": "\C-a\C-k"
# tab to menu complete
"\t": menu-complete
$if mode=emacs
"\e[A": history-search-backward
"\e[B": history-search-forward
"\C-p": history-search-backward
@shmup
shmup / gitrc
Created January 5, 2026 18:19
git shit for bashrc
# ~/.gitrc: git-related aliases and functions
# config (dotfiles bare repo)
alias config="g --git-dir=$SRC/home-bare/ --work-tree=$HOME"
alias cs='config status'
alias cap='config add -p'
# gitsimp
alias g='git'
alias gap='g add -p'
@shmup
shmup / cp437
Created December 8, 2025 21:35
print out the cp437 glyph table
#!/usr/bin/env python
# print cp437 glyphs
# 0x00 ␀ 0x20 0x40 @ 0x60 ` 0x80 Ç 0xA0 á 0xC0 └ 0xE0 α
# 0x01 ☺ 0x21 ! 0x41 A 0x61 a 0x81 ü 0xA1 í 0xC1 ┴ 0xE1 ß
# 0x02 ☻ 0x22 " 0x42 B 0x62 b 0x82 é 0xA2 ó 0xC2 ┬ 0xE2 Γ
# 0x03 ♥ 0x23 # 0x43 C 0x63 c 0x83 â 0xA3 ú 0xC3 ├ 0xE3 π
# 0x04 ♦ 0x24 $ 0x44 D 0x64 d 0x84 ä 0xA4 ñ 0xC4 ─ 0xE4 Σ
# 0x05 ♣ 0x25 % 0x45 E 0x65 e 0x85 à 0xA5 Ñ 0xC5 ┼ 0xE5 σ
# 0x06 ♠ 0x26 & 0x46 F 0x66 f 0x86 å 0xA6 ª 0xC6 ╞ 0xE6 µ
<friend> re: work making u change passwords, you should tell them they're going aginst NIST 800-63-4 section 3.1.1.2(6)
<friend> "Verifiers and CSPs SHALL NOT require users to change passwords periodically."
<friend> this is new recently
<friend> it changed from SHOULD to SHALL
<friend> no wiggle room now. if you're making people change passwords you are breakin da law

Inspiroy H640P Tablet Guide for Fedora

A comprehensive reference for using your Inspiroy H640P drawing tablet with OpenTabletDriver on Fedora Linux.


Quick Start

First Connection

@shmup
shmup / fzf_patterns.md
Created October 5, 2025 19:56
comprehensive patterns from junegunn choi's everything.fzf ollection

fzf reference guide

comprehensive patterns from junegunn choi's everything.fzf collection

bind actions

action types

  • execute:CMD - run command in terminal, show output
  • execute-silent:CMD - run command, hide output
@shmup
shmup / naur.md
Created August 25, 2025 15:41 — forked from dpritchett/naur.md
Programming as Theory Building

Programming as Theory Building

Peter Naur, 1985

(copied from http://alistair.cockburn.us/ASD+book+extract%3A+%22Naur,+Ehn,+Musashi%22)

Introduction

The present discussion is a contribution to the understanding of what programming is. It suggests that programming properly should be regarded as an activity by which the programmers form or achieve a certain kind of insight, a theory, of the matters at hand. This suggestion is in contrast to what appears to be a more common notion, that programming should be regarded as a production of a program and certain other texts.

Elixir Primer

Core Concepts

  • Functional language built on Erlang VM (BEAM)
  • Immutable data - values never change
  • Pattern matching as primary control flow
  • Process-oriented concurrency (not OS threads)
Import-Module posh-git
Import-Module PSFzf
# Set initial directory
cd "$HOME\workspace\repos\UI"
# Git aliases
Set-Alias -Name g -Value git
Remove-Item alias:gc -Force -ErrorAction SilentlyContinue
function gs { git status $args }