Update Drupal with drush without updating all modules

If you want to update Drupal core with drush but you don't want to update all contrib modules you can use this command.

drush up drupal

Strange why this is not in the drush manual

How-to remove the mdash after the text field in Drupal Twitter module

I was struggling around with removing the mdash character from the post on my website. It took some time till I realized that the dmash was NOT in the field-content but that is a field-separator.

Testpage for referen on sohf.nl

This is a testpage with a link to a subscribe page on www.sohf.nl if I click this link I should go to www.sohf.nl on the subscribe page. The sohf website stores the initial HTTP_REFERER in a session that I can recall by filling in the form.

Some more test links

Backup MySQL Vtiger Database and compress it with zip

Here is a one-liner to backup your VTiger database, give it a timestamp and zip it.

export TMPDATE=$(date +%Y%m%d-%H%M); mysqldump -p vtigercrm50 > $TMPDATE"_vtigercrm50.sql" ; zip $TMPDATE"_vtigercrm50.sql.zip" $TMPDATE"_vtigercrm50.sql" ; rm $TMPDATE"_vtigercrm50.sql"

Some explanation:


Drupal: Set file permission on filesystem with a shell script

This script is to set all file permissions at once for a Drupal website.

# Script made by David Rush, davidprush@gmail.com
# Changes the permissions of the Drupal sites directory to secure after isntallation
# Very Important Put this script in the same directory as your site/ directory

Strange character in linux man pages

If you got strange characters in you man pages here is how to fix this.

Method 1

PuTTY's default translation is ISO-Latin-1. Ubuntu's default console locale is based on UTF-8. You have to change one of them to match the other. In PuTTY, change the translation to UTF-8, or from terminal set the locale with LC_ALL to ISO-Latin-1.

  1. Open PuTTY
  2. Select a session

Set Linux file permission for Dupal website

chown -R USER:www-data .
find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;
find . -type f -exec chmod u=rw,g=r,o= '{}' \;

* change USER to your linux username

Rename the field quantity of Drupal uc_event_registration

To change the label of Ubercart Event Registration (uc_event_registration) without hacking the module simply insert some Jquery.

Put a pice of JQuery like this in your page.tpl.php

How I remove viruses from Windows computers


Although it's not my biggest hobby sometimes I have to remove viruses from Windows computers.

My personal NFS mounts in /ets/fstab

Here are my personal mount in /etc/fstab for mounting my server to the filesystem on my Desktop and Lapto

First install nsf-common

apt-get install nfs-common

Make the mountpoint on the local filesystem

mkdir /extra
mkdir /home/rob/[HOSTNAME]

Add to /etc/fstab

robox:/extra /extra nfs rw,nfsvers=3,hard,intr 0 0