Linux

Just spent some time learning some terminal magic for filtering through log files looking for specific data.  Check out what I found!

Terminal commands for blocking incoming connections from an IP as well as viewing all currently blocked IP's

Recently I noticed that on my server the host process (/usr/bin/host) was chewing up TONS of CPU (90-100% on one core and 10-20% on the other according to top).  After doing some research I found the following article on host process being used in an HTTP DDOS attack.

How to get the latest flash and silverlight installed on Ubuntu.  The following guide is easy and straight forward.  It works for both Chrome and Firefox.
http://www.webupd8.org/2013/08/pipelight-use-silverlight-in-your-linux.html

After a bit of fiddling Apache Solr search is now installed and functioning.
Click here to use the new search.  Several facets are available to quickly filter to the content you want.

Installing Java can be a pain now that Oracle no longer allows it to be bundled with Linux distrobutions by default.  Read more to make that process easier...

Using the dmidecode command you can find out many details about the hardware in your computer system.  Some of the information you can find is Motherboard make and model, CPU make and model, Video card make and model.  It seems that almost anything plugged into your computer will show up here.
Motherboard information is listed under the term: Base board
 
You need to either be root or use sudo to run the command below.

sudo dmidecode

How to use OpenSSL apart from generating SSL certificates.

Command line find/replace on files:

perl -p -i -e 's/old/new/g' `ack -l --html searchpattern`

sudo apt-get install ack-grep
For reference: http://stackoverflow.com/questions/471183/linux-command-line-global-sear...

To jump to the beginning or end of a file (useful if it is really long as in an export of a SQL database) use the below shortcuts:

Beginning of file

ALT + \

End of file

ALT + /

 

Pages