Skip to content

Instantly share code, notes, and snippets.

@ozomer
ozomer / embla_time_fixer.py
Created March 10, 2022 20:55
Embla Time Fixer
#!/usr/bin/env python3
# Inspired from https://github.com/bwrc/embla-r
from datetime import datetime
from glob import glob
import os.path
import re
import struct
@ozomer
ozomer / .gitconfig
Last active March 1, 2022 07:56
Useful Gitconfig Aliases
# ISC License
# Copyright 2022 Hysolate
# Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
edit-first-pick = "!f() { sed -i \"0,/^pick /s/^pick /edit /\" \"$1\"; }; f"
rebase-ifirst = "!f() { git -c core.editor=\"git edit-first-pick\" rebase -i \"$1\"; }; f"
config-user = "!f() { git config --global user.name \"$1\" ; git config --global user.email \"$2\"; }; f"
encoded-b