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
# Fetch and fill config | |
mikrotik_vpn_config=$(curl https://gist.github.com/elmariofredo/7232556/raw/VPN-L2TP-IPSEC.mikrotik \ | |
| sed -e ' | |
s/IPSEC_PEER_SECRET/somesecret/g; | |
s/USER1_NAME/mario/g; | |
s/USER1_PASS/somepass/g; | |
s/IP_RANGE/172.16.24.100-172.16.24.200/g; | |
s/DNS_SERVER/172.16.22.1/g; | |
s/LOCAL_ADDRESS/172.16.22.1/g; | |
s/WINS_SERVER/172.16.22.1/g') |
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
root@OpenWrt:~# cat /etc/config/network | |
config 'interface' 'loopback' | |
option 'ifname' 'lo' | |
option 'proto' 'static' | |
option 'ipaddr' '127.0.0.1' | |
option 'netmask' '255.0.0.0' | |
config 'interface' 'lan' | |
option 'ifname' 'eth0.1' | |
option 'type' 'bridge' |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include "HIDReportData.h" | |
const uint8_t standard_descriptor_primary[] = { | |
HID_RI_USAGE_PAGE(8, 0x01), | |
HID_RI_USAGE(8, 0x06), | |
HID_RI_COLLECTION(8, 0x01), | |
HID_RI_USAGE_PAGE(8, 0x08), |