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
# static configuration | |
global: | |
checkNewVersion: true | |
serversTransport: | |
insecureSkipVerify: true | |
entryPoints: | |
traefik: |
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
# Infrafloss, a fairyfloss for the infra among us | |
# Intended for use with nopjmp's fairyfloss VS Code extention | |
# VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=nopjmp.fairyfloss | |
# Copy this file into your settings.json | |
"workbench.colorTheme": "fairyfloss", | |
"editor.tokenColorCustomizations": | |
{ | |
"textMateRules": | |
[ |
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
# Kierans Generic Makefile | |
# www.kieranbingham.co.uk | |
# Default to build with multiple instances for speed | |
MAKEFLAGS =+ -j | |
# Beware, This will create this application | |
# binary based on the current directory name. | |
TARGET := $(shell basename `pwd`) |
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/sh | |
if [ $# -ne 1 ] ; then | |
echo "Need File Name" | |
exit | |
fi | |
s3AccessKey="##ACCESS##" | |
s3SecretKey="##SECRET##" | |
s3Bucket="data.example.com" |
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
version: '3.7' | |
networks: | |
traefik: | |
external: true | |
volumes: | |
db_data: | |
secrets: |
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
hist () { | |
if [ "$#" -eq 1 ]; then | |
history | grep "$1" | tail | |
elif [ "$#" -eq 2 ]; then | |
history | grep "$1" | tail -n "$2" | |
else | |
history | tail | |
fi | |
} |
You can load ClojureScript :advanced
code directly into an ESP32 WROVER running Espruino for execution upon boot, by creating a binary and flashing it to the JavaScript "boot ROM" area. This has the same effect as when loading code via the Espruino Web IDE, in the "Direct to Flash (execute code at boot)" mode, but flashing is much quicker and more reliable.
Note: To do this, you'll need an ESP32 WROVER with SPI PSRAM, as opposed to just a WROOM, as the ClojureScript in this example uses more RAM than is available in the WROOM.
Here is a small program that uses enough to pull in data structures, etc, leading to nearly 100 KiB:
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
set terminal pngcairo font "arial,10" size 500,500 | |
set datafile separator "," | |
set output 'barchart.png' | |
set xtics rotate by 270 | |
set key top left | |
set boxwidth 0.75 | |
set style fill solid | |
set title "Age (In Days) of Presidential Candidates at Start of 2021 Term" | |
plot "ppdays.data" using 2:xtic(1) notitle with boxes, 14050 title "Millenial", 15264 title "Gen X", 20838 title "BOOMER", 27777 title "Silent Generation" |
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/sh | |
# | |
# This script deploys the given manifest, | |
# tracks the deployment, and rolls back on failure. | |
# | |
# First execute this with "myapp.yaml" and then try it with "myapp.failing.yaml" | |
# | |
MANIFEST_PATH=$1 | |
DEPLOYMENT_NAME=myapp |