Skip to content

Instantly share code, notes, and snippets.

@gkralik
gkralik / speedtest.md
Last active March 24, 2022 09:39
Periodically measure internet connection speed using speedtest-cli

install speedtest-cli

$ pip install speedtest-cli

add to crontab

$ crontab -e

# run speedtest every 10 min
@gkralik
gkralik / sabToKodi.sh
Last active June 4, 2024 11:31
sabnzbd post processing script: update kodi library
#!/usr/bin/bash
# Copyright 2017 Gregor Kralik <g.kralik (at) gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@gkralik
gkralik / firefox-import-from-chromium.md
Last active March 24, 2018 08:55
Import Chromium data to Firefox on Linux

If Firefox does not find Chromium in the Import wizard, create a symlink from ~/.config/chromium to /.config/google-chrome. Then Chrome and Chromium should appear in the Import wizard window. Select Chromium, what type of data to import and it should work.

@gkralik
gkralik / docker-compose.yml
Created March 24, 2018 08:54
Elasticsearch + Kibana
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.3
environment:
- "discovery.type=single-node"
ports:
- "9200:9200"
- "9300:9300"
networks: