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 31 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 […]

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 […]

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 […]

wordpress trova e sostituisci

Ecco alcune query che ci possono aiutare durante la migrazione di worpress. In questo modo possiamo trovare tutti i link all’interno di post, pagine, immagini ed aggiornarli con il nuovo domino. Abbiamo bisogno di accedere al database SQL, per farlo comunemente i provider mettono a disposizione il phpmyadmin. Prima di eseguire ogni operazione è opportuno […]

Uccidere processo per nome

Esistono diversi modi per uccidere un processo per nome se lo conosci.Ecco un paio di modi differenti per fare questo. Abbiamo intenzione di assumere che il processo che stiamo cercando di uccidere si chiama irssi       These techniques can be useful in shell scripts, where you wouldn’t know the process ID and would […]

Kill Process by Name

There are a number of ways to kill a process if you know the name of the process. Here’s a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi        These techniques can be useful in shell scripts, where you […]