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 / rpi-vpn-gw-install.sh
Last active September 8, 2024 19:51
Automatically install OpenVPN Gateway on Raspberry PI
#!/usr/bin/env bash
# Source: https://gist.github.com/Limych/35e83cb65ca8e48808c567984aee1ff8
#
# Usage:
# Place one or more OVPN-files to some folder on target machine.
# You may additional place VPN credentials to file 'login.txt': 1st line — login, 2nd line — password.
# Then at that folder run this command:
# bash <(curl -sL https://gist.github.com/Limych/35e83cb65ca8e48808c567984aee1ff8/raw/rpi-vpn-gw-install.sh)
@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 September 8, 2024 20:11
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 * * * * $HOME/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.