Skip to content

Instantly share code, notes, and snippets.

View dsteinberger's full-sized avatar

Steinberger David dsteinberger

View GitHub Profile
@dsteinberger
dsteinberger / update_date.py
Last active October 20, 2020 11:29
Update created and updated date from data from Google's takeout from json file and delete json file.
"""
Update created and updated system date from data from Google's takeout from json file
and delete json file.
Change the PATH_TO_SCAN and execute this script.
Sometimes we have missing files from takeout (see error logs)
"""
import glob
import os
import json
@dsteinberger
dsteinberger / prepare-commit-msg
Last active May 26, 2021 12:48
Prefill the commit message by the branch name
#!/usr/bin/env python3
# Prefill the commit message + create changelog file by the branch name
# eg.:
# branch-name = PRO-<num ticket>-<type ticket>-<main subject>-<message>
# Type ticket: can be bugfix, tech, enhancement, other
# Eg.: PRO-1234-tech-document-split-size
# --> commit message: Refs #PRO-1234 - document: split size
# --> create file: PRO-1234-tech-document-split-size.tech