Skip to content

Instantly share code, notes, and snippets.


Mathias Stuhlmacher stuhli

  • Germany
View GitHub Profile
stuhli / gist:d9b3c2e3e2041a95e9e7f89d6fe8c7cc
Created Aug 17, 2020
Django - Reset primary key ID (SQL sequence combined with PostgreSQL database)
View gist:d9b3c2e3e2041a95e9e7f89d6fe8c7cc
(venv) $ python sqlsequencereset <APP_ANME> | python dbshell

Keybase proof

I hereby claim:

  • I am stuhli on github.
  • I am stuhli ( on keybase.
  • I have a public key whose fingerprint is 2491 1365 0B81 F88E 692E EB07 E803 D2AA A9E9 191B

To claim this, I am signing this object:

stuhli /
Created Aug 27, 2019 — forked from UniIsland/
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.
You can’t perform that action at this time.