Skip to content

Instantly share code, notes, and snippets.

View nitrocode's full-sized avatar
🚀
Thinking and typing

RB nitrocode

🚀
Thinking and typing
View GitHub Profile
#!/usr/bin/python
# addmount.py
#
# This will add a shared drive using a given password. Only requirement is pexpect which can be downloaded using apt-get or pip
#
# - password contains $ and ! marks that need to be escaped
# - had issues putting these in the -o "password=" param and had issues with the cred file
import pexpect
password = "$wirleysaysneverquit!!!"
@nitrocode
nitrocode / create-tomcat-war.sh
Created August 20, 2015 05:42
Creates a TomCat or JBoss compressed and deployable WAR file
#!/bin/bash
# Usage: ./create-war.sh DIRECTORY WARFILE
# e.g. ./create-war.sh Siesta Siesta.war
DIRECTORY=$1
WARFILE=$2
cd $DIRECTORY/WebContent
jar -cf ../../$WARFILE *
cd -
ls -l $WARFILE