Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am nerten on github.
  • I am nerten (https://keybase.io/nerten) on keybase.
  • I have a public key ASAsnsqvvRvcv3F5_Sf1lMFTqk6Mg1cVPkuLDjzbvVYnkAo

To claim this, I am signing this object:

@Nerten
Nerten / filebot-on-odroid
Last active Sep 28, 2021
Filebot on Odroid
View filebot-on-odroid
# first install java8 from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
# it's 10x faster then openjdk8
# download jdk-8u101-linux-arm32-vfp-hflt.tar.gz for C1/XU4 or jdk-8u101-linux-arm64-vfp-hflt.tar.gz for C2
# sudo tar zxvf jdk-8*.tar.gz -C /opt
# sudo mv sudo mv /opt/jdk1.8.0_* /opt/jdk1.8.0
# sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0/bin/javac 1
# sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0/bin/java 1
# if installed other version of java, you need to configure for using newest by:
# sudo update-alternatives --config javac
# sudo update-alternatives --config java
@Nerten
Nerten / gist:f30e95a3f649c6938447
Created Jan 24, 2015
Mounting external usb drives automatically to its label on Ubuntu
View gist:f30e95a3f649c6938447
sudo apt-get install -y usbmount
sudo bash -c "cat <<EOT > /etc/usbmount/mount.d/01_create_label_symlink
#!/bin/sh
# This script creates the volume label symlink in /var/run/usbmount.
# Copyright (C) 2014 Oliver Sauder
#
# This file is free software; the copyright holder gives unlimited
# permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
@Nerten
Nerten / gist:399257dba4c36393c063
Last active Jun 2, 2017
Aria2c + webui-aria2 to Ubuntu on Odroid-C1
View gist:399257dba4c36393c063
sudo apt-get install -y aria2
sudo mkdir /etc/aria2
sudo touch /etc/aria2/aria2.session
sudo bash -c "cat <<EOT > /etc/aria2/aria2.conf
daemon=true
continue=true
enable-rpc=true
rpc-listen-port=6800
rpc-listen-all=true
check-certificate=false
@Nerten
Nerten / gist:a8bbbb071b231870bd72
Last active Jan 15, 2018
Install Plex Media Server to Ubuntu on Odroid-C1
View gist:a8bbbb071b231870bd72
sudo apt-get install -y libc6-armel gcc-multilib
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
mkdir /tmp/plex
wget -P /tmp/plex https://downloads.plex.tv/plex-media-server/0.9.11.7.803-87d0708/plexmediaserver-ros6-binaries_0.9.11.7.803-87d0708_armel.deb
dpkg -x /tmp/plex/plexmediaserver-ros6-binaries_0.9.11.7.803-87d0708_armel.deb /tmp/plex
sudo mv /tmp/plex/apps /
sudo mkdir /apps/plexmediaserver/temp
sudo mkdir /apps/plexmediaserver/MediaLibrary
sudo rm -rf /tmp/plex/
@Nerten
Nerten / gist:6961498
Last active Dec 25, 2015
How to recompile newest version of forked-daapd on Ubuntu/Debian and build package.
View gist:6961498
Im using a virtualbox VM for building software.
Full instruction for 64bit Debian 7 from @BitProcessor here http://pastebin.com/LsbcMkDG
sudo -s
apt-get install build-essential -y fakeroot dpkg-dev git libevent1-dev dh-autoreconf
apt-get build-dep -y forked-daapd
cd /usr/src/
apt-get source forked-daapd
dpkg-source -x forked-daapd_0.19gcd-2.1.dsc
@Nerten
Nerten / gist:3706698
Created Sep 12, 2012
oneliner tunes.io downloader with trailing zeros in filenames, and make playlist in folder
View gist:3706698
perl -C -S -MTime::Piece -MFile::Util -Mojo -MMP3::Tag -E '$date = localtime->ymd; $i=0; $c=0; $ENV{MOJO_MAX_MESSAGE_SIZE} = 1073741824; mkdir $dir=$ENV{HOME}."/Dropbox/tunes.io/".$date; open (FILE, ">","${\$dir}/${\$date}.pls"); print FILE "[playlist]\n\n"; $file = "${\$dir}/".File::Util::escape_filename(sprintf("\%02d", ++$i)." - ${\$_->text}.mp3","") and say sprintf("\%02d", $i)." - ${\$_->text}.mp3" and (((-e "$file") && (-s "$file") > 0) || g($_->attrs("href"))->content->asset->move_to($file)) and ((-s "$file") > 0) and ++$c and print FILE "File${\$c}=".sprintf("\%02d", $i)." - ${\$_->text}.mp3\n\nTitle${\$c}=${\$_->text()}\n\nLength${\$c}=". MP3::Tag->new($file)->total_secs_int()."\n\n" for g("tunes.io/playlist.jsp?date=${\$date}")->dom("ul a")->each; print FILE "NumberOfEntries=${\$c}\n\nVersion=2\n\n"; close (FILE);'