Skip to content

Instantly share code, notes, and snippets.

@gforcedev
gforcedev / deutschify.ahk
Created June 3, 2020 09:30
Remap capslock to an umlaut modifier, which also turns s into ß
;Umlaut
#Persistent
SetCapsLockState, AlwaysOff
CapsLock & a::
GetKeyState, state, Shift
if state = U
SendInput {ASC 0228} ;CapsLock+a = lower case a-umlaut
else Send, {ASC 0196} ;CapsLock+Shift+a = UPPER CASE A-umlaut
return
@gforcedev
gforcedev / getIds.js
Created May 13, 2021 16:55
Get Ids from usernames with discord.js
getIds = () => {
const rsGuild = client.guilds.cache.get('<server-id>');
rsGuild.members.fetch()
.then(() => {
const lineReader = require('readline').createInterface({
input: require('fs').createReadStream('infile.txt')
});
lineReader.on('line', (line) => {