Updating/cleaning a Kodi video library via curl
Using the JSON RPC API you can update a kodi library using the following:
curl -v -d '{"method":"VideoLibrary.Scan", "id":"scan","jsonrpc":"2.0"}' -H 'content-type:application/json' http …
Using the JSON RPC API you can update a kodi library using the following:
curl -v -d '{"method":"VideoLibrary.Scan", "id":"scan","jsonrpc":"2.0"}' -H 'content-type:application/json' http …
If you need to enter the same input into two tmux panes (useful if running the same command on multiple servers) do the following:
ctrl-b : then enter setw synchronize-panes on …
To configure one or more yubi keys to act as a 2fa challenge for Linux desktop login do the following:
If you lock a Yubi key's GPG functionality by entering the admin pin wrong 3 times (or some how just screw it up) do the following:
Copy this into a …
I've recently replaced my GPG keys with new ones stored on Yubi keys, why? Well...
I recently had to add emoji support to a site which used the utf8 charset on a MariaDB 10.1 server.
To do this I needed to change the charset …
The sensu metrics memcached plugin by default outputs the memcached version, if you pipe this to graphite this will generate an error:
[listener] invalid line (hostname.memcached.version 1.4 …This site is powered by Pelican which uses Pygments to add syntax highlighting.
By default pelican doesn't come with a pygments.css file, the following command will generate one:
pygmentize …Google Page Speed Insights often advises to optimize images to reduce the page size, this is often easier said than done especially for sites that allow user uploads such as …
I have a late 2015 Mac book pro with Ubuntu 16.04 Mate as the default OS and Mac High Sierra as the secondary OS.
When upgrading to High Sierra …