Skip to content

Instantly share code, notes, and snippets.

View zburgermeiszter's full-sized avatar
👨‍💻
Available for Remote DevOps Engineer positions

Zoltan Burgermeiszter zburgermeiszter

👨‍💻
Available for Remote DevOps Engineer positions
View GitHub Profile
@zburgermeiszter
zburgermeiszter / smtp.py
Created May 22, 2017 13:28
SMTP traffic generator (to speed up gmail smtp download)
#!/usr/bin/env python
import smtplib
from time import gmtime, strftime, sleep
from email.mime.text import MIMEText
smtpLogin = "user@host.com"
smtpPass = "password"
def sendmail():

Keybase proof

I hereby claim:

  • I am zburgermeiszter on github.
  • I am zburgermeiszter (https://keybase.io/zburgermeiszter) on keybase.
  • I have a public key whose fingerprint is 4D7F 722A C3B3 18D6 8BB6 E96B 902A 6CAB B4CE 0F39

To claim this, I am signing this object:

@zburgermeiszter
zburgermeiszter / SimpleHTTPServerWithUpload.py
Created February 6, 2017 00:08 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@zburgermeiszter
zburgermeiszter / intellij test access control exception.md
Created December 2, 2016 15:38
intellij test access control exception

Exception: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect.generics.repository")

Run/debug configuration VM optons: -ea -Dtests.security.manager=false

@zburgermeiszter
zburgermeiszter / ElasticSearch mapping examples
Last active September 5, 2018 09:27
ElasticSearch mapping examples
Content incomments
#src: http://stackoverflow.com/a/25896891
strtolower(preg_replace('/(?|([a-z\d])([A-Z])|([^\^])([A-Z][a-z]))/', '$1_$2', $input));
@zburgermeiszter
zburgermeiszter / JsonSerializableWithReflection.php
Last active September 10, 2020 18:40
PHP JsonSerializable with Reflection in Trait
<?php
trait JsonSerialize
{
function jsonSerialize()
{
$reflect = new ReflectionClass($this);
$props = $reflect->getProperties(ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE);
NAME
@zburgermeiszter
zburgermeiszter / import.sh
Created April 7, 2016 12:55
Import sql file to MariaDB in Docker
docker exec -i CONTAINER_ID /bin/bash -c "export TERM=xterm && mysql -proot -uroot database" < import.sql