Marius van Witzenburg "Learned my lesson in life, now setting my action to stay in life."

13Jun/100

Manual how to install Transmission on FreeBSD as torrent client daemon

This manual is for Transmission 2.00 and higher.

Installation
Install required ports:

cd /usr/ports/net-p2p/transmission-daemon ; make install clean
# If required, install transmission-web
cd /usr/ports/www/transmission-web ; make install clean

Login to unpriv account and start transmission-daemon.

su - mariusvw

transmission-daemon

Now transmission created the default configuration kill it.

# Get current pid:
ps aux |grep transmission
# Kill it:
kill 43541

Edit the configuration to your needs:

vi .config/transmission-daemon/settings.json

You can view an example config here:

{
    "alt-speed-down": 1500,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 62,
    "alt-speed-time-enabled": true,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 100,
    "bind-address-ipv4": "172.20.20.1",
    "bind-address-ipv6": "",
    "blocklist-enabled": true,
    "dht-enabled": true,
    "download-dir": "/home/mariusvw/Downloads",
    "encryption": 1,
    "incomplete-dir": "/home/mariusvw/Downloads",
    "incomplete-dir-enabled": false,
    "lazy-bitfield-enabled": true,
    "message-level": 2,
    "open-file-limit": 32,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 53945,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": 0,
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "ratio-limit": 2.0000,
    "ratio-limit-enabled": true,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "172.20.20.1",
    "rpc-enabled": true,
    "rpc-password": "YOUR PASSWORD HERE",
    "rpc-port": 9091,
    "rpc-username": "mariusvw",
    "rpc-whitelist": "127.0.0.1,172.16.23.8,172.16.32.102",
    "rpc-whitelist-enabled": true,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "trash-original-torrent-files": true,
    "umask": 18,
    "watch-dir": "/home/mariusvw/Downloads/__WATCH_DIR",
    "watch-dir-enabled": true

}

Restart the daemon:

transmission-daemon

Surfto:


http://192.4.1.9:9091/transmission/web/

Have fun downloading! :-P

Optional and OLD scripts:
Dynamic Speed Script
Change maximum speeds on time period:

0 23 * * * /home/mariusvw/transmission-speed.sh fast > /dev/null 2>&1
0 8 * * * /home/mariusvw/transmission-speed.sh slow > /dev/null 2>&1

Create speed-change script: transmission-speed.sh

#!/bin/sh
action=$1
case $action
in
'slow')
/usr/local/bin/transmission-remote -n mariusvw:<yourpassword> -d 100 -u 10
;;
'fast')
/usr/local/bin/transmission-remote -n mariusvw:<yourpassword> -d 500 -u 50
;;
esac

Easy commands
You can use this to easily enter transmission-daemon commands without having to enter your username and password every time.

 #!/bin/sh
action=$1
if [ -n "$action" ]
then
/usr/local/bin/transmission-remote -n mariusvw:<yourpassword> $action
fi

I hope this is useful for the ones who like to work with Torrents and share easy without leaving on your desktop PC if you have a server available.

29Mar/100

Conditional comments for Microsoft Internet Explorer

Conditional comments only work in Explorer on Windows, and are thus excellently suited to give special instructions meant only for Explorer on Windows. They are supported from Explorer 5 onwards, and it is even possible to distinguish between IE5.0, IE5.5, IE6.0, IE7.0 and IE8.0.

My opinion, lose Internet Explorer ;-)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!--[if IE]>
According to the conditional comment this is Internet Explorer<br />
<![endif]-->
 
<!--[if IE 5]>
According to the conditional comment this is Internet Explorer 5<br />
<![endif]-->
 
<!--[if IE 5.0]>
According to the conditional comment this is Internet Explorer 5.0<br />
<![endif]-->
 
<!--[if IE 5.5]>
According to the conditional comment this is Internet Explorer 5.5<br />
<![endif]-->
 
<!--[if IE 6]>
According to the conditional comment this is Internet Explorer 6<br />
<![endif]-->
 
<!--[if IE 7]>
According to the conditional comment this is Internet Explorer 7<br />
<![endif]-->
 
<!--[if gte IE 5]>
According to the conditional comment this is Internet Explorer 5 and up<br />
<![endif]-->
 
