Tail multiple log files in one terminal Categorías: Código Linux Etiquetas: Linux bash Code shell Script to save as "multitail.sh' or whatever you like. Save it in "/home/username/scripts" or any other folder $ vi multi-tail.sh #!/bin/sh # When this exits, exit all back ground process also. Leer más sobre Tail multiple log files in one terminal
Mysql sort table description by field name Categorías: Código Etiquetas: Code MySQL Display columns name from a table sort by Field name from shell Step 1: create bash script Step 2: use example Leer más sobre Mysql sort table description by field name
Mysql replace string example Categorías: Código Etiquetas: MySQL examples Code Example to replace domain url Leer más sobre Mysql replace string example
Drupal 7 validate node before save Categorías: Código PHP CMS Drupal Etiquetas: Drupal Code examples Objective Make whatever we want before validate and submit a node. Leer más sobre Drupal 7 validate node before save
Drupal 7 alter views exposed form Categorías: Código PHP CMS Drupal Etiquetas: Drupal Code examples Views Objective Alter form fields of a previously created View called 'Example view'. The system name will be 'example-view'. Leer más sobre Drupal 7 alter views exposed form
PHP convert dates with DateTime examples Categorías: Código PHP Etiquetas: PHP Code examples /** * DateHelper class * */ class DateHelper { private $LC_TIME; /** * * @param string $timezone [optional] default timezone Leer más sobre PHP convert dates with DateTime examples
Regular expression examples Categorías: Código PHP Javascript Etiquetas: Regex Code examples PHP Javascript Postal code DNI/NIF validation Email Hour:minute:second Replace strings in SQL query Search breakline Postal code This will check european postal code (eg: 28008) and US postal code (eg: 12005-1234) Leer más sobre Regular expression examples
Drupal 7 ajax example in block module Categorías: Código PHP Javascript CMS Drupal Etiquetas: Drupal PHP Code examples AJAX Javascript Objective Create a module and a new block that will call an ajax function to show some info dynamically Leer más sobre Drupal 7 ajax example in block module
Javascript focus first visible input in Boostrap modal Categorías: Código Javascript Etiquetas: Javascript JQuery Bootstrap Code examples // focus first visible element after load Bootstrap modal Leer más sobre Javascript focus first visible input in Boostrap modal
Wordpress ajax example Categorías: Código PHP Javascript CMS Wordpress Etiquetas: Wordpress Code PHP Javascript examples AJAX Simple ajax example to show some info every 3 seconds, loading it from php in your plugin or theme functions.php file Javascript Include this code in your theme header.php for example <script type="text/javascript"> Leer más sobre Wordpress ajax example