This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/redhat-release | |
cat /etc/issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -mindepth 4 -maxdepth 4 -type d -exec tar cvzf $(basename {}).tar.gz -C {} . \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://username:[email protected]/username/repository.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startxwin | |
DISPLAY=localhost:0.0 | |
export DISPLAY | |
ssh -X yourserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find -name *.tar.gz -exec bash -c 'sudo mkdir -p $(dirname {})/$(basename {} .tar.gz) && sudo tar zxf {} -C $(dirname {})/$(basename {} .tar.gz)' \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function transformer(row){ | |
var log = java.util.logging.Logger.getLogger("transformer"); | |
var LEVEL = java.util.logging.Level.INFO; | |
log.log(LEVEL, "hello world") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -V -a # to verify all | |
debsums -l | grep -v dbgsym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get list of registered vms | |
VBoxManage.exe list vms | |
# unregister the inaccessible | |
VBoxManage.exe unregistervm <uid> | |
# get list of running vms | |
VBoxManage.exe list runningvms | |
# gets the status of the VMs Vagrant knows about |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df -P file/goes/here | tail -1 | cut -d' ' -f 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# calculates average qtime and counts errors from a Tomcat log file ($CATALINA_HOME/logs/catalina.out) | |
if [ -z "$1" ] ; then | |
echo "requires a Tomcat log path" | |
exit 1 | |
fi | |
grep -v "^map entry" $1 | paste - - | | |
awk -v start="$2" -v end="$3" 'BEGIN{ |
OlderNewer