Skip to content

Instantly share code, notes, and snippets.

@fblaese
fblaese / anet_a8.def.json
Created November 27, 2019 13:37
Anet A8 Config
{
"version": 2,
"name": "Anet A8",
"inherits": "fdmprinter",
"metadata": {
"visible": true,
"author": "Fabian",
"manufacturer": "Anet",
"file_formats": "text/x-gcode",
"machine_extruder_trains":
@fblaese
fblaese / fff
Last active November 21, 2019 20:08
gateway2
config fff 'system'
option hostname 'mein-gateway'
option hoodname 'Hoodname'
@fblaese
fblaese / nodewatcher
Last active August 29, 2019 10:33
nodewatcher für Freifunk v3
#!/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)
@fblaese
fblaese / mc_idle_wrapper.c
Created March 10, 2019 21:32
simple wrapper for minecraft server which partially implements the client logon protocol to check if a specific user tried to login.
#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);
@fblaese
fblaese / gateway
Last active May 19, 2019 10:35
Beispielkonfiguration Gatewayfirmware
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.
@fblaese
fblaese / extract-depends.sh
Last active March 7, 2018 16:43
Build graphviz dot graph from OpenWRT Package Dependencies
#!/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
}