Skip to content

Instantly share code, notes, and snippets.

View gist:8b694e9b0e8302bbbbd750520ad5753c
#!/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
View R3600-zapret-tor.sh
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 Jun 1, 2020
DisplayLink 5.2.14 dkms for Linux 5.4.x patch
View DisplayLink-5.2.14-Linux-5.4.patch
@alllexx88
alllexx88 / electricity.ipynb
Created Mar 25, 2019
Created on Cognitive Class Labs
View electricity.ipynb
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 Mar 25, 2019
Created on Cognitive Class Labs
View electricity.ipynb
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 Dec 3, 2016
Convert myrulib database to calibre format database. Contains database-specific parts
View myrulib_to_calibre.sh
#!/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"
You can’t perform that action at this time.