Skip to content

Instantly share code, notes, and snippets.

const { Client } = require('discord.js');
const client = new Client();
const token = 'dein user token hier: https://discordhelp.net/discord-token';
client.on('ready', () => {
console.log("Servers:")
client.guilds.forEach((guild) => {
console.log(" - " + guild.name)
# Below we construct a large but non-exhaustive list of names which
# users probably should not be able to register with, due to various
# risks:
#
# * For a site which creates email addresses from username, important
# common addresses must be reserved.
#
# * For a site which creates subdomains from usernames, important
# common hostnames/domain names must be reserved.
#
@fwaechter
fwaechter / say.html
Last active September 27, 2017 18:06
Simple Text2Speech Snippet in 10 Lines of JavaScript using URLSearchParams (not Supported in Internet Explorer): https://developer.mozilla.org/de/docs/Web/API/URLSearchParams
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Text2Speech</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
private:
const char* getStatusCodeString(int code) {
switch (code) {
case 100: return "Continue";
case 101: return "Switching Protocols";
case 102: return "Processing";
case 200: return "OK";
case 201: return "Created";
case 202: return "Accepted";
case 203: return "Non-Authoritative Information";
# mumbledj -server=mumble.example.net -port=11900 -username=MumbleDJ -channel=Jukebox
Configuration successfully loaded!
panic: Song download failed.
goroutine 27 [running]:
runtime.panic(0x737180, 0xc20810abc0)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
main.(*mumbledj).OnSongFinished(0xbfd0e0)
/root/mumbledj/main.go:99 +0x10f
main.*mumbledj.OnSongFinished·fm()
mumbledj -server=mumble.example.net -port=11900 -username=MumbleDJ -channel=Jukebox
Configuration successfully loaded!
panic: runtime error: index out of range
goroutine 20 [running]:
runtime.panic(0x772540, 0xbe30bc)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
main.add(0xc208037578, 0x8, 0xc208090784, 0x1b, 0x0, 0x0, 0x0, 0x0)
/root/mumbledj/commands.go:158 +0x391
@fwaechter
fwaechter / ignorelist
Created November 21, 2014 23:37
Diablo 2 Ignorelist
!!!!
!@@@
!@@
!###
!$$$
!%%%
!^^^
!&&&
!***
!**
@fwaechter
fwaechter / kaa.py
Last active August 29, 2015 14:10 — forked from maxcountryman/kaa.py
import gevent
from gevent import socket, queue
from gevent.ssl import wrap_socket
import logging
logger = logging.getLogger('irc')
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
@fwaechter
fwaechter / gist:8795472
Created February 4, 2014 00:45
PyAudio Example: Make a wire between input and output (i.e., record a few samples and play them back immediately).
"""
PyAudio Example: Make a wire between input and output (i.e., record a
few samples and play them back immediately).
This is the callback (non-blocking) version.
"""
import pyaudio
import time