Skip to content

Instantly share code, notes, and snippets.

Flavio Wächter fwaechter

Block or report user

Report or block fwaechter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View serverlist.js
const { Client } = require('discord.js');
const client = new Client();
const token = 'dein user token hier:';
client.on('ready', () => {
client.guilds.forEach((guild) => {
console.log(" - " +
View arbitrary-usernames.txt
# 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 / say.html
Last active Sep 27, 2017
Simple Text2Speech Snippet in 10 Lines of JavaScript using URLSearchParams (not Supported in Internet Explorer):
View say.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
View http return codes switch
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";
View gist:f324f856c7590b62e1a8
# mumbledj -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
/root/mumbledj/main.go:99 +0x10f
View gist:7fd458d29a9ef05a3164
mumbledj -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 / ignorelist
Created Nov 21, 2014
Diablo 2 Ignorelist
View ignorelist
import gevent
from gevent import socket, queue
from gevent.ssl import wrap_socket
import logging
logger = logging.getLogger('irc')
ch = logging.StreamHandler()
fwaechter / gist:8795472
Created Feb 4, 2014
PyAudio Example: Make a wire between input and output (i.e., record a few samples and play them back immediately).
View gist:8795472
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
You can’t perform that action at this time.