News

admin
11 years 1 week ago
Go to a destination which you can create folder. Execute the command: wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-5.6.tar.gz | tar -zxf - -C ./ Then, you have drush in your hand... Read more
admin
12 years 9 months ago
Paste in browser: javascript:void(prompt('',gApplication.getMap().getCenter()));
admin
12 years 9 months ago
Code copied from og module: $closerview = views_get_view('viewscloser'); $closerview->is_cacheable = FALSE; $closerview->set_display('default'); // TODOL: not working $closerview-... Read more
admin
12 years 9 months ago
Backup mysqldump -u dbuser -p db_name | gzip -9 > db.sql.gzRestore New DB: gunzip < db.sql.gz | mysql -u dbuser -p dbname Existed DB: mysqlimport -u dbuser -p dbname db.sql// Sorry this version... Read more
admin
12 years 9 months ago
find . -type f -exec grep -il "Text to find" {} \;Bonus:  Search command in WinSCP find . -type f -exec grep -il "!?prompt?!" {} \;
admin
12 years 9 months ago
Backup:cd targetfolder tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz ./Backup with split cd targetfolder tar -cvpz backup.tar.gz --exclude=/backup.tar.gz ./ | split -d -b 3900m - ./backup.tar.gz... Read more
admin
12 years 9 months ago
Command line: for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done
admin
12 years 10 months ago
I provide how to theme Drupal 7 Forms. in this example is Drupal Commerce Checkout Form —-  template.php—- /** * Implementation of hook_theme * Define themes to make style */function yourtheme_theme... Read more
admin
12 years 10 months ago
module.info ; Views includesfiles[] = includes/views/module.views.inc ; Views handlersfiles[] = includes/views/handlers/module_handler1.inc ——- module.module /** * Implements hook_views_api(). */... Read more
admin
12 years 10 months ago
This is copied from https://github.com/xurizaemon/csvimport/blob/master/csvimport.module Author is Chris Burgess Thanks to him! <?php /** * Demonstration module. * * - Provide form for upload of... Read more