Skip to content

Instantly share code, notes, and snippets.

View TheJJ's full-sized 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, Pisces–Cetus, Universe
View GitHub Profile
@TheJJ
TheJJ / receivefiles.py
Last active April 27, 2023 21:04
simple multi-file upload website for local file sharing - it queries a save location on the server interactively
#!/usr/bin/env python3
"""
Simple Multi-File upload.
Select files in the web browser - on the server machine a popup asks for the save location.
(c) 2023 Jonas Jelten <jj@sft.lol>
License: GPLv3
Needs:
@TheJJ
TheJJ / idracclient.py
Last active June 26, 2024 13:28
Dell iDRAC linux/mac/windows client launcher
#!/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
#!/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 August 21, 2017 02:34
c++ template error message decoder and colorizer
#!/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 August 17, 2017 16:28
g++ compiler bug: linker error for a templated lambda function argument default
// 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 February 8, 2017 11:45 — forked from heinezen/settings_menu_entries.md
Entries in the openage settings menu

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 September 22, 2015 11:48
[SFT]Trust root CA
-----BEGIN CERTIFICATE-----
MIIGOzCCBCOgAwIBAgIJAJx3mMDajLXPMA0GCSqGSIb3DQEBBQUAMIGjMQswCQYD
VQQGEwIwMDEMMAoGA1UECAwDU0ZUMRIwEAYDVQQHDAlDb3JlYmxvY2sxGjAYBgNV
BAoMEVtTRlRdVGVjaG5vbG9naWVzMR8wHQYDVQQLDBZEYXJrIE1lc2EgTGFib3Jh
dG9yaWVzMRswGQYDVQQDDBJbU0ZUXVRydXN0IFJvb3QgQ0ExGDAWBgkqhkiG9w0B
CQEWCWNhQHNmdC5teDAeFw0xMjA5MjcwMzU0MjhaFw0yMjA5MjUwMzU0MjhaMIGj
MQswCQYDVQQGEwIwMDEMMAoGA1UECAwDU0ZUMRIwEAYDVQQHDAlDb3JlYmxvY2sx
GjAYBgNVBAoMEVtTRlRdVGVjaG5vbG9naWVzMR8wHQYDVQQLDBZEYXJrIE1lc2Eg
TGFib3JhdG9yaWVzMRswGQYDVQQDDBJbU0ZUXVRydXN0IFJvb3QgQ0ExGDAWBgkq
hkiG9w0BCQEWCWNhQHNmdC5teDCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC