Skip to content

Instantly share code, notes, and snippets.

@apenisoara
apenisoara / nexus_upload_raw_repo.sh
Created January 4, 2024 09:55 — forked from claudiosteuernagel/nexus_upload_raw_repo.sh
Nexus Raw Artifact upload using cURL
#Nexus Raw Artifact upload using cURL
curl --fail -u user:password --upload-file file.zip 'https:/nexus-repository.claudiosteuernagel.com/repository/my-raw-repo/my-directory/file.zip'
@apenisoara
apenisoara / git-change-author
Last active May 30, 2017 21:07 — forked from zapidan/git-change-author
Change previous commits author/email with filter-branch
## Make sure your local repo settings are correct
git config --local --list
git config --local user.name "author name"
git config --local user.email "name@example.com"
## Change previous n commits
git rebase -i HEAD~n --exec 'git commit --amend --author="First Last <foo@bar.com>"'
## if need to change starting from last pushed commit up to current commit, then no parameters needed:
git rebase -i ....
@apenisoara
apenisoara / tailstamp.sh
Created January 23, 2017 12:03
timestamps for `tail -f`
tail -f $* | perl -pe '$_ = localtime.": $_"'
@apenisoara
apenisoara / svn_prompt_cmd.sh
Last active August 29, 2015 14:03
Bash extra prompt for SVN
# Include SVN info in prompt, if possible
PROMPT_COMMAND=svn_prompt_cmd
svn_prompt_cmd() {
# The various escape codes that we can use to color our prompt.
RED="\e[0;31m"
GREEN="\e[0;32m"
BROWN="\e[0;33m"
BLUE="\e[0;34m"