This file contains hidden or 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
# This is a Klipper configuration for TronXY X5SA, with | |
# CXY-V6 motherboard. | |
# === FLASHING WITH STOCK BOOTLOADER === | |
# You should make firmware for STM32F103 with bootloader offset | |
# at 0x8008800 (Chitu v6 Bootloader). Uncheck USB, and leave default | |
# serial settings. | |
# | |
# Use "./scripts/update_chitu.py ./out/klipper.bin ./out/update.cbd" after make to generate update.cbd. |
This file contains hidden or 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
# This is a Klipper configuration for TronXY X5SA, with | |
# CXY-V6 motherboard. | |
# === FLASHING WITH STOCK BOOTLOADER === | |
# You should make firmware for STM32F103 with bootloader offset | |
# at 0x8008800 (Chitu v6 Bootloader). Uncheck USB, and leave default | |
# serial settings. | |
# | |
# Use "./scripts/update_chitu.py ./out/klipper.bin ./out/update.cbd" after make to generate update.cbd. |
This file contains hidden or 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
+ verbose=on | |
+ shift | |
+ [[ -n '' ]] | |
+ [[ on != on ]] | |
+ get_simple -vv | |
+ [[ -n -vv ]] | |
++ type -t get_-vv | |
+ [[ '' == \f\u\n\c\t\i\o\n ]] | |
+ shift | |
+ [[ -n '' ]] |
This file contains hidden or 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/php | |
<?php | |
ini_set('default_socket_timeout', 15); | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
define('LOGIN', 'admin'); | |
define('PASSWORD', 'password'); | |
define('INFLUXDB', 'homedb'); |
This file contains hidden or 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/php | |
<?php | |
ini_set('default_socket_timeout', 15); | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
if(keen_auth('admin', 'password')) { | |
$metrics = keen_request('rci/', '{"show":{"interface":{"stat":[{"name":"GigabitEthernet1"},{"name":"Wireguard0"}]}}}'); | |
$data = $metrics[2]; |
This file contains hidden or 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
{ | |
"accessories": [ | |
{ | |
"accessory": "mqttthing", | |
"type": "lightbulb", | |
"name": "Led Lamp", | |
"url": "mqtt://127.0.0.1", | |
"topics": |
This file contains hidden or 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
#!/usr/bin/php | |
<?php | |
$list = json_decode(file_get_contents('https://ip-ranges.atlassian.com/'), true); | |
foreach ($list['items'] as $item) { | |
$cidr = $item['cidr']; | |
if (strpos($cidr, ':') === false) { | |
echo "Adding $cidr\n"; |