Skip to content

Instantly share code, notes, and snippets.

@zakx
zakx / userscript.js
Last active Dec 28, 2019
Userscript to remove "at scale" from websites
View userscript.js
// ==UserScript==
// @name drop "at scale"
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author zakx
// @match http://*/*
// @match https://*/*
// @grant none
// ==/UserScript==
@zakx
zakx / mbimcli_ip_parser.sh
Created Sep 19, 2016
ghetto mbimcli --query-ip-configuration IP information parser to create iproute2 + resolvconf configuration
View mbimcli_ip_parser.sh
#!/bin/bash
DEV="wwp0s20f0u3i12"
ARG="$1"
previous_state="none"
state="start"
skip_line=0
ipv4_addresses=()
ipv4_gateway=""
View messagesnoop-main.py
### Category: Comms
### Author: zakx <zakx@koeln.ccc.de>
### License: MIT
### Appname: Message Snoop
### Description: Have no friends? Receive other people's messages
import wifi
import mqtt
import ugfx
import pyb
View schwarz.py
from PIL import Image, ImageDraw, ImageFont
font = ImageFont.truetype("MesloLGSDZ-Regular.ttf", size=12)
for i in range(180, 254):
im = Image.new(mode="1", size=(i, i))
draw = ImageDraw.Draw(im)
draw.rectangle([0, 0, i, i], fill="black")
draw.text((50, 50), "i: {}".format(i), font=font, fill="white")
@zakx
zakx / check_fsfe.sh
Created Dec 16, 2015
Icinga/nagios check for FSFE meetups @ chaosdorf
View check_fsfe.sh
#!/bin/zsh
fsfe=0
for j in {1..7}; do
month=$(date +"%m")
date=$(date -d "$month/1 + 1 month - $j day" +"%w %F")
if [ ${date:0:1} -eq 3 ]; then
fsfe=${date:2}
fi
done
View damazon.py
#!/usr/bin/python2
# setup: pip install requests beautifulsoup4
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
import sys
# Session setup
@zakx
zakx / log2csv.py
Created Jun 19, 2014
irssi log format to CSV converter
View log2csv.py
# encoding: utf-8
"""
not handled:
* nick changes
* topic changes
* mode changes
"""
import csv
@zakx
zakx / ssltest.py
Created Apr 8, 2014
heartbleed tester
View ssltest.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
View damazon.py
#!/usr/bin/python
# setup: pip install requests beautifulsoup4
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
import sys
import getpass