WireGuard

Posted on Fri 30 June 2017 in dev • Tagged with 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

Posted on Fri 26 May 2017 in dev • Tagged with 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

Posted on Sun 30 April 2017 in dev • Tagged with 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

Posted on Sun 19 February 2017 in dev • Tagged with 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

Posted on Fri 02 December 2016 in dev • Tagged with 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