Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
ENABLED=yes
PROCS=torrserver
ARGS=""
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func
echo 'Creating startup script to mount /opt, /root and start Entware services'
cat << 'EOF' > /etc/init.d/rootopt
#!/bin/sh /etc/rc.common
START=99
STOP=00
start() {
[ -d /etc/root ] && mount -o bind /etc/root /root
[ -d /etc/opt ] && mount -o bind /etc/opt /opt
@alllexx88
alllexx88 / DisplayLink-5.2.14-Linux-5.4.patch
Last active June 1, 2020 20:12
DisplayLink 5.2.14 dkms for Linux 5.4.x patch
@alllexx88
alllexx88 / electricity.ipynb
Created March 25, 2019 16:41
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alllexx88
alllexx88 / electricity.ipynb
Created March 25, 2019 16:23
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alllexx88
alllexx88 / myrulib_to_calibre.sh
Created December 3, 2016 19:40
Convert myrulib database to calibre format database. Contains database-specific parts
#!/bin/bash
SOURCE_DB="myrulib.db"
TARGET_DB="metadata_my.db"
#an empty Calibre database, with books and series
# create/update triggers removed
EMPTY_DB="metadata_empty.db"