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
ithub | |
#include <WiFi.h> | |
#include <PubSubClient.h> | |
#include "ArduinoJson.h" | |
#include <Wire.h> | |
#include <SPI.h> | |
#include <Adafruit_Sensor.h> | |
#include "Adafruit_BME680.h" | |
#include <esp_wifi.h> |
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 | |
_kubeswitch_completions() | |
{ | |
if [ "${#COMP_WORDS[@]}" != "2" ]; then | |
return | |
fi | |
COMPREPLY=($(compgen -W "$(kubectl config get-contexts -o name)" -- "${COMP_WORDS[1]}")) | |
} |
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 | |
INTERFACE=$1 | |
ACTION=$2 | |
if [ "${ACTION}" = "vpn-up" ] && [ "${INTERFACE}" = "ppp0" ]; then | |
DNS_SERVER_FROM_CONFIG=$(cat "${CONNECTION_FILENAME}" | grep dns= | cut -d '=' -f 2 | sed 's/;/ /g') | |
# set DNS servers |
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
// Der Parameter muss das Netz mit "/" als Trennung zur Subnetmask haben, Subnetmask in Binaer angeben | |
// String des Net Parameter ohne Leerzeichen uebergeben!!! | |
function ipnetworkvalid (net) { | |
// Trennen von Netz-IP und Subnetmask | |
net = net.split("/"); | |
// Netzwerk-IP | |
netip = net[0]; | |
// Subnetmask | |
mask = net[1]; | |
// Segmente aufteilen |