Administrator's Author Profile

Total Article Views: 72201
Author Homepage: http://archive.autohostme.com
Bio:
N/A
Recent Articles by Administrator
Checking if one string contains another substring - indexOf
Want to search for a substring within a javascript string? The example code below shows how to use the javascript indexOf function to find a substring and its location. <script> var bigstring = 'The dog was sleeping under the tree'; var substring = 'undeMake a redirect page using jQuery / Javascript
Ever wanted to redirect visitors from your old website to your new website? Or from an old webpage to a new webpage? Its very easy using Javascript, simply enter the following code onto your old webpage. <script> window.location.replace("http://NEW-WEBPAGLinux Software Raid 1 - Creating a Raid 1 Mirror with mdadm
Ever wanted the benefits of Raid 1 without the cost of extra hardware? As the steps below show, its very simple to create a software raid 1 mirror on linux with mdadm. The system used in this guide is a Centos 7 PC, however mdadm will work the same on any linux flavour.Linux Traffic Control using tc ( /sbin/tc ) for OpenVZ and KVM
Ever wondered how to do linux traffic shaping or linux traffic control on an IP or Interface? Ever wanted to do linux traffic control or linux traffic shaping on individual VPS's on OpenVZ, KVM, Xen, platforms? The Linux traffic control command tc ( /sbin/tc ) will enable you to do this, also knoLinux KVM Networking using TAP devices (without bridge)
KVM guests are typically setup using bridge networking. Using a bridge in your KVM Network setup is not actually required, you can bypass bridge setup altogether. But why you ask? Because these days people often administer systems remotely and setting up a newtork bridge typically requires a netwCreating ZFS Zpools for OpenVZ
You will first need to ensure ZOL (ZFS on Linux) is installed on your openvz server. See http://zfsonlinux.org/epel.html for help regarding installing ZOL. In this guide I am using OpenVZ version 2.6.32-042stab093.4 (CentOS release 6.5Panels
<div class="panel panel-default"> <div class="panel-heading">Panel heading without titleHow to Rename a mdadm Raid Device (quick method)
Sometimes a software raid device may have the wrong name, typically the default /dev/md127. When this happens how do we rename the array back to something useful like /dev/md2 ? STEP#1 Find UUID of Raid Array /dev/md127How to Rename an Ethernet Device
Rename eth1 to eth0 For this guide we are renaming eth1 to eth0 on a centos 6.5 server. STEP#1 Find what ethernet devices exist and their MAC addresses Using the ipCPanel License Check Command
To check a cpanel license run command: /usr/local/cpanel/cpkeyclt Example Successful Output root@ns1 [/]# /usr/local/cpanel/cpkeyclt Updating cPanel license...Gradients
A linear gradient from top to bottom #grad { background: -webkit-linear-gradient(red, blue); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(red, blue); /* For OperaShadow Box
Add a box-shadow to a div element div { border: 2px solid; border-radius: 25px; }Rounded Corners
Add rounded corners to a div element: div { border: 2px solid; borderPadding
The padding property can have from one to four values. padding: 25px 50px 75px 100px; top padding is 25px right padding is 50px bottom padding is 75px left padding is 100px padding: 25px 50pxUseful mdadm commands
Some of the most basic commands to manage a Linux Software Raid Array Clear RAID Disk mdadm --zero-superblock /dev/sdaPage Navigation: 1 (All)