Skip to content

Instantly share code, notes, and snippets.

@TheSunCat
TheSunCat / adapta-nokto.theme.css
Created May 29, 2022 20:44
Adapta Nokto Discord Theme
/**
* @name Adapta Nokto
* @author TheSunCat
* @version 1.0
* @description A theme to match the Adapta Nokto GTK theme.
*/
/* Thanks to https://github.com/emil1003/bd-Plata for syntax! */
/* Set base variables */
@TheSunCat
TheSunCat / usb-sounds-udev.md
Last active August 14, 2022 14:24
USB Sounds on Linux using udev!

This is an overview of how I configured my system to play a sound when a USB device (such as a flash drive) is plugged in.

Requirements

  • Linux install with udev and systemd.
  • Root access.
  • A utility to play sounds (I used aplay).
  • Sounds to play.

Playing a sound

Using the tool aplay (found in the Arch package alsa-utils), it is easy to play an audio file: aplay insert.wav

@TheSunCat
TheSunCat / DisblockOrigin.theme.css
Last active May 1, 2024 00:15
Hide all Nitro & Boost upsells in Discord!
/**
* @name Adblock for Discord
* @author TheSunCat and contributors
* @version 1.0.0
* @description Hide all Nitro & Boost upsells on Discord!
* @source https://gist.github.com/TheSunCat/58fedaa19d6154ef3e4b2b676c286906
*/
/* ------------------ */
/* Hide Nitro upsells */