Skip to content

Instantly share code, notes, and snippets.

View elken's full-sized avatar

Ellis Kenyő elken

View GitHub Profile
@JohnnyJayJay
JohnnyJayJay / discljord-slash-commands.md
Last active January 10, 2025 19:08
Quick primer for slash commands in discljord

Working with Slash Commands in discljord

At the end of 2020, Discord introduced a new feature that is available to bots: Slash Commands.
Slash Commands belong to a new feature category called "Interactions" which finally allows bots to enhance the Discord UI. As such, the way slash commands (and upcoming interactions such as clickable buttons aka. "components") work is quite different from other parts of the API.

What exactly are Slash Commands?

Slash commands are Discord entities that you can create, edit and delete through requests. Registered commands have a name and a description and are accessible in Discord clients by typing /name.
There are two types of commands: guild and global. As the names indicate, commands of the former type are only accessible in one specific guild

@jmatsushita
jmatsushita / README
Last active June 28, 2025 11:41
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
###
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places.
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of
###. things to watch out for:
### - Check out the `nix-darwin` instructions, as they have changed.
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026
###
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.
@matthewpi
matthewpi / README.md
Last active June 28, 2025 10:08
Nix on Fedora

NixOS on Fedora

Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.

These steps may not be required if NixOS/nix#2374 is resolved.

SELinux

These commands are required for both Fedora Workstation and Fedora Silverblue

@techtycho
techtycho / tagswitch.md
Last active May 7, 2025 13:30
Adding Fancy Tag Switch Effects In AwesomeWM

Adding Fancy Tag Switch Effects In AwesomeWM

tagswitch

Before We Begin

First of all, you need to have AwesomeWM installed and running. I'm using awesome-git, the development release. I'm not sure whether this would work on the stable release.