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
--- | |
system: | |
certificateFilePath: "/greengrass/v2/greengrass-nils_certificate.pem" | |
privateKeyPath: "/greengrass/v2/greengrass-nils_private.key" | |
rootCaPath: "/greengrass/v2/AmazonRootCA1.pem" | |
rootpath: "/greengrass/v2" | |
thingName: "greengrass-nils" | |
services: | |
aws.greengrass.Nucleus: | |
componentType: "NUCLEUS" |
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
/* Create a WiFi access point and provide a web server on it. */ | |
#include <ESP8266WiFi.h> | |
#include "./DNSServer.h" // Patched lib | |
#include <ESP8266WebServer.h> | |
const byte DNS_PORT = 53; // Capture DNS requests on port 53 | |
IPAddress apIP(10, 10, 10, 1); // Private network for server | |
DNSServer dnsServer; // Create the DNS object | |
ESP8266WebServer webServer(80); // HTTP server |
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
provider "aws" { | |
region = "eu-central-1" | |
default_tags { | |
tags = { | |
terraform = "true" | |
} | |
} | |
} | |
# https://registry.terraform.io/providers/-/aws/latest/docs/data-sources/ami |
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
#!/usr/bin/env bash | |
for MY_COUNT in {0..1000} | |
do | |
MY_RANDOM=$((10 + RANDOM % 150)) | |
MY_UUID=$(uuidgen) | |
echo "$MY_COUNT $MY_UUID $MY_RANDOM" | |
dd if="/dev/random" of="test/$MY_UUID" bs=1M count="$MY_RANDOM" | |
done |
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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 Speedtest</title> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="shortcut icon" href="favicon.ico"> | |
<script src="speedtest.js"></script> | |
<script> | |
function I(i){return document.getElementById(i);} |
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
# Copyright 2022 Nils Knieling | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
DELAY 300 | |
ALT-SHIFT PRINTSCREEN | |
DELAY 300 | |
ENTER |
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
DELAY 2000 | |
GUI r | |
DELAY 500 | |
STRING notepad | |
DELAY 250 | |
ENTER | |
DELAY 500 | |
GUI UPARROW | |
DELAY 250 | |
ENTER |
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
function update_table() { | |
const sourceSheetName = "Source"; | |
const destinationSheetName = "Destination"; | |
const ss = SpreadsheetApp.getActiveSpreadsheet(); | |
const [src, dst] = [sourceSheetName, destinationSheetName].map(s => ss.getSheetByName(s)); | |
// update the status column in the source table with the word ??? | |
const setStatus = ['D2','D3','D6']; | |
src.getRangeList(setStatus).setValue("???"); // TODO: Add status word here | |
// add the current date to the Date column in the destination table | |
const date = new Date(); |
NewerOlder