This howto describes installing entware for the Tomato open-source router firmware.
- USB stick - 1G or more in size
- USB-capable router running TomatoUSB.
| #!/bin/sh | |
| set -e | |
| #cpp -D__ARM_ARCH__=7 crypto/chacha20/chacha20-arm.s > crypto/chacha20/chacha20-arm.preprocessed.s | |
| #cpp -D__ARM_ARCH__=7 crypto/poly1305/poly1305-arm.s > crypto/poly1305/poly1305-arm.preprocessed.s | |
| ~/freshtomato/buildroot-2019.02.2/output/host/bin/arm-linux-g++ \ | |
| -march=armv7-a -mtune=cortex-a9 -mfloat-abi=soft -mthumb \ | |
| -I . -g -O2 -DNDEBUG -DWITH_NETWORK_BSD=1 \ | |
| -fno-omit-frame-pointer -pthread -lrt -o tunsafe \ |
| #!/bin/sh | |
| # | |
| # automount script for USB flash drives | |
| # | |
| # Details about automount scripts: | |
| # http://www.linksysinfo.org/index.php?threads/status-logs-dont-update-correctly.69614/#post-240957 | |
| # http://www.linksysinfo.org/index.php?threads/how-can-i-run-transimission-after-mounting-hdd.70573/#post-252990 | |
| # Ensure that only one /opt bindable mount exists. Repeated /opt | |
| # mounts can happen (Linux will allow this!) if clicking "Mount" |
This howto describes installing entware for the Tomato open-source router firmware.
Merged into entware-ng project
https://github.com/Entware-ng/Entware-ng
Deprecated
These instructions are for ARM devices only. For mipsel devices, then see the official entware readme instead at: https://github.com/Entware/entware
| #*/30 * * * * /home/user/scripts/cleanhidden.sh | |
| #1 6 * * * /home/user/scripts/gcloud-start.cron | |
| wget x86.ca/bench.sh -O - -o /dev/null|bash | |
| http://www.speedtest.net/result/6507176914.png | |
| wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip |
| #! /usr/bin/env python | |
| # Standard library imports. | |
| from SocketServer import ThreadingMixIn | |
| import BaseHTTPServer | |
| import SimpleHTTPServer | |
| import sys | |
| import json | |
| import os | |
| from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext, |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| # -*- coding: utf-8 -*- | |
| #------------------------------------------------------------------------------ | |
| # | |
| # Plex movie ratings script by /u/SwiftPanda16 | |
| # | |
| # *** Use at your own risk! *** | |
| # *** I am not responsible for damages to your Plex server or libraries. *** | |
| # | |
| #------------------------------------------------------------------------------ |
| import requests | |
| import sys | |
| PLEXPY_URL = 'http://localhost:8181' | |
| APIKEY = 'xxxxxxxxxx' | |
| MESSAGE = 'Your stream was terminated for "reasons"' | |
| session_id = sys.argv[1] | |
| payload = {'apikey': APIKEY, |
| import asyncio | |
| import json | |
| import os | |
| import struct | |
| import sys | |
| import time | |
| from plexapi.myplex import MyPlexAccount | |
| ### EDIT SETTINGS ### |