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
{ | |
"version": 2, | |
"name": "Anet A8", | |
"inherits": "fdmprinter", | |
"metadata": { | |
"visible": true, | |
"author": "Fabian", | |
"manufacturer": "Anet", | |
"file_formats": "text/x-gcode", | |
"machine_extruder_trains": |
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
config fff 'system' | |
option hostname 'mein-gateway' | |
option hoodname 'Hoodname' |
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
#!/bin/sh | |
# Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg | |
# License; GPL v3 | |
SCRIPT_VERSION="41" | |
#Get the configuration from the uci configuration file | |
#If it does not exists, then get it from a normal bash file with variables. | |
if [ -f /etc/config/nodewatcher ];then | |
SCRIPT_ERROR_LEVEL=$(uci get nodewatcher.@script[0].error_level) | |
SCRIPT_LOGFILE=$(uci get nodewatcher.@script[0].logfile) |
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 <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
static void die(const char *msg) { | |
perror(msg); |
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
config version | |
option config_version '1' | |
config gateway | |
option name 'fff-gw-blubber' | |
config vlan '1' | |
option comment 'client' | |
option ports '4 5t' # t -> tagged. cpuport wird (bei den meisten geräten) automatisch hinzugefügt. |
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
#!/bin/bash | |
function extract() { | |
for g in $1; do | |
if echo $g | grep "fff" > /dev/null; then | |
echo " \"$name\" -> \"$(echo $g | cut -d'+' -f2 )\"" | |
fi | |
done | |
} | |