Tail multiple log files in one terminal Categories: Code Linux Tags: 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. Read more about Tail multiple log files in one terminal
Mysql sort table description by field name Categories: Code Tags: Code MySQL Display columns name from a table sort by Field name from shell Step 1: create bash script Step 2: use example Read more about Mysql sort table description by field name
Mysql replace string example Categories: Code Tags: MySQL examples Code Example to replace domain url Read more about Mysql replace string example
Drupal 7 validate node before save Categories: Code PHP CMS Drupal Tags: Drupal Code examples Objective Make whatever we want before validate and submit a node. Read more about Drupal 7 validate node before save
Drupal 7 alter views exposed form Categories: Code PHP CMS Drupal Tags: Drupal Code examples Views Objective Alter form fields of a previously created View called 'Example view'. The system name will be 'example-view'. Read more about Drupal 7 alter views exposed form
PHP convert dates with DateTime examples Categories: Code PHP Tags: PHP Code examples /** * DateHelper class * */ class DateHelper { private $LC_TIME; /** * * @param string $timezone [optional] default timezone Read more about PHP convert dates with DateTime examples
Regular expression examples Categories: Code PHP Javascript Tags: 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) Read more about Regular expression examples
Drupal 7 ajax example in block module Categories: Code PHP Javascript CMS Drupal Tags: 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 Read more about Drupal 7 ajax example in block module
Javascript focus first visible input in Boostrap modal Categories: Code Javascript Tags: Javascript JQuery Bootstrap Code examples // focus first visible element after load Bootstrap modal Read more about Javascript focus first visible input in Boostrap modal
Wordpress ajax example Categories: Code PHP Javascript CMS Wordpress Tags: 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"> Read more about Wordpress ajax example