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
{ | |
"name": "electron-tldr", | |
"productName": "electron-tldr", | |
"version": "1.0.0", | |
"description": "My Electron application description", | |
"main": "src/index.js", | |
"scripts": { | |
"start": "electron-forge start", | |
"package": "electron-forge package", | |
"make": "electron-forge make", |
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
const { app, BrowserWindow } = require('electron'); | |
// Handle creating/removing shortcuts on Windows when installing/uninstalling. | |
if (require('electron-squirrel-startup')) { // eslint-disable-line global-require | |
app.quit(); | |
} | |
// Keep a global reference of the window object, if you don't, the window will | |
// be closed automatically when the JavaScript object is garbage collected. | |
let mainWindow; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
Well hey there!!! | |
</body> | |
</html> |
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
# Run the "hello world" app: | |
# cd apps/helloworld/ | |
# make menuconfig | |
# Go to "Platform Configuration" and select `Linux user space` | |
# Go to "Library Configuration" and select `ukschedcoop` and Save | |
# `make` to build and `./build/helloworld_linuxu-x86_64` to run | |
FROM ubuntu:latest | |
RUN apt-get update && \ |
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
import UIKit | |
import WebKit | |
class ViewController: UIViewController, WKUIDelegate { | |
var webView: WKWebView! | |
override func loadView() { | |
let webConfiguration = WKWebViewConfiguration() | |
webView = WKWebView(frame: .zero, configuration: webConfiguration) | |
webView.uiDelegate = self |
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
export KNATIVE_VERSION="0.13.0" | |
# Not sure the minimum but this works for helloworld | |
minikube start --cpus=4 --memory=4096 --addons=ingress | |
# Install Knative Serving | |
kubectl apply --filename "https://github.com/knative/serving/releases/download/v$KNATIVE_VERSION/serving-crds.yaml" | |
kubectl apply --filename "https://github.com/knative/serving/releases/download/v$KNATIVE_VERSION/serving-core.yaml" | |
# Configure the magic xip.io DNS name |
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
coreapi: 0.0.0 #!OAS | |
servers: | |
- url: '{scheme}://example.com' | |
variables: | |
scheme: | |
enum: | |
- 'coap' | |
- 'coaps' | |
- 'coap+tcp' | |
- 'coaps+tcp' |
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
asyncapi: 2.0.0 | |
info: | |
title: Example CoREAPI based on AsyncAPI | |
version: 0.0.0 |
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
package main | |
import ( | |
"context" | |
"log" | |
"os" | |
"time" | |
"github.com/plgd-dev/go-coap/v2/udp" | |
) |
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
1. Flash Raspberry OS with Raspberry Pi Imager (make sure to use the [Settings](https://www.raspberrypi.org/blog/raspberry-pi-imager-update-to-v1-6/)!) | |
2. ssh [email protected] | |
3. sudo apt update & sudo apt full-upgrade | |
4. sudo apt install sqlite | |
5. curl https://dl.min.io/server/minio/release/linux-arm/minio --create-dirs -o $HOME/minio-binaries/minio | |
6. chmod +x $HOME/minio-binaries/minio | |
7. export PATH=$PATH:$HOME/minio-binaries/ | |
8. minio --help | |
9. export MINIO_ROOT_USER=minioadmin \ | |
export MINIO_ROOT_PASSWORD=minioadmin \ |