Skip to content

Instantly share code, notes, and snippets.

View ShadowKyogre's full-sized avatar

ShadowKyogre

View GitHub Profile
@ShadowKyogre
ShadowKyogre / lunifybg-wpd
Last active December 10, 2015 13:08
wallpaperd version of lunifybg by Xyne: https://bbs.archlinux.org/viewtopic.php?id=155540
#!/bin/sh
if [[ -d "$XDG_CACHE_HOME" ]]
then
mkdir -p "$XDG_CACHE_HOME"
fi
cd -- "$XDG_CACHE_HOME"
# Use a subdirectory to save images of the moon. It's interesting to cycle
# through them with feh to see it move.
@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 / volumes_cc.py
Last active December 10, 2015 00:28
An attempt at modifying the default volumes plugin for kupfer to allow it to be more modular (as in only using gio for the unmount checks, which the unmount command actually handles the unmount).
__kupfer_name__ = _("Volumes and Disks (Custom Unmount)")
__kupfer_sources__ = ("VolumesSource", )
__description__ = _("Mounted volumes and disks")
__version__ = ""
__author__ = "Ulrik Sverdrup <[email protected]>, Sapphira Armageddos <[email protected]>"
import gio
from kupfer.objects import Action, Source, FileLeaf
from kupfer.obj.fileactions import Open, OpenTerminal
@ShadowKyogre
ShadowKyogre / openastro_portability.patch
Created June 30, 2012 21:58
Improved portability for openastro
diff -aur openastro.org_1.1.25.orig/openastro.py openastro.org_1.1.25.modified/openastro.py
--- openastro.org_1.1.25.orig/openastro.py 2011-09-28 00:17:43 -0700
+++ openastro.org_1.1.25.modified/openastro.py 2012-06-30 14:54:31 -0700
@@ -19,7 +19,7 @@
#basics
import math, sys, os.path, datetime, socket, gettext, codecs, webbrowser
-
+import tempfile
#copyfile
@ShadowKyogre
ShadowKyogre / gist:3006776
Created June 27, 2012 20:52 — forked from knu/gist:111055
How to mass-rename tags and push them with Git
# Rename tags named foo-bar-#.#.# to v#.#.# and push the tag changes
git tag -l | while read t; do n="v${t##*-}"; git tag $n $t; git push --tags ; git tag -d $t; git push origin :refs/tags/$t ; done