Skip to content

Instantly share code, notes, and snippets.

View unaimillan's full-sized avatar

Mike unaimillan

  • Russia, Innopolis
View GitHub Profile
@mdonkers
mdonkers / server.py
Last active November 15, 2024 20:01
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@odyssomay
odyssomay / gist:1078370
Created July 12, 2011 16:34
the longest java stacktrace I have seen
Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
at java.util.IdentityHashMap.get(IdentityHashMap.java:331)
at javax.swing.RepaintManager.extendDirtyRegion(RepaintManager.java:576)
at javax.swing.RepaintManager.addDirtyRegion0(RepaintManager.java:404)
at javax.swing.RepaintManager.addDirtyRegion(RepaintManager.java:468)
at javax.swing.JComponent.repaint(JComponent.java:4736)
at java.awt.Component.repaint(Component.java:3117)
at javax.swing.text.DefaultCaret.repaint(DefaultCaret.java:245)
at javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1261)
at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1170)