<!--[if lt IE 6]>
According to the conditional comment this is Internet Explorer lower than 6<br />
<![endif]-->
 
<!--[if lte IE 5.5]>
According to the conditional comment this is Internet Explorer lower or equal to 5.5<br />
<![endif]-->
 
<!--[if gt IE 6]>
According to the conditional comment this is Internet Explorer greater than 6<br />
<![endif]-->

Note the special syntax:

! The "not" operator.
lt The "less than" operator.
lte The "less than or equal to" operator.
gt The "greater than" operator.
gte The "greater than or equal to" operator

I hope you will be able to fix things more easy with Internet Fucking Explorer :-P

29Mar/100

Internet Explorer 8 (IE8) compatibility view mode

Everybody knows that Internet Explorer can be a bitch... And so for IE8!

For the scripts who do not work right yet on IE8 there is a way to put IE8 in compatibility mode so you can view the website in a IE7 sorta like environment.

In PHP you have to send the following header, my advice is to add it to your first index file if you handle everything through this index.

<?php
header('X-UA-Compatible: IE=EmulateIE7');
?>

Or you can add a header in the HTML head with a meta tag.
Add this right after the <head> tag:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

In the same way specify IE=5, IE=7, or IE=8 to select one of those compatibility modes. A complete table is given below.

modes Internet Explorer 8 (IE8) compatibility view mode

I hope this makes your life with Internet Explorer a bit easier!

Ps. If you want to break this feature, you could use something like this to force IE to always be compatible:

<?php
header('X-UA-Compatible: IE=100');
?>
27Feb/100

OMNIA Sleeveless Hoody pictures

One of the limited Sleeveless Hoodies from the OMNIA webshop.

Some of you might know the hoody with the sleeves...
They were dropped off while transporting ;-)

13Nov/090

Got a new “Supermicro SATA server 6015B-NTR” today.

Toys, always welcome :-)

Lets see if this baby can host what I want to host on it...

Two things that I noticed directly after removing the top case are the double fans. Which means you have a more powerful air throughput and the two USB ports on the motherboard.

I must say, again, Supermicro is nice stuff to see and to have ;-)

Too bad you only have such stuff near you for some hours ;-) Then it goes directly to the datacenter to do its job...

10Oct/090

Hidden camera show goes wrong…

This is what you get when you keep messing with people with your stupid TV programs...

http://www.vkmag.com/videos/videos_verborgen_camera_show_gaat_fout/

It can be fun, but not everyone can laugh about it.
As you can see on the video, people might kick you in the face...

Personally I can laugh a bit about this once...

4Oct/090

Finaly the Raven Times for OMNIA is done!

After some days hard working for OMNIA on their Raven Times release we are finally done...

Four languages of the complete >40 pages Raven Times.

You can read/download it on www.worldofomnia.com if you sign up for the PaganClan fanpages.

I hope everyone enjoys reading it how much I did with putting it together.

- Special thanks to:
Editors: Steve Sic, Kaat, Femke and Jenny
German translations: Bienchen (Maja)
French translations: Célie
Dutch translations: Femke, Kaat and Stenny
Lay-out and computer stuff: Marius von Witzenbürg
Art/Drawings: Miez, Steve Sic and Alan Lee

OMNIA Website

17Sep/090

The great hosting provider supporting my site with their good service.

My site is quite fast as you might notice and I find it very easy to manage all the things I need to manage.

For those things I can't manage or don't want to manage I have the provider Spothost.

They provide a great service and stability for a price that I can pay, I don't have to worry about tons of setting to choose from to keep my site running, even for mail its a few clicks and you're done. And if you have any question you can always contact them via the contact details on the Spothost website.

If you need custom hosting and a good service, a default hosting package, a dedicated server or a VPS solution. I'd advice you to contact them!

Spothost, my provider who gives me all I want on the internet :-)

13Sep/090

Christian the Lion Meets Old Owners Reunited

I saw this movie before but I just saw it on TV again...

I think its an unnatural behavior to see but a natural reaction since Christian lived with these two guys since young age... Love...

My opinion, let nature be nature and don't try to make it perfect.

13Sep/090

OMNIA – Niiv, played on Piano by Sara

Wonderful played I must say...
Once when I have the room, it would be nice to have a piano again too :-)

Page 1 of 212