This file contains 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
def s = new org.apache.commons.net.util.SubnetUtils(<cidr>) | |
println s.getInfo().getAllAddresses() |
This file contains 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
tcpdump -s0 host ? and port 22 and not port <get from /var/log/secure> |
This file contains 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/sh | |
mon=$(date +%m) | |
day=$(date +%d) | |
file=username@ip:/home/username/${mon}${day}<year><hour><time>dump.tar.gz | |
scp $file . |
This file contains 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/sh | |
filename='?' | |
sed -i -e 's/ | |
//g' $filename && sed -i -e 's/ class=\"pt12\"//g' $filename && sed -i -e 's/ class=\"pt10\"//g' $filename && sed -i -e 's/\Â\ //g' $filename && \ | |
sed -i -e 's/<br>//g' $filename && sed -i -e 's/data-mce-//g' $filename && sed -i -e 's/ style="font-size: 10pt;"//g' $filename && sed -i -e 's/ style="font-size: 12pt;"//g' $filename && \ | |
sed -i -e 's/ style="font-size: x-small;"//g' $filename |
This file contains 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
def sb = new StringBuffer() | |
def c = e.THE_CLOB | |
if ( (int) c.length() ) { | |
def buffer = new char[length] | |
def r = c.getCharacterStream() | |
def count = 0 | |
while ( (count = r.read(buffer) ) != -1 ) { sb.append(buffer) } | |
} | |
println sb.toString() |
This file contains 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
ffmpeg -i file.mpeg file.webm | |
ffmpeg -i file.mpeg -vcodec libx264 -vpre libx264-hq -b 1500k file.mp4 | |
<video width="320" height="240" controls="controls"> | |
<source src="file.mp4" type="video/mp4"/> | |
<source src="file.webm" type="video/webm"/> | |
<p>Your browser does not support this video</p> | |
</video> |
This file contains 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
Order deny,allow | |
deny from all | |
allow from 127.0.0.1 |
This file contains 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
1. Layers (Menu) -> Mask -> Add Layer Mask (White) | |
2. Make sure fg is black; bg is white | |
3. Click blend tool and then drag |
This file contains 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
alias latest='ls -lrth . | tail -1 | awk "{print \$9 }" | xargs cat | less +G' |
This file contains 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
ssh remoteuser@remotehost -p 22 -o TCPKeepAlive=yes -L 9999:localhost:80 |