Press "Enter" to skip to content

TriplusTutorials Posts

Remove torrents that finished downloading in transmission (WebUI)

Ever found your transmission queue filling up with torrents that have been completed which makes you lose the overview? I have, and coming home to start removing these files was a major waste of time, so I stared writing my first ever Bash script to solve this issue.

First thing you have to do is ensure you have “transmission-remote” installed. For me it was included when I installed transmission on my raspberry pi.

Once you have verified you have this installed you can continue with the creation of the script. Create a new file using you favorite text editor (for example “nano”) and paste the following code:

This is assuming you are running transmission and this script on the same server, and transmission-daemon is listening on localhost:9091. For other hosts/ports you need to pass additional parameters to the transmission-remote command.

Now that you have your script in place, remember to call it using crontab. In below example it is getting called once a day at noon.

The reason I am using this instead of the ability to call a script once a download completes, is because I had to clean up a whole chunk of backlog torrents that were still in my queue. This script will clean up ALL torrents that have status “Finished” once a day.

 

Note: In case your torrents never have status “Finished”, this will not work. Torrents are only set to status Finished if they are not seeding or downloading anymore. This can be forced in transmission by changing the options under “Seeding”.

transmission settings

Leave a Comment

RetroPie and Kodi – Disable auto usbmount and choose mount location

I recently installed Kodi next to my RetroPie installation. While all was going well, I disliked that my external drives would be mounted automatically, hence I was not able to specify a permanent Kodi library path to my media. It seemed that when attaching multiple devices the order they got mounted wouldn’t be consistent. I quickly found out RetroPie comes with “usbmount” which auto mounts the USB storage devices.

Disabling the usbmount is as easy as editing the file located at

There are a few changes you can make here, but the one we are interested in is one of the first ones available. Changing ENABLED to 0 will disable this add-on (at least not auto mount your drives).

Now you can edit you /etc/fstab file and mount the drive to a location of your choosing at boot.

Kodi is able to find your media files in the same directory every time now!

Leave a Comment

Unity Cloud Build – Continuous integration and Unity3d

I’ve had an svn running for my Unity project for a while now, and this tool has saved me countless hours and heart attacks. I work on 2 computers so I would have to transfer my project each time which is a painstaking task. It is also very useful in case you want to revert a certain script to the precious commit (I’ve had some major brainfarts…). Svn keeps my files nice and organised and I can check the history of all my commits.

Repo browser

My next step was to start automating the build process. While I was looking to get a Jenkins server set-up I discovered Unity Cloud Build. It is an amazing tool that allows you to build for the different platforms without the need of a locally hosted build server. The free version enables you to build every 60 minutes for the different platforms. You can even play the WebGL version right from the Cloud Build cockpit!

cockpit

There is a small amount of config required, compared to setting up Jenkins with Unity3d. I read that for Jenkis you require to add additional classes and do some config, while Cloud Build takes care of that for you. The only issue I ran into is that you can’t use native Blender files, so you have to export them into a .fbx format. Apart from that everything is working as expected. Unity Cloud Build checks my Svn server often and when a new change was made starts the build process. I receive mails when the builds I configured are done with an excellent error/warning log. I must say I am really amazed by the simplicity of use of the Cloud Build, while providing such a good and useful service!

Mail

Leave a Comment

RetroPie – My adventures into Retro-gaming

So it has been a while since I did anything interesting except for playing some games… Like most of the time.

Recently I had the idea of utilizing my Raspberry Pi for something else than my “perfectly legal” Torrent box. Quickly I came to the idea of using my pi as an oldschool gaming console using the wonderful work of the guys at RetroPie. I quickly found out I can emulate a whole lot of different consoles, from SNES (Super Nintendo Entertainment System) to GBA (GameBoy Advanced) to PS 1 (PlayStation 1) and DOSBox. I quickly found some ROMS and started my adventures with a plain old keyboard. Turns out retro gaming with a Keyboard is not that easy…

To fully breath the retro-gaming feel I decided to order some SNES controlles with USB extensions (from one of my favorite online WebShops, Banggood). Now I haven’t received them yet so I hope they’ll work without to much of a hassle. For now I will keep playing with a keyboard and hope my controllers arrive soon.

If I have more games set-up I might jump in some more advanced stuff with the RetroPie and share the details, as this is -in my opinion- a very fun little project.

RetroPie worms
RetroPie worms

See you guys later… I’ll be retro-gaming for now!

Leave a Comment

WordPress Multisite WWW-redirect

During the set-up of my new site configuration I stumbled upon an issue that prevented my from visiting my root domain without using the “www” prefix. This bothered me as I never use this prefix manually. After some googling around I found a quick and simple solution that automatically redirects the user to the www-prefixed domain.

In the “.htaccess” file in your root folder add the following code segment at the start of your file above the part you replaced in the WordPress MultiSite installation:

Replace “domain.com” with your domain (e.g. triplustutorials.be). Your root domain is now accessabel without the www prefix! Thanks to this post for the clarification.

Leave a Comment

Moved TriplusTutorials to wordpress and HostWithLove

Hi Guys

It is good to see you again, I have made some changes around here. Those following me on twitter/Facebook may have noticed that I have been changing host. Currently I have decided to go with HostWithLove as they seem like an amazing company with good price-quality. Their support has been super helpful and helped me where required.

Due to the host-change I have also decided to use WordPress as my main-site as it is easy to use and has most of the features I need. With the correct plugins I do not need to worry of spam bots on the forums and general security measures. Due to the changes to WordPress and the host I am still working on resolving some of the issues and problems I have by moving my site(s), but soon everything will be alright again!

Take care!

Leave a Comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close