Skip to content

Instantly share code, notes, and snippets.

View ObserverOfTime's full-sized avatar

ObserverOfTime

View GitHub Profile
@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active June 11, 2024 06:48
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
ObserverOfTime / WA2-Mac.md
Last active May 20, 2024 15:22
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:

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"url": "https://observeroftime.github.io/",
"name": "Ioannis Somos",
"label": "Cybersecurity MSc graduate",
"email": "chronobserver@disroot.org",
"summary": "Jack of all traits, master of Kotlin. Open Source enthusiast fixated on security.",
"location": {
"city": "Athens",
@ObserverOfTime
ObserverOfTime / css-inject.js
Last active March 3, 2024 04:46 — forked from 1j01/README.md
GitHub Desktop Dark Theme - NO LONGER MAINTAINED
/**
* 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
ObserverOfTime / WA2-Ubuntu.md
Last active February 11, 2024 07:05
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
@ObserverOfTime
ObserverOfTime / XCompose
Last active November 15, 2023 17:25
My XCompose configuration
# 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
<Multi_key> <minus> <asciitilde> : "〜" U301C # WAVE DASH
<Multi_key> <asciicircum> <asciitilde> : "〰" U3030 # WAVY DASH
<Multi_key> <j> <minus> : "ー" U3007 # KATAKANA-HIRAGANA PROLONGED SOUND MARK
@ObserverOfTime
ObserverOfTime / userContent.css
Created October 17, 2019 19:30
Dark new tab for Firefox
/* 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
ObserverOfTime / travis-ci-webhook.sh
Last active December 28, 2020 17:01
Travis CI Discord webhook
#!/bin/bash
if [[ -z $1 ]]; then
printf '[Webhook]: ERROR! Missing webhook URL argument.\n'
exit 1
fi
if [[ -n $2 ]]; then
LANG_VAL="$2"
LANG_REF="TRAVIS_${2^^}_VERSION"
@ObserverOfTime
ObserverOfTime / svgimagefield.py
Last active October 28, 2020 16:55 — forked from ambivalentno/svgimagefield.py
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):
"""
#!/bin/bash -e
###
# Semantic version comparison using semver specification http://semver.org/
# 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
#