Skip to content

Instantly share code, notes, and snippets.

View Limych's full-sized avatar
💭
I may be slow to respond.

Andrey "Limych" Khrolenok Limych

💭
I may be slow to respond.
View GitHub Profile
@Limych
Limych / install-supervised-hass-on-coreelec.bash
Last active April 22, 2023 21:10 — forked from juvenn/install.sh
Home Assistant Supervisor on Coreelec 20.x
#!/usr/bin/env bash
set -e
function info { echo -e "\e[32m[info] $*\e[39m"; }
function warn { echo -e "\e[33m[warn] $*\e[39m"; }
function error { echo -e "\e[31m[error] $*\e[39m"; exit 1; }
ARCH=$(uname -m)
# Check env
#!/bin/sh
# Require PREF_ADMIN_USER and PREF_ADMIN_PASS variables
# Main prepare
########################################################################################
rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime
@Limych
Limych / chande_bg.sh
Last active April 28, 2021 00:59
Rotate best Earth photos as desktop background on Ubuntu
#!/usr/bin/env bash
# Rotate best Earth photos as desktop background on Ubuntu.
#
# Just run this file via crontab. As example for every hour rotation:
# 0 * * * * ~/change_bg.sh
#
# Source: https://gist.github.com/Limych/1ebb913ab57a87ce512bb72a5dca1807
user=$(whoami)
#!/bin/sh
# Add swap space
sudo dphys-swapfile swapoff
sudo sed -r -i "s/(CONF_SWAPSIZE\s*=.*)/#\1/g; s/#((CONF_MAXSWAP\s*=).*)/\24096/g" /etc/dphys-swapfile
sudo dphys-swapfile swapon
# Update Raspberry Pi and schedule auto-updates
sudo apt-get update && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
#!/bin/sh
# Script for automatic installation mediaserver on TrueNAS:
# Torrent client, Sonarr, Radarr, Lidarr and some support programs.
# Create new TrueNAS jail using "Advanced jail creation".
# Ensure for switch on jail flag allow_mlock (REQUIRED)
# Jail flag allow_raw_sockets is helpful for troubleshooting (e.g. ping, traceroute)
# Setup jail's mountpoints.
@Limych
Limych / FreeNAS11 Media Stack.md
Created November 12, 2019 04:47 — forked from BernCarney/FreeNAS11 Media Stack.md
FreeNAS 11 - Jails setup for Plex, NGINX, PlexPy, Sonarr, Radarr, Jackett, Ombi, and Nzbget

FreeNAS 11 setup for Plex, PlexPy, Sonarr, Radarr, Jackett, NZBGet, Organizr, NGinx, and Ombi

I am currently working on updating this guide after updating my media server. I have added notes on things I no longer use but may update those sections in the future for users who still use them. As of now, I have everything working with the exception of Ombi and the plugins I no longer use.