Skip to content

Instantly share code, notes, and snippets.

View lavish10's full-sized avatar
🎯
Focusing

Lavish Yadav lavish10

🎯
Focusing
View GitHub Profile
@lavish10
lavish10 / workflows.yml
Created May 8, 2020 07:07
Github Actions workflow for Gradle build and deploy
# This workflow will build a Java project with Gradle and deploy it on server
# deploy.sh will take the given parameters and perform the necessary operations, deploy.sh runs `docker-compose pull` and `docker-compose up -d`
name: Java CI with Gradle
on:
push:
branches: [ master ]
@lavish10
lavish10 / Fragment
Created April 5, 2020 18:20 — forked from dannygsmith/Fragment
Setting up a Mac for development
# Homebrew and Cask
Install the XCode command line tools by running `xcode-select --install` in the terminal.
Install Homebrew by following the instructions on the [homebrew website](http://brew.sh).
Install Cask by following the instructions on the [cask website](https://caskroom.github.io).
# Applications
@lavish10
lavish10 / .zshrc
Created December 6, 2019 06:13
~/.zshrc - for use along with the "fresh_install_of_osx" file - to automtically configure omz plugins and settings.
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@lavish10
lavish10 / .zshrc.pre-oh-my-zsh
Created December 6, 2019 06:12
Companion to ~/.zshrc
load_file_if_exists "$HOME/.aliases"
#setopt emacs
if [[ "$OSTYPE" = darwin* ]] ; then
setopt inc_append_history hist_ignore_all_dups hist_ignore_dups hist_allow_clobber hist_reduce_blanks share_history autocd beep extendedglob
fi
#setopt auto_list list_ambiguous
if [[ "$OSTYPE" = darwin* ]] ; then
@lavish10
lavish10 / .aliases
Last active April 28, 2020 17:39
~/.aliases
alias path='echo -e ${PATH//:/\\n}'
alias vi="vim"
alias ping="prettyping --nolegend"
alias less="less -S"
alias cat='bat'
alias top='htop'
alias du="ncdu --color dark -rr -x --exclude .git --exclude .svn --exclude .asdf --exclude node_modules"
# Git commands
alias st="git st"