Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# This code was written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
# and is placed in public domain.
def v2fhelper(v, suff, version, weight):
parts = v.split(suff)
if 2 != len(parts):
return v
version[4] = weight
@mjsteinbaugh
mjsteinbaugh / git-submodules.md
Created April 1, 2019 21:47 — forked from slavafomin/git-submodules.md
Git submodules best practices

Git submodules best practices

Useful commands

— Clone repository with submodules automatically:

git clone --recursive git@github.com:name/repo.git

— Initialize submodules after regular cloning:

@mjsteinbaugh
mjsteinbaugh / DEPRECATED-private-fork.md
Last active February 26, 2019 13:44 — forked from 0xjac/private_fork.md
Create a private fork of a public repository
# I'm no longer using this approach.
#
# Instead, I encourage you to check out my transformer package.
# https://steinbaugh.com/transformer/
# https://github.com/steinbaugh/transformer/
#
# - M