Skip to content

Instantly share code, notes, and snippets.

View ShadowKyogre's full-sized avatar

ShadowKyogre

View GitHub Profile

Keybase proof

I hereby claim:

  • I am shadowkyogre on github.
  • I am shadowkyogre (https://keybase.io/shadowkyogre) on keybase.
  • I have a public key ASBdEHGsfD550WdpWiycXDeQgzrMmXniUIqvCavJIpRFjQo

To claim this, I am signing this object:

@ShadowKyogre
ShadowKyogre / main.py
Last active May 18, 2017 21:24
DnD 5e Stat Sheet Processor created by ShadowKyogre - https://repl.it/Hxsr/70
from ast import literal_eval
from collections import Counter, OrderedDict
from itertools import chain
import math
import yaml
## Constants
STATS = ('str', 'dex', 'con', 'int', 'wis', 'cha')
@ShadowKyogre
ShadowKyogre / blog-design-redo-manual-selectors.markdown
Last active August 16, 2016 23:33
Blog design redo - Manual Selectors
@ShadowKyogre
ShadowKyogre / fp_cfg.js
Last active August 14, 2016 15:58
Greasemonkey Utilities
var ConfigField = function(key, dfv, label, toNode) {
this.key = key;
this.dfv = dfv;
this.label = label;
this.toNode = toNode;
}
var Nodifiers = {
textarea: function() {
var node = document.createElement('textarea');
@ShadowKyogre
ShadowKyogre / test_case1.py
Last active July 13, 2016 19:53
Sphinx Theming Test Cases
'''
I AM A MODULE LEVEL DOCSTRING
.. topic:: Topic Title
Subsequent indented lines comprise
the body of the topic, and are
interpreted as body elements.
.. attention::
@ShadowKyogre
ShadowKyogre / README.md
Last active December 9, 2015 23:58
Experimental Compiz/Fusilli patches! Tread with caution!

Experimental Compiz/Fusilli patches

Welcome! You've likely stumbled across this wondering, "What the heck is this?"

It's a gist of all the patches I've applied to my personal copy of compiz (likely will try to port these to fusilli too). Here's what they do:

  • emerald_no_rmenu.patch: Disable the right-click menu in the decorations. It's rather unsightly since that menu is not as configurable as Compiz-Boxmenu. On an interesting note, when I disabled this, it also disabled Compiz showing
@ShadowKyogre
ShadowKyogre / termite2fbterm.sh
Last active December 4, 2015 00:09
termite -> fbterm escape codes. Could be extended to also handle porting Xdefaults too.
#!/bin/bash
for num in {0..15};do
color="$(grep "^color${num}\s\+" "${1:-${HOME}/.config/termite/config}"|grep -o "[0-9a-f]\{3,6\}$")"
rhex="${color:0:2}"
ghex="${color:2:2}"
bhex="${color:4:2}"
r="$((0x${rhex}))"
g="$((0x${ghex}))"
@ShadowKyogre
ShadowKyogre / cmus_edit_tags.sh
Created November 19, 2015 03:54
Some of my handy personal CMUS scripts
#!/bin/bash
file="$(cmus-remote -C 'echo {}')"
if [ -f "$file" ]
then
lxterminal -t "Editing tags for $file" -e ~/bin/mutagen_urwid.py "$file" &
else
echo "Oop, couldn't find selected track" >&2
fi
@ShadowKyogre
ShadowKyogre / README.md
Last active November 19, 2015 02:39
A Python3 frontend to mutagen (for ID3 tags only, since I needed something like mp3info -i, but less deficient)

Demonstration

asciicast

@ShadowKyogre
ShadowKyogre / batch_keys.sh
Last active April 22, 2017 20:09
Select multiple windows with slop. Needs slop, xwininfo, and xprop. Edit batch_keys.sh if you want to pass different params to the slop wrapper.
#!/bin/bash
happened=1
for window in $(recsel_windows.py -l -c 0,0.5,1,0.6)
do
happened=0
xdotool windowactivate --sync $window key "$1"
done
if [ $happened -a -n "$2" ];then