Skip to content

Instantly share code, notes, and snippets.

View davidfergo's full-sized avatar

David Fernández González davidfergo

View GitHub Profile
@davidfergo
davidfergo / bulkRenGitTags.sh
Last active January 16, 2020 16:05
Bulk rename tags in git
# Rename tags named myapp-#.#.# to #.#.# and push the tag changes
git tag -l |grep ^myapp- | while read t; do n="${t##*-}"; git tag $n $t; git push --tags ; git tag -d $t; git push origin :refs/tags/$t ; done
@davidfergo
davidfergo / bcrypt.groovy
Last active August 21, 2019 14:27
Script to generate bcrypt values in command line for use in Java apps
#!/usr/bin/env groovy
import at.favre.lib.crypto.bcrypt.BCrypt
@Grapes(
@Grab(group='at.favre.lib', module='bcrypt', version='0.7.0')
)
public class bcrypt {
public static void main(String[] args) {