Skip to content

Instantly share code, notes, and snippets.

@claudioluciano
claudioluciano / tag_increment.sh
Created August 9, 2023 14:42
List all tags and increment the version in a repo with tags for packages
# This code will get the latest tag for a package and increment it by one.
# The function get_latest_tags will get all the tags for a package
# The function get_latest_tag_for_package will get the latest tag for a package
# Then the latest tag will be incremented by one using awk and sed
#!/bin/bash
get_latest_tags() {
git for-each-ref --sort=-taggerdate --format '%(refname:short)' refs/tags/*/**
}
@claudioluciano
claudioluciano / spoiler_obsidian.css
Created April 10, 2024 18:07
Obsidian - snippet to create spoilers on notes
.cm-active[data-task="#"] * {
display: initial;
}
.cm-active[data-task="#"]>label {
display: none
}
[data-task="#"]>* {
display: none;

Keybase proof

I hereby claim:

  • I am claudioluciano on github.
  • I am claudioluciano1 (https://keybase.io/claudioluciano1) on keybase.
  • I have a public key ASBUykjsN9S7UiCWOgKsImT0PQdkXP4N59_H6MUaj6M3Wwo

To claim this, I am signing this object: