Skip to content

Instantly share code, notes, and snippets.

View kinowarrior's full-sized avatar
🌴
On vacation

kinowarrior

🌴
On vacation
  • Japan
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@kinowarrior
kinowarrior / sort_cards.py
Created December 21, 2024 01:09 — forked from kiennguyen94/sort_cards.py
Script to sort the wanikani deck by level, radical, kanji, and vocab.
import os
from typing import List
from anki.storage import Collection
# the deck: https://ankiweb.net/shared/info/2072613354
# TODO replace YOUR_USER_NAME
col = Collection('/Users/{YOUR_USER_NAME}/Library/Application Support/Anki2/User 1/collection.anki2')
deck_id = col.decks.id('WaniKani')

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@kinowarrior
kinowarrior / darkify_slack.sh
Created June 12, 2019 22:34 — forked from ryanpcmcquen/darkify_slack.sh
Darkify your Slack.
#!/bin/sh
# Darkify Slack on Mac OS or Linux.
# curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh
if [ "`uname -s`" = "Darwin" ]; then
SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js"
else
SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js"
fi
@kinowarrior
kinowarrior / GitHub-Forking.md
Created May 21, 2019 04:03 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@kinowarrior
kinowarrior / introrx.md
Created May 4, 2019 08:45 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing