Skip to content

Instantly share code, notes, and snippets.

View ammaaim's full-sized avatar

Alex Balan ammaaim

View GitHub Profile
@ammaaim
ammaaim / gist:99c5b5e51e6ff8ac97a8
Created November 2, 2014 09:22
rm github branch
git push origin --delete <branch-name>
@ammaaim
ammaaim / printer-reset.cmd
Created September 19, 2014 14:15
reset windows spool service with queue cleaning
del %windir%\system32\spool\printers\*
net stop spooler
net start spooler
@ammaaim
ammaaim / 0_reuse_code.js
Created July 29, 2014 16:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ammaaim
ammaaim / shell-dir-exist
Created July 29, 2014 16:40
shell check if dir exist
# To check if a directory exists in a shell script you can use the following:
if [ -d "$DIRECTORY" ]; then
# Control will enter here if $DIRECTORY exists.
fi
#Or to check if a directory doesn't exist:
if [ ! -d "$DIRECTORY" ]; then