Skip to content

Instantly share code, notes, and snippets.

@hepto
hepto / tvheadend-freesat-setup.md
Last active July 30, 2026 08:54
How to set up TVHeadend for Freesat with a SAT>IP server. Creates a channel list with all and only those from the Freesat bouquets. Based on the Digibit Twin but should work for any SAT>IP server. Additionally, configure Channels DVR to use this channel list.

Freesat setup guide: TVHeadend + Channels DVR

Once TVHeadend (TVH) is running, open its web interface at http://x.x.x.x:9981 and follow these steps.


Part 1: TVHeadend configuration

Step 1 — Enable advanced UI

@hepto
hepto / adding-tailscale-to-edgerouter.md
Last active June 30, 2022 11:56 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipsle)
sudo bash    # if you havent already
@hepto
hepto / volimiter.1s.sh
Last active October 6, 2019 22:38
Bitbar plugin to set a max volume for a given sound device
#!/usr/bin/osascript
set maxVolume to 15
# brew install switchaudio-osx
set deviceSwitcher to "/usr/local/bin/SwitchAudioSource"
set currentDevice to do shell script deviceSwitcher & " -c"
if currentDevice = "Cyrus soundKey" then
set currentVolume to output volume of (get volume settings)
if currentVolume > maxVolume then set volume output volume maxVolume
@hepto
hepto / createpartitions.txt
Last active May 8, 2023 14:05
Windows 10 Partition Creation
rem === https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions
rem === Run this from recovery / install prior to starting the install wizard to put the recovery partition at
rem === end of the drive, else the Windows installer will put it at the start and you won't be able to reclaim
rem === the space, if you choose.
rem === DiskPart /s F:\createpartitions.txt
select disk 0
clean
convert gpt
rem === create the EFI partition
create partition efi size=260
@hepto
hepto / gist:a85fa7130b7ea970357b32e5732410c1
Created July 26, 2018 13:21
Quick way to find all media renderers on the network
gssdp-discover --target=urn:schemas-upnp-org:device:MediaRenderer:1 -n 3 | egrep -o 'http?://[^ ]+' | xargs -I % sh -c 'xmllint --xpath "string(//*[local-name()='\''friendlyName'\''])" %; echo;' | sort
@hepto
hepto / AP42_Debian_Linux_Install.md
Created April 3, 2018 13:52 — forked from pjobson/AP42_Debian_Linux_Install.md
AP42 Debian/Mint/Ubuntu Linux Install Instructions

AP42 Linux Mint / Ubuntu Linux Variants Install Instructions

Instructions on installing Debian variants on Beelink AP42 or Kodlix AP42 and possibly other Apollo Lake Intel CPU computers.

This is the specific machine I purchased from Amazon CoolFun N42 DIY SSD Mini PC Intel Apollo Lake Pentium N4200 Processor.

I couldn't find any step-by-step instructions detailing this, so here we go.

@hepto
hepto / gist:3ebc99877951beacdb3b
Last active January 18, 2016 00:06
Raspberry Pi Dedicated Airplay Setup
Install rasberry pi
Write image to SD card
grab Raspbian Jessie image from https://www.raspberrypi.org/downloads/raspbian/
unount card then
sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskn
login locally pi/raspberry
@hepto
hepto / gist:8c2520626d3f43d8c6ab
Created January 13, 2016 15:34
Tunnel to a VNC over SSH one command mac
ssh -f -L 5900:localhost:5900 user@server sleep 10; open vnc://127.0.0.1:5900
## the sleep 10 ensure it won't stay open after the VNC session is closed
@hepto
hepto / gist:3163bf2e98dec1ad85f0
Created November 24, 2015 13:09
Convert a folder of FLAC to ALAC while keep metadata
for f in ./*.flac; do ffmpeg -i "$f" -c:a alac "${f%.*}.m4a"; done
@hepto
hepto / .profile
Created September 28, 2015 09:20
.profile
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
PATH=$HOME/bin:$PATH
PS1="\[\e[0;37m\]\u@\h\[\e[m\] \[\e[0;36m\]\w\[\e[m\] \[\e[0;37m\]\$\[\e[m\] \[\e[0;36m\]"
trap 'printf "\e[0m"' DEBUG
export CLICOLOR=1
if [ -f $(brew --prefix)/etc/bash_completion ]; then