Delete unused Drupal Modules

If you have uploaded a heap of modules into your Drupal install and want to delete the unused modules from the Hard Drive, this can work. cd sites/all/modules rm -rf `drush pm-list –status=’not installed’ –pipe` In this case it assumes the contrib modules have been installed to the sites/all/modules folder. They can also be in sites/default/modules or other locations.

Continue reading

Drupal htaccess

Additional .htaccess settings for Drupal

Here are some extra .htaccess commands to add to the standard Drupal setup Allow access for SSL LetsEncrypt.com If you are using LetsEncrypt, the default security stops access for folders starting with a period RewriteCond %{REQUEST_URI} “/.well-known/” RewriteRule (.*) $1 [L] Force SSL RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Redirect to non-WWW RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301] Redirect images folder to default images This means that you can use shortened URI…

Continue reading

GIT Jekyll

Deploy a Jekyll site on cPanel with GIT

We want to create a Jekyll site hosted on a cPanel server and using a GIT repository for versioning. This could be done with GitHub and a WebHook, but in this case, lets keep the GIT repository on the server. This assumes we have a cPanel hosted account with SSH access and Jekyll installed on the server. The basic process will be Create a GIT repository on the server – jekyll.git Create a location for…

Continue reading


Psychological Conditions

From The Daily Reckoning… Here are a couple of psychological conditions that relate to investing: Metacognition: The less competent you are at a task, the more likely you are to overestimate your ability to accomplish it well. Competence in a given field actually weakens self-confidence. Dunning Kruger Effect: Dunning Kruger is a cognitive bias in which unskilled people make poor decisions and reach erroneous conclusions, but their incompetence denies them the metacognitive ability to recognise…

Continue reading


The Gay Cowboy…

A successful rancher died and left everything to his devoted wife. She was a very good-looking woman and determined to keep the ranch, but knew very little about ranching, so she decided to place an ad in the newspaper for a ranch hand. Two cowboys applied for the job. One was gay and the other a drunk. She thought long and hard about it, and when no one else applied she decided to hire the…

Continue reading