Unfortunate is he who cannot gain a few sincere friends during his life and more unfortunate is the one who has gained them and then lost them (through his deeds).
Ali Ibn Abi Talib[A.S]

ExplainShell Breaks Down Long, Confusing Linux Commands

ExplainShell Breaks Down Long, Confusing Linux Commands

 

Ever come across a tutorial online that tells you to run a long terminal command, but want to know what each part of it actually means? ExplainShell does exactly that: paste in the command, and it’ll tell you what each portion of the code does.

 

Obviously, you could do this yourself by searching through man pages—and we still recommend you read the man pages to learn more—but this is a really fast, helpful way to understand what you’re doing rather than just copying and pasting commands willy-nilly. For example, if a tutorial tells you to run:

 

ssh -i keyfile -f -N -L 1234:www.google.com:80 host

 

ExplainShell would explain that “-i keyfile” selects the file containing your key, “-f” runs it in the background, and so on. It doesn’t work with every command you’ll ever come across, but it’s a pretty handy tool to have in your arsenal.

[Read More: Full article by Whitson Gordon]

Linux |

50 Most Frequently Used UNIX / Linux Commands (With Examples)

This article provides practical examples for 50 most frequently used commands in Linux / UNIX.

This is not a comprehensive list by any means, but this should give you a jumpstart.

 

1. tar command examples common Linux commands. 

Create a new tar archive.

$ tar cvf archive_name.tar dirname

Extract from an existing tar archive.

$ tar xvf archive_name.tar

View an existing tar archive.

$ tar tvf archive_name.tar

More tar examples: The Ultimate Tar Command Tutorial with 10 Practical Examples

 

 2. grep command examples

Search for a given string in a file (case in-sensitive search).

$ grep -i "the" demo_file

Print the matched line, along with the 3 lines after it.

$ grep -A 3 -i "example" demo_text

Search for a given string in all files recursively

$ grep -r "ramesh" *

More grep examples: Get a Grip on the Grep! – 15 Practical Grep Command Examples

[Read More: Full article by Ramesh Natarajan]

Linux |

How to Create a Custom Theme for Your WordPress Blog with Minimal Coding Required

One of the best article I found to start the wordpress.

You want to start your own blog but you don’t want to look tacky by using an existing design. Creating your own theme can be daunting, but with some assistance you can have a unique design for your blog in no time. This post will help you put it all together using WordPress, the most popular (and free) blogging software available. P

How to Create a Custom Theme for Your WordPress Blog with Minimal Coding Required

Creating a WordPress theme can take quite a bit of work when you’re starting from scratch because you have to put together quite a bit of PHP code (the programming language WordPress uses) before you can even get to creating the look and feel of your site. We’re going to save you the trouble by providing those files pre-made for you, plus a skeletal structure of the CSS you’re going to need to make your WordPress site look the way you want. The PHP code is based upon the work of Ian Stewart, but has been updated for WordPress 3.3.1. If you’re ready to get started, here’s what you’ll need:

[Read More: Full article by Adam Dachis]

Etc.. |

Understanding WordPress Theme: The Basics of Creating Your Own WP Theme

There are a variety of free and premium WordPress themes that you can find throughout the web. You will sometime find that you can spend hours trying to modify the theme, so it is tailored to the way you want it. Sometimes it’s easier to create your own from scratch, and not deal with the headaches that can happen with customization of an existing WordPress theme. This guide will help you to understand the basic of a WordPress theme and how to create a simple theme.

I recommend that before you begin, you familiarize yourself with the WordPress file structure by analyzing as many WordPress themes as you can (NoteYou need to have a basic understanding of HTML and CSS.)

Getting Started

Begin you begin coding up the theme, you must understand that the WP theme is just like any other HTML webpage, except that it is coded with PHP. Even so, you don’t need to be a PHP expert to do up a WP theme. My advice is:

  1. First get a working pure HTML page up and running (You can easily do this with a WYSIWYG webpage editor).
  2. Open the HTML webpage in a text editor and slice it up to different portion (we’ll explain more on that later)
  3. Insert in the PHP code

WordPress File Structure

The basic file structure of a WordPress theme is as follows:

  1. Style.css – The stylesheet holds all the formatting and styles of the theme
  2. Index.php – This is the main WordPress theme file that ties all the other files together
  3. Header.php – Holds all the header information. Also, if all the files were lumped together, this would be the beginning of the WordPress theme
  4. Sidebar.php – It has all the code for the sidebar
  5. Footer.php – Holds the footer code

Other files that you will also find in a WordPress theme are:

  1. Single.php – A single blog post code
  2. Comments.php – This is where you place the code to control the behavior of the blog comments
  3. Page.php – Controls the behavior of your individual pages
  4. Search.php – This is if you want to add search capability to your WordPress theme
  5. Searchform.php – Controls the way the search box behaves
  6. 404.php – Customize the landing page if your readers get an 404 error
  7. Functions.php – A way to further customize your WordPress theme
  8. Archives php – How to display the archive results

A simple layout of the theme

wordpress-theme-layoutwordpress-theme-layout

[Read More: Full article by Shevonne]

Etc.. |

6 flow diagrams/infographics understanding WordPress

1. WordPress database structure

Whether you create WordPress themes, edit themes, or create plugins, you may need to communicate with the database and find the information you need. This diagram helps you to make sense of it much quicker by showing the structure and relations between the tables.

Query Functions

 

2. WP_Query vs query_posts() vs get_posts()

Despite the use of Comic Sans, this flowchart is very helpful to decide how to call for posts within or out of the WordPress loop.

Anatomy

[Read More: Full article by Designer Daily]

Etc.. |

TCP Packet Replay & Editor

Tcpreplay is a suite of BSD GPLv3 licensed tools written by Aaron Turner for UNIX (and Win32 under Cygwin) operating systems which gives you the ability to use previously captured traffic in libpcap format to test a variety of network devices. It allows you to classify traffic as client or server, rewrite Layer 2, 3 and 4 headers and finally replay the traffic back onto the network and through other devices such as switches, routers, firewalls, NIDS and IPS’s. Tcpreplay supports both single and dual NIC modes for testing both sniffing and inline devices.

 

Tcpreplay is used by numerous firewall, IDS, IPS and other networking vendors, enterprises, universities, labs and open source projects. If your organization uses Tcpreplay, please let me know who you are and what you use it for so that I can continue to add features which are useful.

 

The Tcpreplay suite includes the following tools:

  • tcpprep – multi-pass pcap file pre-processor which determines packets as client or server and creates cache files used by tcpreplay and tcprewrite
  • tcprewrite – pcap file editor which rewrites TCP/IP and Layer 2 packet headers
  • tcpreplay – replays pcap files at arbitrary speeds onto the network
  • tcpliveplay – Replays network traffic stored in a pcap file on live networks using new TCP connections
  • tcpreplay-edit – replays & edits pcap files at arbitrary speeds onto the network
  • tcpbridge – bridge two network segments with the power of tcprewrite
  • tcpcapinfo – raw pcap file decoder and debugger

[Read More]

Anki- powerful, intelligent flash cards

Anki is a program which makes remembering things easy. Because it’s a lot more efficient than traditional study methods, you can either greatly decrease your time spent studying, or greatly increase the amount you learn.

Anyone who needs to remember things in their daily life can benefit from Anki. Since it is content-agnostic and supports images, audio, videos and scientific markup (via LaTeX), the possibilities are endless.
For example:

  • Learning a language
  • Studying for medical and law exams
  • Memorizing people’s names and faces
  • Brushing up on geography
  • Mastering long poems
  • Even practicing guitar chords!

[Read More]

Etc.. |