Welcome to my blog. I mainly write about tools I find useful and solutions to technical problems. Sometimes I share opinions and describe how I use some tech. Use the navigation bar to learn more about my work, presentations and projects. Latest articles I wrote are below. More about me

WireGuard

Fri 30 June 2017 Nils Amiet

linux wireguard vpn security

I co-wrote a blog post on WireGuard with adr13n earlier this month.

Read it on research.kudelskisecurity.com.


Continue reading

Playing 10bit HEVC videos on Linux with NVIDIA and mpv

Fri 26 May 2017 Nils Amiet

linux hevc video

For this to work you will need an NVIDIA GPU.

Get the mpv-build scripts, tune the mpv and ffmpeg options and build:

#!/bin/sh

mkdir -p ~/git
cd ~/git
git clone https://github.com/mpv-player/mpv-build.git
cd mpv-build

# write mpv_options file
cat << EOF > mpv_options
--enable-cuda-hwaccel
EOF

# write ffmpeg_options file …

Continue reading

Setting up gpg-agent

Sun 30 April 2017 Nils Amiet

linux gpg

On Arch gpg-agent comes with the gnupg package so no other package is needed if gpg is already installed.

I use gpg-agent for temporarily caching the PIN for my Yubikey so that I don't have to type it everytime as well as for ssh-agent emulation.

Setup

Add the following lines …


Continue reading

Systemd tips and tricks

Sun 19 February 2017 Nils Amiet

linux systemd

Systemd is great. Here are a few things you can do with it.

Editing unit files

I usually can't remember where unit files are located but that's not an issue. Systemd will let you edit them just by knowing the unit name.

$ export SYSTEMD_EDITOR=vim
$ sudo -E systemctl edit --full …

Continue reading

Bash Magic

Fri 02 December 2016 Nils Amiet

linux bash

Over the years I have learned many tips and tricks when working with Bash. Some are well known while others are not. Here are a few tricks that I find the most useful.

Searching history

So you know you just typed that command but cannot remember what it was. Fine …


Continue reading