Ubuntu Change Boot Order for a Service

Use the update-rc.d command.

First remove the link fron the /etc/init.d directory to the rc.d directories

sudo update-rc.d -f my_old_script remove

Then change the boot order. The following updates the scripts boot order to 98.

sudo update-rc.d my_script defaults 98

This command can also be used to remove or add a service during boot.

Thunderbird Change Order of Accounts

  • Tools > Options > Tab: Advanced > TabĀ : General > Config editorĀ : “I’ll be careful, I promise!”
  • search for “account”
  • edit the variable “mail.accountmanager.accounts” and change your order here
  • quit thunderbird
  • launch thunderbird, change are now effective
You find the identities when you look for “mail.identity.id<n>.useremail” and the relation between identities and accounts looking for “mail.account.account<n>.identities”. If you have several identities for an account, you can’t influence the order of these or order them separately; you can only have these identities together in a different position.


Javascript – Get Querystring from Url

// Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
        hash = hashes[i].split('=');
        vars[hash[0]] = hash[1];
    return vars;

This code will return:

    "me"    : "myValue",
    "name2" : "SomeOtherValue"
var me = getUrlVars()["me"];
var name2 = getUrlVars()["name2"];