Content Security Policy for Jekyll blog hosted on Github

As of writing this post it was not possible to add a CSP in the http header for pages. As an alternativ you can add a CSP in the HTML meta tag. The only limitation is that you can’t use frame-ancestors, report-uri, or sandbox features of CSP. [Read More]

Run Shell-Script after closing the shell

In the example the output of the minecraft server is send to nohup.out file in the directory the file is being executed by using nohup. The & at the end causes the shell to execute the command in the background subshell. The shell does not wait for the command to... [Read More]

Kill process by name in bash

Easy way to kill processes by name in bash. Get list of processes with “ps aux”. Then filter the lines of the table that contain the searched name. With “awk {‘print $2’}” get the PID of the processes that matched the name before. Finally kill the process with “xargs kill... [Read More]