sudo apt-get install freeradius
in file /etc/freeradius/3.0/clients.conf
there is one localhost interface configured for local testing
and local-network which accepts requests from anyone in 192.168.X.X subnet.
client 192.168.0.0/16 {
import os | |
import zlib | |
from tempfile import mktemp | |
from typing import Callable | |
import atexit | |
try: | |
import brotlicffi as compression_library | |
except ImportError: | |
import zlib as compression_library |
#!/usr/bin/env python3 | |
import re | |
import sys | |
import requests | |
CMDS = {'all_photos', 'photo_link'} | |
def err(): |
function initUi() | |
app.registerUi({["menu"] = "black", ["callback"] = "colorBlack", ["accelerator"] = "1"}); | |
app.registerUi({["menu"] = "gray", ["callback"] = "colorGray", ["accelerator"] = "2"}); | |
app.registerUi({["menu"] = "red", ["callback"] = "colorRed", ["accelerator"] = "3"}); | |
app.registerUi({["menu"] = "green", ["callback"] = "colorGreen", ["accelerator"] = "4"}); | |
app.registerUi({["menu"] = "blue", ["callback"] = "colorBlue", ["accelerator"] = "5"}); | |
end | |
function colorBlack() | |
app.changeToolColor({["color"] = 0x000000, ["selection"] = true}) |
[Unit] | |
Description=Mailcatcher | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/mailcatcher --foreground | |
NoNewPrivileges=true | |
Restart=always |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef int NodeData; | |
typedef struct node { | |
NodeData val; | |
struct node *next; | |
struct node *prev; | |
} NODE; |
#include <CapacitiveSensor.h> | |
#define THRE_LOW 150 | |
#define THRE_HIGH 350 | |
#define L1 9 // left | |
#define L2 8 // Right | |
#define L3 7 // center | |
const byte states[7][3] = { |
#include <Arduino_FreeRTOS.h> | |
#include <Servo.h> | |
Servo myservo; | |
#define STARTED 6 | |
#define FOUND 4 | |
#define GND_IN A5 | |
#define JOY_A A4 |