Install drupal with cURL
/**
* playing around with curl. Here is an example of using curl for installing drupal
* without using the browser
*
* Just change different settings and run
* php drupal-curl.php
*
* Script will produce html for all urls visited.
jobnet.dk script
/**
* jobnet.client
*
* dette script er for at logge ind i jobnet.dk's database og automatisk bekræfte
* at du fortsat er aktivt jobsøgende.
* Ændr $password og $username i det næste og kør scriptet:
*
* php jobnet.client
*
* Og du vil atutomatisk bekræfte at du søger job.
*/
// jobnet login og username
$username = 'username'; // som regel din email
$password = 'password'; // dit password
// skab en curl session
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, "./cookieFileName");
curl_setopt($ch, CURLOPT_URL,"https://job.jobnet.dk/CV/login.asp
Drush shell scripts for creating drupal sites
README.txt
Note: I have added the densite scripts to the drupal website and you can find the latest version on this address http://drupal.org/project/densite
Simple task module for Drupal
Note: This will only work with MySQL.
After hacking around with Drupal for a couple of weeks I decided to write a module. I couldn't find any simple modules for making a task list with Drupal-6.x so I decided to write a module which accomplished just that:
Features are as follows:
- List past, future and all tasks
- Edit / delete tasks
- Search for tasks
- Multi user. Every user can get a task list.
- Uses users locale timezone if users locale is set.
Remove https from search engine search results with apache and mod_rewrite
This server is installed with mod_ssl, which means that you can use both https and http. That was just fine, until I discovered that google was duplicating my search results. So that each page was listed first as http://www.os-cms.net and then the exact same page, just as https://www.os-cms.net
The solution was to make two robots text. First the ordinary robots.txt and then make a robots_ssl.txt with this content:
User-agent: *
disallow: /
You need to have mod_rewrite enabled to use the solution: You add the following somewhere in your server setup:
Moved website to slicehost.com
I have moved this website to a virtual server from http://slicehost.com, which seems to be a great hosting company (: so far at least :) You get your own virtual server with the brand of OS that you prefer. Then you start installing what you need: There are some great 'step by step' tutorials about setting up the Server, setting iptabels firewall, setting up ssh tunneling from you computer to the virtual server, and then setting up Apache with mod_SSL, MySQL and PHP. The only limit is off cause brandwidth and usage of hardware.
Shell Script For Downloading and Installing Drupal Themes
###################################################
#
# Got tired of downloading / unpacking / moving
# when I tested Drupal themes.
How to remove Apache and PHP server Signature
Normally when you install a distribution of Linux server software (Apache with a PHP module enabled) there will be a signature in the headers sent to the browser. You can remove those headers quite easily so nobody know what exact versions of software your are using, which is a far more secure solution for your Apache server:
In your php.ini search for expose_php and set it to 'Off' e.g:
expose_php = Off
In your Apache configuration search for 'ServerTokens' (in my case it is located in): /etc/apache2/conf.d/security
Shell script for downloading and installing Drupal modules
# Note (22/5-09)
# you can use a module called drush for the same
# See: http://drupal.org/project/drush
#
# when you have drush installed. You just:
#
# drush dl modulename (and then inside your module dir:)
# drush enable modulename
#
###################################################
#
# Got tired of downloading / unpacking / moving
# packages when I tested Drupal modules.
Simple Backup Shell Script For Apache Conf And SQL Databases and Home
#Made this simple to use backup shell script for backing up my most important files on my computer.