Skip to content

Instantly share code, notes, and snippets.

elRadix

Block or report user

Report or block elRadix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elRadix
elRadix / telegram_notification.sh
Created Jun 11, 2019 — forked from anson-vandoren/telegram_notification.sh
Travis-Telegram notification script
View telegram_notification.sh
#!/bin/sh
##########################################################################
# Note: you must have set up your Travis CI environment variables for this
# project to include both TELEGRAM_TOKEN and TELEGRAM_CHAT_ID
# For more details, see the Telegram documentation at:
# - https://core.telegram.org/bots/api
# and the blog posts at:
# - https://ansonvandoren.com/posts/telegram-notification-on-deploy/
# - https://ansonvandoren.com/posts/travis-telegram-integration/
@elRadix
elRadix / install virtualenv ubuntu 16.04.md
Created Jan 10, 2019 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04
View install virtualenv ubuntu 16.04.md

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@elRadix
elRadix / hassio_ubuntu_install_commands.sh
Created Sep 26, 2018 — forked from frenck/hassio_ubuntu_install_commands.sh
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
View hassio_ubuntu_install_commands.sh
sudo -i
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
mkdir -p /etc/docker
echo '{"dns": ["8.8.8.8", "8.8.4.4"]}' > /etc/docker/daemon.json
curl -sSL https://get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install" | bash -s
@elRadix
elRadix / bash_aliases
Created Aug 11, 2018 — forked from IronicBadger/bash_aliases
Lets Encrypt Reverse Proxy Files
View bash_aliases
alias dcp='docker-compose -f /opt/docker-compose.yml '
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel'
alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" '
alias df='df -h -x aufs -x tmpfs -x udev'
alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default'
View nodered plex home-assistant flow
[
{
"id": "e6314782.bec858",
"type": "mqtt in",
"z": "2b42b2a.11da84e",
"name": "Tautulli",
"topic": "tautulli",
"qos": "2",
"broker": "37dc943f.c419dc",
"x": 160,
@elRadix
elRadix / docker-cleanup-resources.md
Created May 13, 2018 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
@elRadix
elRadix / Automatic update of CloudFlare IP addresses in nginx
Created Apr 22, 2018 — forked from AidasK/README.md
Automatic update of CloudFlare IP addresses in nginx
View Automatic update of CloudFlare IP addresses in nginx
This script is a copy of https://marekbosman.com/site/automatic-update-of-cloudflare-ip-addresses-in-nginx/
# How to use?
```sh
wget https://gist.githubusercontent.com/AidasK/27aa5d6f918eca12d95427178b5aaa59/raw/e3ce185de43d89c237e081d3f56e5a79024b4115/cloudflare-update-ip-ranges.sh -P /usr/local/bin/
chmod +x /usr/local/bin/cloudflare-update-ip-ranges.sh
```
add `include /etc/nginx/cloudflare;` this line to /etc/nginx/nginx.conf (above include `/etc/nginx/conf.d/*.conf;`)
```sh
@elRadix
elRadix / sonoff 1clik update configuration.yaml
Last active Apr 19, 2018 — forked from tikkerei/configuration.yaml
Home Assistant, one click upgrade all Sonoff-Tasmota devices, check the current installed and latest available version of firmware.
View sonoff 1clik update configuration.yaml
# Just an example how to check and upgrade the sonoff-tasmota from the Home Assistant
# Twitter link: https://goo.gl/e3y7pa
#
# 1. Open your sonoff webinterface and add in the "Firmware Upgrade" menu following OTA Url, save! Example: https://goo.gl/6ZMjzA
# OTA Url: http://sonoff.maddox.co.uk/tasmota/sonoff.bin
#
# 2. Below the Home Assistant configuration:
script:
check_sonoffs_version:
@elRadix
elRadix / README.md
Created Mar 22, 2018 — forked from Luzifer/README.md
Running docker-compose as a systemd service
View README.md

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
@elRadix
elRadix / expanding_raid_5_array.sh
Created Nov 28, 2015 — forked from stevenharman/expanding_raid_5_array.sh
Improving RAID Expansion speed (and wall clock time) on my Synology DS1515+.
View expanding_raid_5_array.sh
# log the default values:
echo "speed_limit_max: `cat /proc/sys/dev/raid/speed_limit_max`" #=> 200000
echo "speed_limit_min: `cat /proc/sys/dev/raid/speed_limit_min`" #=> 10000
echo "stripe_cache_size: `/sys/block/md2/md/stripe_cache_size`" #=> 256
# update to use more RAM (Stripe Cache Size) and higher lower bound (speed_limit_min)
echo 100000 > /proc/sys/dev/raid/speed_limit_min
# This will result in more memory usage. bumping to 32768 resulted in ~512MB RAM increase.
echo 32768 > /sys/block/md2/md/stripe_cache_size
You can’t perform that action at this time.