Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
ObserverOfTime / css-inject.js
Last active Mar 29, 2019 — forked from 1j01/
GitHub Desktop Dark Theme - NO LONGER MAINTAINED
View css-inject.js
* To apply the theme:
* 1) Open dev tools with CTRL + SHIFT + I
* 2) Go to the console
* 3) Paste the following code
* Note: You will have to do this again whenever Github Desktop updates
const fs = require('fs');
const path = require('path');
ObserverOfTime /
Last active Sep 5, 2019
Install and patch White Album 2 on Mac

Install and patch White Album 2 on Mac

This gist is deprecated. You can find the latest instructions here.

1: Japanese locale and fonts

Japanese locale should be enabled by default on Mac.

You can check by running:

ObserverOfTime /
Last active Jul 6, 2022
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

ObserverOfTime /
Last active Nov 6, 2020
Install and patch White Album 2 on Linux

For Ubuntu and other Debian-based distros

This gist is deprecated. You can find the latest instructions here.

1: Enable Japanese Locale

Check whether it's already enabled:

$ locale -a | grep ja
#!/bin/bash -e
# Semantic version comparison using semver specification
# This bash script compares pre-releases alphabetically as well
# returns 1 when A greater than B
# returns 0 when A equals B
# returns -1 when A lower than B
ObserverOfTime / userContent.css
Created Oct 17, 2019
Dark new tab for Firefox
View userContent.css
/* Dark new tab */
@-moz-document url("about:newtab") {
body {
background-color: #2A2A2E !important;
.top-site-outer .title span {
color: #F9F9FA !important;
.collapsible-section .section-title.grey-title,
.collapsible-section .section-title span {
ObserverOfTime /
Last active Oct 28, 2020 — forked from ambivalentno/
A form field to handle validation of image + svg.
from xml.etree import cElementTree as et
from django.core.exceptions import ValidationError
from django.forms import ImageField
class SVGImageField(ImageField):
"""A Django ImageField that accepts SVG images."""
def to_python(self, data):
ObserverOfTime /
Last active Dec 28, 2020
Travis CI Discord webhook
if [[ -z $1 ]]; then
printf '[Webhook]: ERROR! Missing webhook URL argument.\n'
exit 1
if [[ -n $2 ]]; then
ObserverOfTime / XCompose
Last active Mar 16, 2022
My XCompose configuration
View XCompose
# UTF-8 (Unicode) compose sequence
# {keys...} : "{glyph}" {unicode number} # {unicode name}
# Dashes & spaces {{{
<Multi_key> <asciicircum> <underscore> : "¯" U00AF # MACRON
<Multi_key> <minus> <minus> <period> : "–" U2013 # EN DASH
<Multi_key> <minus> <minus> <minus> : "—" U2014 # EM DASH
<Multi_key> <minus> <minus> <space> : "­" U00AD # SOFT HYPHEN
<Multi_key> <space> <space> : " " U00A0 # NO-BREAK SPACE
<Multi_key> <minus> <underscore> <minus> : "⍽" U237D # SHOULDERED OPEN BOX