tar examples

Task: List the contents of a tar file Use the following command: $ tar -tvf file.tar Task: List the contents of a tar.gz file Use the following command: $ tar -ztvf file.tar.gz Task: List the contents of a tar.bz2 file Use the following command: $ tar -jtvf file.tar.bz2 Where, t: List the contents of an […]

WordPress add your css and js

Put this code in your plugin function your_css_and_js() { wp_register_style(‘your_css_and_js’, plugins_url(‘style.css’,__FILE__ )); wp_enqueue_style(‘your_css_and_js’); wp_register_script( ‘your_css_and_js’, plugins_url(‘your_script.js’,__FILE__ )); wp_enqueue_script(‘your_css_and_js’); } add_action( ‘admin_init’,’your_css_and_js’); if you need to add it to theme, then function your_css_and_js() { wp_register_style(‘your_css_and_js’, theme_url(‘style.css’,__FILE__ )); wp_enqueue_style(‘your_css_and_js’); wp_register_script( ‘your_css_and_js’, theme_url(‘your_script.js’,__FILE__ )); wp_enqueue_script(‘your_css_and_js’); } add_action( ‘admin_init’,’your_css_and_js’); This page has been readed 119 times

VMware Workstation 11.x Universal License Keys for Windows & Linux

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License As the world’s most high-profile and most powerful virtualization solution (virtual machine), VMware Workstation 11 has been officially released. The new version brings many improvements and upgrades: adds support for Windows 10; improves the Unity for Windows 8.1; distributes the default RAM of […]

Linux toolbox – system command

Unix Toolbox Unix Toolbox This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing. Unix Toolbox revision 14.4 The latest version of this document can be […]

Vmware ESXi 4.x Installation Guide

I received many emails regarding howto install and configure Vmware ESXi Server . Following is an short reference guide for beginners. This guide will illustrate you howto install ESXi from beginning till creating Virtual machines in ESXi using VSPHERE Client. Believe me its realy simple :)~ First, Some Overview to VMWARE ESXi and it’s features. […]

wordpress error 500 aruba

Hosting Linux and WordPress – prevent “500-Internal Server Error” The automatic update feature of the well-known Cms WordPress overwrites files and resets the CHMOD permissions according to the configuration setup by the developers. Such setting, for Linux Hosting web space, causes the error “500 – Internal Server Error”. To solve the error simply apply a […]

Recursively chmod only directories or files

Ever come across the problem of needing to chmod a directory and its many, many, sub-directories, but you don’t want to touch any of the files? Maybe it’s the exact opposite, or you need to recursively change the permissions on only files with a specific extension. Well I had a similar problem with one of […]

Solution for slow SSH login in CentOS 6

If SSH login is very slow in CentOS 6 it’s because they have added another security feature, the SSH server will do a reverse DNS again for any incoming connection, this will delay connection up to 13 seconds, to avoid this:   Access the server Edit the ssh config nano /etc/ssh/sshd_config Look for use dns […]