Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am smiley on github.
  • I am smiley (https://keybase.io/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
smiley / README.md
Last active March 18, 2024 14:51
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 https://ifttt.com/ 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!
@smiley
smiley / osu-install.py
Created June 23, 2018 16:50
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
from winreg import HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, KEY_READ, KEY_WOW64_32KEY, KEY_WOW64_64KEY
RegistryKeyMetadata = namedtuple('RegistryKeyMetadata', ['root', 'path', 'value_name'])
@smiley
smiley / pcgamer.txt
Created July 2, 2018 21:00
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.
www.pcgamer.com jwpcdn.com * block
www.pcgamer.com jwplatform.com * block
www.pcgamer.com jwplayer.com * block
www.pcgamer.com jwpltx.com * block
www.pcgamer.com jwpsrv.com * block