Basic setup involves:
- Install
dotfiles. - Change the hostname.
| #!/bin/bash | |
| # Load balance multiple internet connections. Requires iproute2, awk and grep. | |
| # (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2 | |
| # Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 )) | |
| # Not much user error checking is done - only pass working network connections | |
| # script needs root to work and at least two interfaces to be useful | |
| [ $EUID -eq 0 -a $# -ge 2 ] || { | |
| echo "Usage (as root): $0 iface1[:weight1] iface2[:weight2] ..." >&2 |
| upstream tunnel { | |
| server 127.0.0.1:3000; | |
| } | |
| server { | |
| listen 80; | |
| server_name dev.codeplane.com br.dev.codeplane.com; | |
| location / { | |
| proxy_set_header X-Real-IP $remote_addr; |
| #!/usr/bin/env bash | |
| # Install F-Droid | |
| if adb shell pm list packages | grep -q org.fdroid.fdroid | |
| then | |
| echo 'F-Droid already installed, skipping.' | |
| else | |
| echo 'Installing F-Droid.' | |
| curl -o /tmp/F-Droid.apk https://f-droid.org/F-Droid.apk | |
| adb install /tmp/F-Droid.apk |
This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.