Skip to content

Instantly share code, notes, and snippets.

Avatar
🍍
" or 1 = 1; drop table users; -- :)

Jonas Jelten TheJJ

🍍
" or 1 = 1; drop table users; -- :)
  • @SFTtech & TU Munich
  • Munich, Germany, Europe, Earth, Solar System, Milky Way, Local Group, Virgo Supercluster, Laniakea, Universe
View GitHub Profile
@TheJJ
TheJJ / idracclient.py
Last active Jun 24, 2022
Dell iDRAC linux/mac/windows client launcher
View idracclient.py
#!/usr/bin/env python3
"""
Dell iDRAC client launcher for Linux, macOS and Windows.
probably works with Dell iDRAC 6/7/8
Downloads needed Java files and sets up port forwarding via SSH.
example usage: ./idracclient.py -J jumphost.lol.domain srv42-serviceprocessor.lol.domain
for more info, see ./idracclient.py --help
View ceph_fix_log_breakage.py
#!/usr/bin/env python3
"""
Ceph OSD log-overlap-missing crash fixer.
For a OSD that crashes, this tool finds the other OSD that causes the crash
and deletes (and exports :) the PG from it.
Supported assertions:
* src/osd/PGLog.cc PGLog::merge_log assert(log.head >= olog.tail && olog.head >= log.tail)
@TheJJ
TheJJ / templatedecode.py
Created Aug 21, 2017
c++ template error message decoder and colorizer
View templatedecode.py
#!/usr/bin/env python3
"""
C++ template error message decoder and colorizer.
Copyright (C) 2017 Jonas Jelten <jj@stusta.net>
Licensed under GNU GPLv3 or later.
"""
@TheJJ
TheJJ / defaultarglambdatemplatebug.cpp
Last active Aug 17, 2017
g++ compiler bug: linker error for a templated lambda function argument default
View defaultarglambdatemplatebug.cpp
// writing a templated lambda as a default value for a function argument
// causes linker errors if the function is templated two times,
// when the resulting lambda signature ends up being the same despite the function template is different.
//
// breaks with:
// g++ -std=gnu++14 -Wall -Wextra -pedantic test.cpp
//
// works with llvm:
// clang++ -std=gnu++14 -Wall -Wextra -pedantic test.cpp
@TheJJ
TheJJ / settings_menu_entries.md
Last active Feb 8, 2017 — forked from heinezen/settings_menu_entries.md
Entries in the openage settings menu
View settings_menu_entries.md

Settings Menu Entries for openage

Bold: Options from HD, UserPatch and Voobly

Italic: Options that will likely be in OpenAge

Normal: Nice-to-have features

General Game Settings

@TheJJ
TheJJ / sftca.pem.crt
Created Sep 22, 2015
[SFT]Trust root CA
View sftca.pem.crt
-----BEGIN CERTIFICATE-----
MIIGOzCCBCOgAwIBAgIJAJx3mMDajLXPMA0GCSqGSIb3DQEBBQUAMIGjMQswCQYD
VQQGEwIwMDEMMAoGA1UECAwDU0ZUMRIwEAYDVQQHDAlDb3JlYmxvY2sxGjAYBgNV
BAoMEVtTRlRdVGVjaG5vbG9naWVzMR8wHQYDVQQLDBZEYXJrIE1lc2EgTGFib3Jh
dG9yaWVzMRswGQYDVQQDDBJbU0ZUXVRydXN0IFJvb3QgQ0ExGDAWBgkqhkiG9w0B
CQEWCWNhQHNmdC5teDAeFw0xMjA5MjcwMzU0MjhaFw0yMjA5MjUwMzU0MjhaMIGj
MQswCQYDVQQGEwIwMDEMMAoGA1UECAwDU0ZUMRIwEAYDVQQHDAlDb3JlYmxvY2sx
GjAYBgNVBAoMEVtTRlRdVGVjaG5vbG9naWVzMR8wHQYDVQQLDBZEYXJrIE1lc2Eg
TGFib3JhdG9yaWVzMRswGQYDVQQDDBJbU0ZUXVRydXN0IFJvb3QgQ0ExGDAWBgkq
hkiG9w0BCQEWCWNhQHNmdC5teDCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC