Skip to content

Instantly share code, notes, and snippets.


Open Data Coder p3t3r67x0

View GitHub Profile
p3t3r67x0 / vue_tailwindcss_candar.vue
Created Oct 13, 2020
Simple Vue Tailwindcss Calendar with Modal
View vue_tailwindcss_candar.vue
<div class="bg-white rounded shadow overflow-hidden">
<div class="flex items-center justify-between py-2 px-6">
<span class="text-lg font-bold text-gray-800">{{ monthNames[month] }}</span>
<span class="ml-1 text-lg text-gray-600 font-normal">{{ year }}</span>
<div class="border rounded-lg px-1" style="padding-top: 2px;">
<button type="button" class="leading-none rounded-lg transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 p-1 items-center" :class="{'cursor-not-allowed opacity-25': month == 0 }"
View create_index_cuchbase.sql
CREATE INDEX `md5_idx` ON `leakz`(`md5`);
CREATE INDEX `sha1_idx` ON `leakz`(`sha1`);
CREATE INDEX `sha224_idx` ON `leakz`(`sha224`);
CREATE INDEX `sha256_idx` ON `leakz`(`sha256`);
CREATE INDEX `sha384_idx` ON `leakz`(`sha384`);
CREATE INDEX `sha512_idx` ON `leakz`(`sha512`);
CREATE PRIMARY INDEX `primary_idx` ON `leakz`;
p3t3r67x0 / fulltext_idx.json
Last active Sep 18, 2020
curl -u admin:password -XPUT -H 'cache-control: no-cache' -H 'content-type: application/json' -d "$(cat fulltext_idx.json)"
View fulltext_idx.json
"type": "fulltext-index",
"name": "fulltext_idx",
"sourceType": "couchbase",
"sourceName": "leakz",
"planParams": {
"maxPartitionsPerPIndex": 171,
"indexPartitions": 6
"params": {
p3t3r67x0 /
Created Sep 13, 2020
GeForce GTX 1070 Ti - hashcat benchmark on Ubuntu 20.04 with CUDA 11

hashcat --benchmark --optimized-kernel-enable

hashcat (v6.1.1) starting in benchmark mode...

* Device #1: GeForce GTX 1070 Ti, 7730/8118 MB, 19MCU

OpenCL API (OpenCL 1.2 CUDA 11.0.228) - Platform #1 [NVIDIA Corporation]
p3t3r67x0 /
Last active Sep 13, 2020
A short story how I did build Tensorflow 2.3 from source on Ubuntu 20.4.1 LTS with CUDA 11.0.207

Building Tensorflow 2.3 from source on Ubuntu 20.4.1 LTS


ASUS ROG Strix GeForce GTX 1070 Ti 8GB


p3t3r67x0 / terminator.config
Created Aug 28, 2020
My Terminator config
View terminator.config
window_state = fullscreen
borderless = True
extra_styling = False
title_transmit_fg_color = "#729fcf"
title_transmit_bg_color = "#002b36"
title_receive_fg_color = "#eeeeec"
title_inactive_bg_color = "#002b36"


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