Skip to content

Instantly share code, notes, and snippets.

View melcloud's full-sized avatar

Yin Zhang melcloud

View GitHub Profile
# .gitconfig
[includeIf "gitdir:~/codes/personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/codes/work/"]
path = ~/.gitconfig-work
[include]
path = ~/.gitconfig-extra
# gitconfig-work
[user]
% less .zshenv
ZDOTDIR="$HOME/.dotfiles/zsh"
. "$ZDOTDIR/.zshenv"
% less .zshenv
export EDITOR=vim
export AWS_DEFAULT_REGION=ap-southeast-2
export GPG_TTY="$TTY"
.zshrc
# Multi-stage Dockerfile for building many Java projects with Maven
# Dynamically discovers all POMs and caches dependencies efficiently
# Maven cache preparation stage - discovers and caches ALL dependencies
FROM maven:3.9-eclipse-temurin-17 AS maven-cache-prep
WORKDIR /workspace
# Install additional tools
RUN apt-get update && apt-get install -y git curl rsync findutils && rm -rf /var/lib/apt/lists/*