Skip to content

Instantly share code, notes, and snippets.

View niteshvirani's full-sized avatar

Nitesh Virani niteshvirani

View GitHub Profile
@niteshvirani
niteshvirani / Dockerfile
Created January 10, 2019 06:52
Minimal Dockerfile for spring boot micro-service
FROM openjdk
MAINTAINER Nitesh Virani <[email protected]>
ADD target/service-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
@niteshvirani
niteshvirani / .gitconfig
Created February 10, 2019 04:54
Alias for ignoring files on git
#Exclude from the management of Git
git config --global alias.ignore 'update-index --skip-worktree'
#Restore to the management of Git
git config --global alias.unignore 'update-index --no-skip-worktree'
#HConfirm ignoged files
git config --global alias.ignored '!git ls-files -v | grep ^S'
@niteshvirani
niteshvirani / git-add-ssh-user-terminal.bash
Created February 11, 2019 08:57
Add ssh to the bash for another Git user
# start the ssh-agent in the background
eval $(ssh-agent -s)
# delete all cached keys before
ssh-add -D
# add key
ssh-add ~/.ssh/id_rsa_username