Skip to content

Instantly share code, notes, and snippets.

/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#49270a";
static const char normbgcolor[] = "#995522";
static const char normfgcolor[] = "#ffffff";
static const char selbordercolor[] = "#e30212";
static const char selbgcolor[] = "#49270a";
static const char selfgcolor[] = "#e30212";
@willnix
willnix / GmusicDL
Created August 6, 2011 22:35
GMusic Download
#!/usr/bin/env python
import sys,re,time,os
import urllib,urllib2,cookielib
import xml.dom.minidom
from ID3 import *
try:
import json
except ImportError,e:
@willnix
willnix / gist:5225036
Last active December 15, 2015 07:39
Natas 16
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"strings"
"sort"
@willnix
willnix / Semtex5.go
Last active August 29, 2019 18:03
Semtex5 - Using TOR and its control signal NEWNYM to establish 10 connections from different IP addresses
package main
import (
"fmt"
"github.com/hailiang/gosocks"
"io"
"net"
"os"
"strings"
"time"
@willnix
willnix / vortex0.go
Created March 26, 2013 23:52
vortex0
package main
import (
"bufio"
"encoding/binary"
"fmt"
"log"
)
type num [4]uint32
@willnix
willnix / keybase.md
Created November 12, 2014 16:05
keybase.md

Keybase proof

I hereby claim:

  • I am willnix on github.
  • I am willnix (https://keybase.io/willnix) on keybase.
  • I have a public key whose fingerprint is 5684 C0D8 2CBA 23F8 6586 46EA 9A53 2500 B675 2867

To claim this, I am signing this object:

@willnix
willnix / zombies2gpx.go
Last active April 22, 2016 13:48
Converts the JSON format used by "Zombies Run!" to GPX which can be imported in Runtastic.
package main
import (
"fmt"
"os"
"time"
"encoding/json"
"encoding/xml"
)
@willnix
willnix / blurma.js
Created March 20, 2017 13:59
BlurMa
// ==UserScript==
// @name BlurMa
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Blur latest Threema message preview
// @author Frieder Steinmetz
// @match https://web.threema.ch/*
// @grant none
// ==/UserScript==
@willnix
willnix / custom_http.py
Last active May 17, 2019 11:14
Slightly customized Python 3 HTTP Server
#!/usr/bin/env python3
from http.server import SimpleHTTPRequestHandler, HTTPServer
class CustomHTTPRequestHandler(SimpleHTTPRequestHandler):
def do_GET(self):
'''
Print request and call SimpleHTTPRequestHandler.do_GET()
to serve static files
'''
print(">"+"-"*40+"<")
@willnix
willnix / custom_ftp.py
Created May 17, 2019 11:22
Simple FTP server that accepts any credentials and logs the to stdout
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
from pyftpdlib.log import logger
HOMEDIR = "/var/ftp"
# Authorizer granting access to everyone and logging the credentials
class LoggingAuthorizer(DummyAuthorizer):
def validate_authentication(self, username, password, handler):