This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| # /etc/caddy/Caddyfile | |
| api.example.com:443 { | |
| route { | |
| @options method OPTIONS | |
| handle @options { | |
| header Access-Control-Allow-Origin "https://clientwebsite.com" | |
| header Access-Control-Allow-Methods "POST" | |
| header Access-Control-Allow-Headers "authorization" | |
| header Access-Control-Allow-Credentials true |
| import Cocoa | |
| import FlutterMacOS | |
| import SwiftUI | |
| // Relevant blog post: https://blog.whidev.com/menu-bar-extra-flutter-macos-app | |
| struct Shortcut { | |
| var combination: String | |
| var description: String | |
| var createdAt: Int |
| { | |
| "final_space": true, | |
| "console_title": true, | |
| "console_title_style": "folder", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "horizontal_offset": 0, | |
| "vertical_offset": 0, |
| //Find the top-most window. We need the Z-order to be | |
| //relative to this | |
| HWND window = GetTopWindow(GetDesktopWindow()); | |
| do | |
| { | |
| //Your code | |
| } | |
| while (window = GetWindow(window, GW_HWNDNEXT)); |
| cmake_minimum_required(VERSION 3.10) | |
| project(MyExampleProject VERSION 1.0 LANGUAGES CXX) | |
| add_executable(my_project main.cpp) | |
| # Add Analyze with CppCheck target if CppCheck is installed | |
| if(WIN32) | |
| # Find CppCheck executable | |
| find_program(CMAKE_CXX_CPPCHECK cppcheck NAMES cppcheck HINTS $ENV{PROGRAMFILES}/cppcheck) |
| #!/usr/bin/env python | |
| import sys | |
| import re | |
| import zipfile | |
| if len(sys.argv) != 2: | |
| print("Please pass .knxproj file as argument") |
| // | |
| // Author: Jonathan Blow | |
| // Version: 1 | |
| // Date: 31 August, 2018 | |
| // | |
| // This code is released under the MIT license, which you can find at | |
| // | |
| // https://opensource.org/licenses/MIT | |
| // | |
| // |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import os | |
| import tempfile | |
| import time | |
| import flask | |
| import psutil |
| ##Cross compile CGO go program for Raspberry Pi on x86_64 linux | |
| # Install cross compilation toolset | |
| sudo apt-get install gcc-5-arm-linux-gnueabi | |
| sudo apt-get install gcc-arm-linux-gnueabihf | |
| # Alternatively get the cross compile toolchain from raspberry pi website as | |
| # the standard gcc toolchain need ARMv7 | |
| git clone https://github.com/raspberrypi/tools | |
| # Pi Zero uses /arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex