Skip to content

Instantly share code, notes, and snippets.

@zakx
zakx / userscript.js
Last active December 28, 2019 15:06
Userscript to remove "at scale" from websites
// ==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 September 19, 2016 00:51
ghetto mbimcli --query-ip-configuration IP information parser to create iproute2 + resolvconf configuration
#!/bin/bash
DEV="wwp0s20f0u3i12"
ARG="$1"
previous_state="none"
state="start"
skip_line=0
ipv4_addresses=()
ipv4_gateway=""
### 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
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 December 16, 2015 21:34
Icinga/nagios check for FSFE meetups @ chaosdorf
#!/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
@zakx
zakx / damazon.py
Last active August 30, 2020 00:01 — forked from trehn/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 June 19, 2014 12:24
irssi log format to CSV converter
# encoding: utf-8
"""
not handled:
* nick changes
* topic changes
* mode changes
"""
import csv
@zakx
zakx / ssltest.py
Created April 8, 2014 14:38
heartbleed tester
#!/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
#!/usr/bin/python
# setup: pip install requests beautifulsoup4
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
import sys
import getpass