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
@fwaechter
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
View 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 / ignorelist
Created Nov 21, 2014
Diablo 2 Ignorelist
View ignorelist
!!!!
!@@@
!@@
!###
!$$$
!%%%
!^^^
!&&&
!***
!**
View gist:7fd458d29a9ef05a3164
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
View gist:f324f856c7590b62e1a8
# 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()
View http return codes switch
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";
@fwaechter
fwaechter / say.html
Last active Sep 27, 2017
Simple Text2Speech Snippet in 10 Lines of JavaScript using URLSearchParams (not Supported in Internet Explorer): https://developer.mozilla.org/de/docs/Web/API/URLSearchParams
View say.html
<!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>
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.
#
View serverlist.js
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)
You can’t perform that action at this time.