Skip to content

Instantly share code, notes, and snippets.

#Create Swap File
dd if=/dev/zero of=/tmp/mnt/sda1/myswap.swp bs=1k count=262144
mkswap /tmp/mnt/sda1/myswap.swp
#Add next line on /jffs/scripts/post-mount
swapon /tmp/mnt/sda1/myswap.swp
#Install Flexget
opkg install python python-lib2to3 python-pip python-setuptools python-lxml]
mkdir cache
easy_install --upgrade transmissionrpc --cache-dir cache
@leonardobsjr
leonardobsjr / Context file
Created October 24, 2018 12:17
Context File - MSM
<!-- The contents of this file will be loaded for each web application -->
<Context cookies="true" crossContext="true">
<!-- Session persistence is disable by default. To enable for all web
apps set the pathname to a non-empty value:
<Manager pathname="SESSIONS.ser" />
To enable session persistence for a single web app, add a
WEB-INF/context.xml
-->
@leonardobsjr
leonardobsjr / create_swap_asuswrt.sh
Last active April 4, 2019 22:18
Creating Swap File for AsusWrt
#Taken from https://mydevtutorials.wordpress.com/2014/01/10/how-to-activate-swap-on-asus-rt-ac68u-router/
dd if=/dev/zero of=/tmp/mnt/sda1/myswap.swp bs=1k count=262144
mkswap /tmp/mnt/sda1/myswap.swp
#Add next line on /jffs/scripts/post-mount
swapon /tmp/mnt/sda1/myswap.swp
#Recuperar backup do Flexget
cat admin > /var/spool/cron/crontabs/admin