Skip to content

Instantly share code, notes, and snippets.

View umnagendra's full-sized avatar

Nagendra Mahesh umnagendra

View GitHub Profile
@umnagendra
umnagendra / build.gradle
Created December 22, 2020 18:35
Gradle - Generate Graphviz / PlantUML dependency graph among multi-module projects
# Inspired by https://gist.github.com/tzachz/419478fc8b009e953f5e5dc39f3f3a2a
## INSTRUCTIONS
#
# 1. Place this in build.gradle of root project
# 2. Execute `gradle projectDependencyGraph` - A new file called `project-dependencies.puml` will be generated in the current directory
# 3. Render the PUML file to get a directed graph illustrating dependencies among project modules under the root project
#
##
task projectDependencyGraph {
@umnagendra
umnagendra / Dockerfile
Last active January 21, 2020 03:37
Spring Boot Demo as a Docker Container
FROM ubuntu:latest
RUN apt-get update \
&& apt-get -y install openjdk-8-jdk \
&& apt-get -y install git \
&& mkdir -p /src \
&& cd /src \
&& git clone https://github.com/buzypi/spring-boot-hello.git \
&& cd spring-boot-hello \
&& ./mvnw clean install \
@umnagendra
umnagendra / docker_microservices_training_notes.md
Last active January 21, 2020 05:14
Docker + Microservices Training - Jan 2020
@umnagendra
umnagendra / download.sh
Created January 19, 2020 06:34
Downloader Script
#!/bin/bash
readonly START_NUM=90000
readonly END_NUM=90300
function download() {
curl -v -O --fail http://file-cdn.example-cdn.download/jkkkdsfdsggffsdhfghgfdfghgkfjgh/files/${1}.mp4
rc=$?
if [ ${rc} != 0 ]; then
curl -v -O --fail http://file-cdn.example-cdn.download/jkkkdsfdsggffsdhfghgfdfghgkfjgh/files/${1}.mp4
@umnagendra
umnagendra / git_reauthor.sh
Created October 1, 2017 22:27
Changing the Git history of your repository using a script (https://help.github.com/articles/changing-author-info/)
#!/bin/sh
## https://help.github.com/articles/changing-author-info/
## https://stackoverflow.com/a/30737248/438108
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"