If you ever needed to build openvswitch for Centos 7 (including kernel module) this post may help you. Commands to build a RPM: Download openvswitch source. I've tested with 2.7.x and 2.9.x series. So I recommend you to do the same. It can be found at (if link becomes absolute look for a newer one, … Continue reading Openvswitch RPM build on Centos 7
Author: hi
Linux Bridge as Hub
You can configure your linux bridge (brctl operates them) as a hub (if you want to) with setting the aging property of the bridge to 0 as below: brctl setageing <bridge> 0 This make your bridge to behave as a hub. Most of you may not remember a network hub's functionality that is different from … Continue reading Linux Bridge as Hub
cd Between Last Two Directories – A Quick Method
if you need to change your previous directory rapidly you can add - (dash) to your cd command and no more arguments. For instance: if you were in: /etc/apt/sources.list.d/ and now in: /home/myuser you can easily go back to /etc/apt/sources.list.d/ with the command cd -
Create (Prepare) Bootable USBs from Ubuntu ISOs – No Additional Tool or Software Required!
You've downloaded Ubuntu ISO from a mirror and want to test or install it to your computer. There are many ways to do this but I'll share my method which requires no additional tools or software in this post. Additionally you can use this method in order to create bootable USBs for other ISOs if … Continue reading Create (Prepare) Bootable USBs from Ubuntu ISOs – No Additional Tool or Software Required!
Turn Off Screen on Linux with Command Line
If you do not have screen off function keys in your keyboard then you can use following commands to turn your screen off. First you need to find out your screen identifier: $ xrandr --listmonitors Monitors: 1 0: +*LVDS1 1600/310x900/174+0+0 LVDS1 Then turn screen off with the following cmd: xrandr --output LVDS1 --off This will … Continue reading Turn Off Screen on Linux with Command Line
Reversing a singly linked list in a single pass
Today I'd like to give codes and solution to reverse a singly linked list in a single pass and not using superfluous storage. Off course there is a solution if you duplicate list, put all values into a vector or array, and other not efficient ways to accomplish this task. Recursive solutions could also be proposed. … Continue reading Reversing a singly linked list in a single pass
Spliting a singly linked list into two sub-lists from the middle node in one pass
This is a puzzle like problem for linked lists. We'll use similar solution for our code in Finding The Half Of Linked List in Single Traversal. But we'll add some spice to the code in order to convert solution to be applied to this problem. Ok let's have a look to our proposed solution. When we get the … Continue reading Spliting a singly linked list into two sub-lists from the middle node in one pass
Find debian (deb) or RPM package that provides (contains) specific executable or file
You know how to install deb packages with apt-get cmd. But sometimes you need to find the package provides a specific file or executable. RedHat or CentOS users have this command by default via yum cmd. yum whatprovides updatedb This command outputs all packages provide updatedb file (in that case it is an executable). Ubuntu … Continue reading Find debian (deb) or RPM package that provides (contains) specific executable or file
Word Generation from Custom Alphabet – Base 26 Operations
Recently I've developed a brute force password cracker tool (can be found in post BruteForcer). I think it deserves to mention some design characteristics of the application. I'll mention Alphabet Generation in other words base 26 operations that is used and needed for many programmers. Alphabet to Generate Our generator should output strings based on the … Continue reading Word Generation from Custom Alphabet – Base 26 Operations
BruteForcer – Simple Yet Powerful Brute Force Password Cracker
I'm very forgetful these days. Even though I could not remember what I ate yesterday or what I wore, I have password protected everything. As a result, most of the times I have ended up with a locked zip, tar.gz or other file. Yesterday I had same experience and I decided to write a brute force … Continue reading BruteForcer – Simple Yet Powerful Brute Force Password Cracker