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 / inspector-only-black-text.css
Last active January 5, 2018 05:22
A userContent.css file for Firefox that fixes sites that don't cooperate well with dark color schemes. So far, not all the cases are covered. Added a fix for the css inspector in firefox so it would use saner colors.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.ruleview {
color: black;
}
@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 / 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
@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 / PKGBUILD
Created March 26, 2013 22:13
Updated PKGBUILD and patch to make lp work for printing
# Contributer: giacomogiorgianni@gmail.com
pkgname=pdfviewer
pkgver=0.7
pkgrel=3
pkgdesc="Lightweight Qt-only PDF viewer"
arch=('i686' 'x86_64')
url="http://opendesktop.org/content/show.php/Pdf+Viewer?content=149637"
license=('GPL')
depends=('qt4' 'poppler-qt')
@ShadowKyogre
ShadowKyogre / add_text_and_page_bg_config.patch
Last active December 10, 2015 21:58
Since the colors white for the bg and black for the text are hard coded, I decided to switch around some things in order to make thos colors configurable.
diff -aur openastro.org-1.1.38.orig/openastro openastro.org-1.1.38/openastro
--- openastro.org-1.1.38.orig/openastro 2013-01-09 16:45:06.459729587 -0800
+++ openastro.org-1.1.38/openastro 2013-01-09 17:50:34.637738525 -0800
@@ -49,7 +49,10 @@
VERSION='1.1.38'
#directories
-DATADIR=os.path.join(sys.prefix,'share','openastro.org')
+if LOCAL:
+ DATADIR=os.path.dirname(__file__)
@ShadowKyogre
ShadowKyogre / getpython.sh
Created January 7, 2013 07:06
Bored, so I wrote this possibly pointless script. Basically, it takes input arguments like this: getpython.sh 3 0 3
#!/bin/sh
for i in $(seq "$2" "$3")
do
which "python${1}.${i}" && exit 0
done
which "python${1}" || echo "$PYTHONBIN"