Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix 0xFelix

View GitHub Profile
@0xFelix
0xFelix / huawei_dhcp.sh
Last active Dec 28, 2017 — forked from halms/huawei_dhcp.sh
Huawei Modem in LEDE using NCM, copy file to /lib/netifd/proto and make it executable (chmod +x huawei_dhcp.sh), kmod-usb-net-huawei-cdc-ncm and usb-modeswitch need to be installed
View huawei_dhcp.sh
#!/bin/sh
. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
proto_huawei_dhcp_init_config() {
available=1
proto_config_add_string "device:device"
proto_config_add_string pin
@0xFelix
0xFelix / codes.txt
Last active Jul 15, 2019
Sonoff RF Bridge 433 / ESPurna and Brennenstuhl RCS 1000 N
View codes.txt
Sonoff RF Bridge 433 / ESPurna and Brennenstuhl RCS 1000 N
Taken from
http://tinkerman.cat/decoding-433mhz-rf-data-from-wireless-switches-the-data
and
https://www.itead.cc/wiki/images/5/5e/RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf
and
https://github.com/pimatic/rfcontroljs/blob/master/src/protocols/switch2.coffee
Protocol 'switch2' (Elro)
@0xFelix
0xFelix / makepkg-arm
Created Jul 15, 2016
Put both files in the same directory and make makepkg-arm executable, then use makepkg-arm instead of makepkg, cli parameters are passed through if given
View makepkg-arm
#!/bin/bash
# makepkg-arm script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
makepkg --config "$DIR/makepkg-arm.conf" "$@"
You can’t perform that action at this time.