This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Installation | |
a. Install & update Linux | |
b. Optional: Install virtualbox guest additions | |
c. If using a minimal install, install common developer tools like java, git, etc… | |
i. sudo apt install openjdk-8-jdk git python build-essential | |
ii. Optional: Install Eclipse IDE for C/C++ Developers | |
2. Download Contiki from git | |
a. git clone https://github.com/contiki-os/contiki.git | |
b. git submodule update --init --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Downconvert 7.1 DTS-HD to DTS 5.1: | |
ffmpeg -i in.mkv -strict -2 -map 0:a:0 -c dts -af "channelmap=channel_layout=5.1" dts.mkv | |
#Downconvert 7.1 DTS-HD to AC3 5.1: | |
ffmpeg -i in.mkv -map 0:a:0 -c ac3 -ac 6 -ab 640k ac3.mkv | |
#Add downconverted audio streams via ffmpeg: | |
ffmpeg -i in.mkv -i dts.mkv -i ac3.mkv -map 0:v -c:v copy -map 0:a -c:a copy -map 1:a -c:a copy -map 2:a -c:a copy -map 0:s -c:s copy out.mkv | |
#Or use MKVToolNix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File: routing.up (chmod 0775) | |
#!/bin/sh | |
iptables -t mangle -A OUTPUT -m owner --uid-owner vpnusername -j MARK --set-mark 3 #Change vpnusername | |
iptables -t nat -A POSTROUTING -o ${dev} -j SNAT --to-source ${ifconfig_local} | |
ip rule add fwmark 3 lookup 200 | |
ip route add 192.168.1.0/24 dev eth0 table 200 # Change the IP to your LAN IP | |
ip route add default via ${route_vpn_gateway} dev ${dev} table 200 |