Skip to content

Instantly share code, notes, and snippets.

View timonviola's full-sized avatar
🌚

Timon Viola timonviola

🌚
View GitHub Profile
@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
@timonviola
timonviola / release.sh
Created October 3, 2022 14:34
semver release script for python project
# Updates the
# 1 git version tag,
# 2 project/__init__.py __version__ attribute and
# 3 tests/test_project.py
# 4 pushes the chanes, new tags to remote
# The script makes sure that the new tag is semver2.0 compliant and checks if the new
# version is higher than the latest tag on remote.
#
# To use this, replace the remote URI and the `project` `test_project.py` hardcoded names.
#
@lestoni
lestoni / gist:8c74da455cce3d36eb68
Last active September 17, 2025 12:58
vim folding cheatsheet

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.