Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am smiley on github.
  • I am smiley ( on keybase.
  • I have a public key whose fingerprint is 47AF 1E25 ACFD 024E 2021 EC09 22F8 369D 8E3F ABB0

To claim this, I am signing this object:

smiley /
Created Jun 23, 2018
Install osu! beatmaps (.osz) without launching osu! (but requiring a refresh), by plainly extracting them into the songs folder.
from collections import namedtuple
import json
import os
import sys
import zipfile
import winreg
RegistryKeyMetadata = namedtuple('RegistryKeyMetadata', ['root', 'path', 'value_name'])
smiley / pcgamer.txt
Created Jul 2, 2018
Collection of dynamic rules for blocking autoplay video ads on a variety of sites. Completely disables said video (no option to play/load), so don't use these if you really do want to watch them.
View pcgamer.txt * block * block * block * block * block
smiley /
Last active Nov 13, 2021
How to make an automatic "stream's live" notification for your Discord server

Making an automatic Twitch -> Discord notification (using IFTTT)

So you went live and you want everyone to know. Here's how you do it:

Part 1 - Register on IFTTT

Go to and create an account (if you don't already have one)

Part 2 - Make a Discord Webhook

  • Find the Discord channel in which you would like to send Tweets.
  • In the settings for that channel, find the Webhooks option and create a new webhook. Note: This URL should be kept private. It allows anyone to write messages to that specific channel using that specific URL. Keep it safe!