Skip to content

Instantly share code, notes, and snippets.

Jeff Belback JeffBelback

Block or report user

Report or block JeffBelback

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View diff-branch.sh
function diff-branch() {
if [ -z $1 ]; then
echo please provide an branch
read WORKBRANCH
else
WORKBRANCH=$1
fi
if [ -z $2 ]; then
STABLEBRANCH='master'
@JeffBelback
JeffBelback / makepdf.bat
Last active Nov 14, 2015
Latex Preables
View makepdf.bat
@ECHO OFF
set texfile=%1
if not exist bin mkdir bin
pdflatex -synctex=1 -interaction=nonstopmode -output-directory=bin -aux-directory=bin -shell-escape %texfile%.tex
move /y .\bin\%texfile%.log .\%texfile%.log
@JeffBelback
JeffBelback / docker-destroy-all.sh
Last active Jan 9, 2020
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/bin/bash
# Stop all containers
containers=`docker ps -a -q`
if [ -n "$containers" ] ; then
docker stop $containers
fi
# Delete all containers
containers=`docker ps -a -q`
if [ -n "$containers" ]; then
docker rm -f -v $containers
You can’t perform that action at this time.