http://ota.tasmota.com/tasmota/release/tasmota-display.bin
Backlog TimeDst 0,0,3,1,3,180; TimeStd 0,0,10,1,4,120; Timezone 99
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # CONFIGURATION | |
| # test | |
| #DISCORD_GUILD_ID="1434925424957460520" | |
| # prod | |
| DISCORD_GUILD_ID="1393669204238008350" |
http://ota.tasmota.com/tasmota/release/tasmota-display.bin
Backlog TimeDst 0,0,3,1,3,180; TimeStd 0,0,10,1,4,120; Timezone 99
| <?php | |
| if ( | |
| empty($_SERVER['argc']) || empty($_SERVER['argv']) || | |
| !is_int($_SERVER['argc']) || !is_array($_SERVER['argv']) || | |
| 3 !== $_SERVER['argc'] || 3 !== count($_SERVER['argv']) | |
| ) | |
| { | |
| echo 'usage: ', $_SERVER['argv'][0], ' <input> <output>', "\n"; | |
| exit; | |
| } |
| <?php | |
| namespace User890104; | |
| class MultiCurl { | |
| private $multi_handle; | |
| private $handles = []; | |
| public function __construct() { | |
| $multi_handle = curl_multi_init(); |
| for cnt in $(lxc list --format csv --columns n) | |
| do | |
| GATEWAY_NUM=$(lxc exec $cnt -- bash -c 'route -n -A inet6 | grep -F "::/0" | grep -Fv "!n" | wc -l') | |
| if [ $GATEWAY_NUM -eq 0 ] | |
| then | |
| echo restart network on $cnt | |
| lxc exec $cnt -- netplan apply | |
| fi | |
| done |
| # This will issue a production (valid and trusted) certificate | |
| certbot certonly --agree-tos --manual --preferred-challenge=dns --manual-auth-hook=./hook.sh --register-unsafely-without-email --manual-public-ip-logging-ok -d '*.example.com' -d 'example.com' --server https://acme-v02.api.letsencrypt.org/directory |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #ifdef _MSC_VER | |
| #include <intrin.h> /* for rdtscp and clflush */ | |
| #pragma optimize("gt",on) | |
| #else | |
| #include <x86intrin.h> /* for rdtscp and clflush */ | |
| #endif |
| const cacheId = 'cache-v1'; | |
| function fetchAndCache(request, cache) { | |
| return fetch(request).then(function(response) { | |
| return cache.put(request, response.clone()).then(function() { | |
| return response; | |
| }); | |
| }); | |
| } |
| #!/bin/bash | |
| log_dt() { | |
| date '+%d.%m.%y %H:%M:%S' | |
| } | |
| DAY_OF_WEEK=$(date +%u) | |
| if [ $DAY_OF_WEEK -eq 1 ] | |
| then |
| // run in console | |
| // enable popups for website first | |
| if (!('lastLat' in window)) { | |
| window.lastLat = 0; | |
| } | |
| if (!('lastLon' in window)) { | |
| window.lastLon = 0; | |
| } | |
| setInterval(function() { | |
| $.getJSON(location.href.replace('/tracking', '/status')).then(function(data){ |