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
import android.databinding.BaseObservable; | |
import android.databinding.BindingAdapter; | |
import android.databinding.BindingConversion; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.widget.TextView; | |
import java.io.Serializable; |
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
'use strict'; | |
/** | |
* Add before safe hook and validation to all custom models with an userId property to prevent changing userId | |
* properties by non-admin users. | |
*/ | |
const USER_ID_PROPERTY = 'userId'; | |
const INVALID_USER_ID = -1; |
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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
ens3: | |
addresses: ['203.0.113.100/24','2001:db8:2:1::1/64'] | |
gateway4: 203.0.113.1 | |
gateway6: fe80::1 | |
nameservers: | |
addresses: [203.0.113.10,203.0.113.20,'2001:db8:1:1::a','2001:db8:1:1::b'] |
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
{ | |
"ipv6": true, | |
"fixed-cidr-v6": "fd00::/80" | |
} |
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
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name | |
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 615/systemd-resolve | |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 758/sshd | |
tcp6 0 0 :::8080 :::* LISTEN 13101/docker-proxy | |
tcp6 0 0 :::22 :::* LISTEN 758/sshd |
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
Site A | Site B | ||
---|---|---|---|
IPv4 address | 192.168.10.2 | 192.168.20.2 | |
IPv4 netmask | 255.255.255.0 | 255.255.255.0 | |
IPv4 gateway | 192.168.10.1 | 192.168.20.1 | |
Use custom DNS servers | 192.168.10.1 | 192.168.20.1 |
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
Usage: | |
1. Save install-luci-app-wireguard.sh in /root folder (e.g. with vi or with WinScp). | |
2. Make file executable: | |
chmod +x /root/install-luci-app-wireguard.sh | |
3. Add file to crontab (execute every 5th minute, but then sleep another two minutes before execution): | |
echo '*/5 * * * * sleep 120 && /root/install-luci-app-wireguard.sh' >> /etc/crontabs/root |