Skip to content

Instantly share code, notes, and snippets.

@tetafro
tetafro / Overwrite Kafka offsets
Last active November 24, 2020 09:18
Overwrite Kafka consumer group offsets
Naming file
@tetafro
tetafro / Add line to all files in directory
Created February 26, 2019 12:18
Iterate over all files in directory and add a line between the 1st and the 2nd
Naming file
@tetafro
tetafro / Find corrupted row in PostgreSQL
Created March 23, 2017 12:13
Iterate over table rows to find corrupted one
Naming file
@tetafro
tetafro / Django token auth backend
Last active April 5, 2023 17:25
Django token auth backend
Naming file
@tetafro
tetafro / Python requests example
Created November 9, 2016 08:10
Python requests example - auth cookie and download file
Naming file
@tetafro
tetafro / THREE.js example
Last active September 28, 2016 12:03
Rendering cube with THREE.js
Naming file
@tetafro
tetafro / Go custom JSON marshal-unmarshal
Last active June 22, 2019 17:23
Example for changing default JSON marshalling-unmarshalling
Naming file
@tetafro
tetafro / Bash autocompletion
Last active September 8, 2016 10:45
Tab autocompletion for Bash scripts
Naming file
@tetafro
tetafro / Bash login notification
Last active September 8, 2016 10:15
Email notification about logged in user
Naming file
@tetafro
tetafro / Bash progressbar
Created August 21, 2016 14:09
Bash script template with progressbar
Naming file