install sickbeard on synology

sickbeard is an awesome application to manage/download your favorite tvshows, and it’s prety simple to install on synology step 1: add repository synocommunity in synology’s package center step 2: install applications git, python and “sickbeard custom” install sickbeard custom in… Continue Reading


import a blocklist into iptables

sometimes, we need only to import a custom ip liste to iptables. here is the solution: create a text file contains all the ip to be blocked (one per line), ex: blocklist.txt create a shell script:


get parameters in shell

there is a common code that we can use to get all the parameters:

shift is a shell builtin that operates on the positional parameters. Each time you invoke shift, it “shifts” all the positional parameters down by one like in… Continue Reading


how to install composer on synology

By default, phar extension is not enabled, installation will be failed:

enable phar extension:

now get composer.phar

if you encounter this kind of error:

open DSM,  In the control-panel under Web-Services in the php-settings enable Customize PHP… Continue Reading


Promise pattern for Jasmine

Jasmine is a great tool for Unit Testing, but its async test is painful. I’ve created a very simple promise pattern to make this kind of test easier.

the usage is pretty simple, you can either use directly Promise,… Continue Reading