Skip to content

Instantly share code, notes, and snippets.

View jamer007's full-sized avatar

Jeremy Viel jamer007

View GitHub Profile
@jamer007
jamer007 / plex-htpc-egl.sh
Created December 28, 2024 20:23
start plex htpc egl decoding
QT_XCB_GL_INTEGRATION=xcb_egl snap run plex-htpc
@jamer007
jamer007 / README.md
Created September 29, 2023 04:25 — forked from francoism90/README.md
Change country to unlock channels, increase TX-power. (Use at your own risk)

Warning

Following instructions are provided without any warranty, and may even get you in trouble legally. The instructions are provided for testing, and should be use with care. We (including commentators) are not responsible for any damage to your device(s).

Introduction

This may enable additional channels and power (in most cases don't) on ASUS Merlin provided routers.

@jamer007
jamer007 / animepahe.sh
Last active December 31, 2018 20:20
remove animepahe string
#!/bin/bash
cd /mnt/Animes/animes/
find . -name 'AnimePahe_*.mp4' -print0 | xargs -0 -n1 bash -c 'rename -v "s/AnimePahe_//" "$0"'
@jamer007
jamer007 / reencode.sh
Created November 7, 2018 04:29
reencode with nvenc
#!/bin/bash
PATH=$1
EXT=$2
RES=$3
cd ${PATH}
echo "In repository "${PATH}
for ff in *.${EXT};
do
filename="${ff%.*}.x265"
@jamer007
jamer007 / switch-sound-output.sh
Last active December 31, 2018 20:21
switch sound output
#!/bin/bash
SINK_INDEX1=0
SINK_INDEX2=1
AVAILBLE_SINK=$(pacmd list-sinks | grep 'index:' | grep -o '[0-9]*')
SINK_INDEX1=$(echo $AVAILBLE_SINK | awk '{print $1}')
SINK_INDEX2=$(echo $AVAILBLE_SINK | awk '{print $2}')
ACTIVE_SINK=$(pacmd list-sinks | grep '* index:' | grep -o '[0-9]*')