Moved to https://github.com/jonhoo/streamsh
🤦♂️
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
### Keybase proof | |
I hereby claim: | |
* I am jonhoo on github. | |
* I am jonhoo (https://keybase.io/jonhoo) on keybase. | |
* I have a public key whose fingerprint is 0EB8 140B 1294 C265 5DDD BF0C D64A C9D6 7176 DC71 | |
To claim this, I am signing this object: |
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
[Desktop Entry] | |
Name=Dungeon Keeper | |
Comment=Evil is Good | |
Exec=dosbox -conf ../dosboxDK.conf -conf ../dosboxDK_single.conf -noconsole -c exit | |
Icon=dungeon-keeper | |
Path=/home/user/.wine/drive_c/GOG Games/Dungeon Keeper Gold/DOSBOX | |
Terminal=false | |
Type=Application | |
Categories=Game; |
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
/** | |
* Hello, and welcome to this brief, but hopefully complete, example file for | |
* wireless packet injection using pcap. | |
* | |
* Although there are various resources for this spread on the web, it is hard | |
* to find a single, cohesive piece that shows how everything fits together. | |
* This file aims to give such an example, constructing a fully valid UDP packet | |
* all the way from the 802.11 PHY header (through radiotap) to the data part of | |
* the packet and then injecting it on a wireless interface | |
* |
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/bash | |
# Remember to change USER@SERVER below to the server you want to | |
# show off from | |
showoff() { | |
if [[ -z $2 ]]; then | |
lport=80 | |
rport=8080 | |
else | |
lport=$1 | |
rport=$2 |
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/bash | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: $0 top|right|bottom|left [maximized]" | |
exit 1 | |
fi | |
active=`xprop -root _NET_ACTIVE_WINDOW | sed 's/^.*# //'` | |
if [[ $active == "0x0" ]]; then | |
echo "No active window found (_NET_ACTIVE_WINDOW == 0x0)" |
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
#!/usr/bin/perl | |
# Scans all directories prefixed by "-n" for mp3 files and compares them with | |
# mp3 files of the same name in all other given directories. | |
# Allows comparison of bitrate, length and size, and then selecting which to keep | |
use strict; | |
use warnings; | |
use Cwd qw/cwd abs_path/; | |
use MP3::Tag; | |
die "Usage: $0 folder folder -n lookupfolder -n lookupfolder\n" if @ARGV < 2; |
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/bash | |
cat $1 \ | |
| tr '\r\n' ' ' \ | |
| perl -pe 's:/\*.*?\*/::g' \ | |
| sed \ | |
-e 's/\s\+/ /g' \ | |
-e 's/\([#\.:]\)\s\?/\1/g' \ | |
-e 's/\s\?\([;{}]\)\s\?/\1/g' \ | |
-e 's/\s\?\([,!+~>]\)\s\?/\1/g' \ | |
-e 's/;}/}/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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use IMDB::Film; | |
my $promptDelete = 0; | |
if (@ARGV > 0 and $ARGV[0] eq "-d") { | |
$promptDelete = 1; | |
shift @ARGV; | |
} |