Skip to content

Instantly share code, notes, and snippets.


Open Data Coder p3t3r67x0

View GitHub Profile


def delta_transform_point(matrix, point):
    dx = point['x'] * matrix['a'] + point['y'] * matrix['c'] + 0
    dy = point['x'] * matrix['b'] + point['y'] * matrix['d'] + 0

    return {'x': dx, 'y': dy}
p3t3r67x0 /
Last active May 16, 2020
Create a svg from truetype font with freetype and svgpathtools in python

Create a svg from truetype font in python

I am trying to create a svg file from a truetype font with freetype-py and svgpathtools. I have a working python code which generates the svg file but unfortunately there are some corners and edges where instead should be smooth curves. Here in this example I try to render an special char which does not look good at all.


What do I need to change in order to get curve symbols redered correctly?


p3t3r67x0 /
Created Dec 24, 2019 — forked from lmj0011/
Building and Loading the ReJSON Module on Linux Ubuntu 16.04 for Redis

make sure you have at least redis v4.0+

redis-server --version

redis-cli --version

install the build-essential package

apt-get install build-essential

p3t3r67x0 /
Created Dec 14, 2019 — forked from thomasfr/
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
# Allow connections to this package servers


Set wifi password by ssh connection

agent on
scan wifi
connect wifi_blah <= tab autocomplete works here
p3t3r67x0 /
Last active Mar 20, 2019
Simple programm to encrypt or decrypt a vigenere cipher text. See how to run this programm.

usage: [-h] [-d, --decrypt] [-e, --encrypt] -k, --key KEY
                   [-i, --in [INPUT]] [-o, --out [OUTPUT]]

Encrypt or decrypt a vigenere cipher text

optional arguments:
p3t3r67x0 /
Created Mar 2, 2019
SSHD deattack exploit. By Dvorak with Code from teso (

SSHD deattack exploit

First you need to download it from here. Then you must extract it.

tar zxvf 349.tgz
cd ssh
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
from lxml import html
def load_doc():
doc= requests.get('')
You can’t perform that action at this time.