Check These Out
Blacklisted is a compiled list of all known dirty hosts (botnets, spammers, bruteforcers, etc.) which is updated on an hourly basis. This command will get the list and create the rules for you, if you want them automatically blocked, append |sh to the end of the command line. It's a more practical solution to block all and allow in specifics however, there are many who don't or can't do this which is where this script will come in handy. For those using ipfw, a quick fix would be {print "add deny ip from "$1" to any}. Posted in the sample output are the top two entries. Be advised the blacklisted file itself filters out RFC1918 addresses (10.x.x.x, 172.16-31.x.x, 192.168.x.x) however, it is advisable you check/parse the list before you implement the rules
Replace 'csv_file.csv' with your filename.
Here "^M" is NOT "SHIFT+6" and "M". Type CTRL+V+M to get it instead.
Its shortest and easy. And its sed!, which is available by default in all linux flavours.. no need to install extra tools like fromdos.
tired of switching to the console to check if some command has finished yet? if notify-send does not work on your box try this one... e.g. rsync -av -e /usr/bin/lsh $HOME slowconnection.bar:/mnt/backup ; z (now fire up X, do something useful, get notified if this stuff has finished).
Removes all directories on given path, working from right to left, and stops when reaching a non-empty directory
Counterpart of
$ mkdir -p new/directory/path
Shortcut (must be issues as next command immediately after mkdir):
$ ^mk^rm
( see http://www.commandlinefu.com/commands/view/19/runs-previous-command-but-replacing )
* Add comment with # in your command
* Later you can search that command on that comment with CTRL+R
In the title command, you could search it later by invoking the command search tool by first typing CTRL+R and then typing "revert"
Both hosts must be running ssh and also the outside host must have a port forwarded to port 22.
This can be useful for transforming command-line args into input for xargs (one per line). This can also be done with ls if the args are filenames, but that's getting awfully close to Useless Use of Cat territory (http://partmaps.org/era/unix/award.html).