Skip to content

Instantly share code, notes, and snippets.

Avatar

Avishay Zarad avshyz

  • Singular Labs Inc.
  • Tel Aviv
View GitHub Profile
@avshyz
avshyz / snippet.zsh
Last active Jun 24, 2020
[K8s UI Deploy] #kube
View snippet.zsh
docker build -t $K8REP/ui-app . &&\
docker push $K8REP/ui-app &&\
kubectl rollout restart deployment ui &&\
kubectl rollout status deployment ui
@avshyz
avshyz / dotinstall.zsh
Last active Jun 2, 2020
install dotfiles
View dotinstall.zsh
git clone --bare https://bitbucket.org/durdn/cfg.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";
You can’t perform that action at this time.