Skip to content

Instantly share code, notes, and snippets.

Building amazing things

Daniel Malik fronbasal

Building amazing things
View GitHub Profile
operator operator_owned_restaurants
McDonald's Deutschland LLC 118
Autobahn Tank & Rast QSR GmbH 31
Willy Dany Restaurantbetriebsgesellschaft mbH & Co. Service KG 29
Systemgastronomie Christian Eckstein GmbH & Co. KG 28
Heinritzi GmbH & Co. Restaurant KG 28
Mike Kraft Systemgastronomie e. K. 15
Hubertus Elster e.K. Systemgastronomie 15
Frank Mosher Restaurants e.K.
fronbasal / regex.txt
Created Jul 22, 2020
Keycloak OIDC code regex expression for validation
View regex.txt
Regex: ^(\w{8}-([\w]{4}-){3}\w{12}\.?){3}$
Test code: 94eb4353-7f62-4b85-9da9-feb122230efe.69bc8ef8-e9bc-4f61-8d2f-353ccc866374.24e96d28-22cd-49e2-b2a1-c9cd4f32ad99
fronbasal /
Last active Jul 2, 2020 — forked from bmispelon/
A Django CBV mixin to make setting cookies easier.
from django.http import HttpRequest
class CookieMixin(object):
A CBV mixin that adds an `add_cookie` method on the view, allowing the user
to set cookies on the response without having direct access to the response
object itself.
Example usage::
class SomeFormView(CookieMixin, FormView):
fronbasal /
Created Jun 28, 2020
InverseBackoff for Python
import time
class InverseBackoff:
def __init__(self, condition, initial=20, minimum=1):
:param initial: Initial time in seconds
self.minimum = minimum
assert callable(condition), "Condition has to be a callable"
fronbasal /
Created Jun 4, 2020
Akamai's Bot Manager SDK & PerimeterX deobfuscation
# Dictionary not included, take from Akamai's script.
# Works on bmak.ver == 1.5.4
dictionary = []
def resolve(match):
return '"' + dictionary[int(] + '"'
if __name__ == "__main__":
# Save the BMAK Javascript to source.js
fronbasal / source.js
Created May 31, 2020
Akamai Bot Manager SDK - Client SDK (Web) - Deobfuscated
View source.js
'use strict';
/** @type {!Array} */
var _ac = ["aj_indx_tact", "bind", "driver", "doe_cnt", "mousedown", "Batang", "clientHeight", "emit", "indexOf", "enReadDocUrl", "Palatino", "fpValstr", "onpointerup", '"', "dm_en", "/get_params", "rVal", "return/*@cc_on!@*/!1", "-1,2,-94,-70,", "http://", "storage", "", "onkeypress", "navigator", "mn_update_challenge_details", "keydown", "spawn", "bm-telemetry", "y1", "-1,2,-94,-121,", "mediaDevices", "fillText", "mn_ct", "requestWakeLock", "Noto", "=", "//", "rotationRate", "call", "mn_mc_lmt",
"toLowerCase", "uar", "Palatino-Bold", "arc", "-1,2,-94,-120,", "td", "unk", "z", "devicemotion", "gf", "push", ":", "TI-Nspire", "Edge PDF Viewer", "dme_cnt_lmt", "prototype", "hpu", "hku", "hkd", "mn_ts", "mn_tout", "Version/4.0", "non:", "sensor_data", "display", "getFloatVal", "sort", "ambient-light-sensor", "number", "~", "WebKit-integrierte PDF", "RTCPeerConnection", "0a46G5m17Vrp4o4c", "now", "value", "iPad;", "map", "GET", "mme_cnt", "msHidden", "vc", "||", "-1,2,-94,-
fronbasal /
Created Dec 6, 2019
Simple concurrent proxy checker in Python
from datetime import datetime
from multiprocessing.pool import Pool
from typing import Optional, Type, Dict
import requests
from requests.exceptions import ProxyError, Timeout, SSLError, ConnectionError
class Proxy(object):
def __init__(self, protocol, proxy_address, is_valid=True):
fronbasal / pr0pol.js
Created Sep 17, 2018
Make pr0gramm usable again. Filter all politics/far-right content.
View pr0pol.js
// ==UserScript==
// @name Pr0Pol
// @author fronbasal
// @description Pr0gramm politics filter
// @include*
// @match*
// @version 0.1
// @run-at document-end
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am fronbasal on github.
  • I am fronbasal ( on keybase.
  • I have a public key whose fingerprint is 0CD0 E229 DA22 4C4A 7560 4E6F A9F6 A553 F4CC F339

To claim this, I am signing this object:

View kickstart.ks
url --url
lang en_US.UTF-8
keyboard de
network --onboot yes --bootproto dhcp
timezone --utc Europe/Berlin
firstboot --disabled
selinux --disabled
You can’t perform that action at this time.