Skip to content

Instantly share code, notes, and snippets.

Avatar
🐌

Jared Miller shmup

🐌
  • computer
  • traverse city, mi
View GitHub Profile
@shmup
shmup / profile.ps1
Created May 19, 2023 14:37
Powershell profile
View profile.ps1
set-alias -name fennel -value fennel-1.0.0-windows32.exe
set-alias -name love -value $HOME\Games\love\love.exe
set-alias which -value get-command
set-alias g -value git
function gco {
$branches = git branch --sort=-committerdate
$selectedBranch = $branches | fzf --exact
if ($selectedBranch -ne $null -and $selectedBranch -ne "") {
$branchToCheckout = $selectedBranch.Trim("* ").Trim()
@shmup
shmup / roland_mt_80s_error_codes.md
Created April 14, 2023 01:05
List of Roland MT 80s Error Codes
View roland_mt_80s_error_codes.md

List of Roland MT 80s Error Codes

E.02 - write-protect mode, flip switch
E.03 - cannot be formatted, try another disk           _____
E.13 - disk removed during formatting                 |==   |
E.14 - damaged sector, use another disk (also E.23)   |  o. |
E.20 - wrong disk type                                |_[_]_|
E.21 - wrong music type
E.22 - disk removed during reading, insert and try again
@shmup
shmup / cyclecolors.vim
Created March 23, 2023 22:51
cycle through your personal colorschemes
View cyclecolors.vim
" cyclecolors.vim
" cycle through colorschemes
function! CycleColors(direction)
let colorschemes = split(globpath(expand("~/.vim/colors/"), "*.vim"), "\n")
let colorscheme_names = map(colorschemes, {_,v -> fnamemodify(v, ':t:r')})
let current_color_index = index(colorscheme_names, g:colors_name)
let next_colorscheme = a:direction == '→' ? current_color_index + 1 : current_color_index - 1
let next_colorscheme = (next_colorscheme + len(colorscheme_names)) % len(colorscheme_names)
execute 'colorscheme ' . colorscheme_names[next_colorscheme]
@shmup
shmup / 1-BLIT.txt
Created September 8, 2022 15:06
basilisk universe
View 1-BLIT.txt
BLIT
It was like being caught halfway through a flashy film-dissolve. The goggles
broke up the dim street, split and reshuffled it along diagonal lines: a glowing
KEBABS sign was transposed into the typestyle they called Shatter. Safest to
keep the goggles on, Robbo had decided. Even in the flickering electric
half-light before dawn, you never knew what you might see. Just his luck if the
stencil jumped from under his arm and unrolled itself before his eyes as he
scrabbled for it on the pavement.
@shmup
shmup / twitch
Last active September 4, 2022 19:21
twitch.tv helper script to stream to external player
View twitch
#!/usr/bin/env bash
# $HOME/bin/twitch
# fuzzy filtering https://github.com/jhawthorn/fzy
# streams via mpv and https://github.com/streamlink/streamlink
# twitch chat via irc https://gist.github.com/shmup/0a144a44a24aadc8679bc2e5889e7284
# usage: twitch
PLAYER="mpv"
PLAYER_ARGS="--really-quiet"
@shmup
shmup / flesh_and_blood.md
Last active September 5, 2022 16:50
A short primer on how to play Flesh and Blood (WIP)
View flesh_and_blood.md

Flesh and Blood

Flesh and Blood is a competitive CCG where two heroes face off in a fight to the death. Each player starts the game with their hero, weapon, and equipment set in play. The battle is fought through the strategic use of resources, knowing when to defend, and when to go in for the kill.

Start of Game Procedure

  1. Put Young Hero & Weapon(s) face up onto the Arena.
  2. Put any chosen Equipment face down onto their slot(s).
View unicode.txt
Basic Latin
═══════════════════════════════════════════════════════
0000 │ 0 1 2 3 4 5 6 7 8 9 a b c d e f
───────────────────────────────────────────────────────
0020 │ ! " # $ % & ' ( ) * + , - . /
0030 │ 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
0040 │ @ A B C D E F G H I J K L M N O
0050 │ P Q R S T U V W X Y Z [ \ ] ^ _
0060 │ ` a b c d e f g h i j k l m n o
0070 │ p q r s t u v w x y z { | } ~
@shmup
shmup / quicker_git_and_fugitive_on_wsl2.md
Last active August 25, 2022 21:31
Quick Git & Fugitive.vim for WSL2
View quicker_git_and_fugitive_on_wsl2.md

Quick Git & Fugitive.vim for WSL2

Some things that may help you.

Keep in mind that my solution caters to both being in a /mnt/* path, and also being in my symlink path.

When you make a symbolic link, as in: ln -s /mnt/c/Users/bar $HOME/bar and cd into that, the $PWD will reflect that.

.bashrc improvement

@shmup
shmup / irc.md
Created August 23, 2022 03:14 — forked from xero/irc.md
irc cheat sheet
View irc.md

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@shmup
shmup / twitch_hexchat.md
Last active February 4, 2023 16:24
How to connect to Twitch with HexChat (SSL)
View twitch_hexchat.md

HEXCHAT / TWITCH

Here's a method to chat in a twitch #channel with HexChat

  1. Get HexChat here (or your package manager): https://hexchat.github.io/

  2. Click Add and name it Twitch or whatever.

  3. Now click Edit and change the server/port up top to: irc.chat.twitch.tv/6697