#!/bin/sh | |
if [ $# -ne 1 ] ; then | |
echo "Need File Name" | |
exit | |
fi | |
s3AccessKey="##ACCESS##" | |
s3SecretKey="##SECRET##" | |
s3Bucket="data.example.com" |
version: '3.7' | |
networks: | |
traefik: | |
external: true | |
volumes: | |
db_data: | |
secrets: |
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:
#!/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 |
#cloud-config | |
# | |
# This is an example file to automatically install chef-client and run a | |
# list of recipes when the instance boots for the first time. | |
# Make sure that this file is valid yaml before starting instances. | |
# It should be passed as user-data when starting the instance. | |
# | |
# This example assumes the instance is 16.04 (xenial) | |
#!/usr/bin/python | |
import requests | |
import os | |
import boto.ec2 | |
import sys | |
import re | |
build_url = os.environ['BUILD_URL'] | |
jenkins_base_url = os.environ['JENKINS_URL'] |
- You will need to first make sure you have subscribed to the marketplace product
- Get the AMI of the marketplace
- Copy the script to machine
awsume
(or otherwise authorize) to AWS- chmod the script to be executable if needed
chmod +x marketplace-ami-encryptor.sh
Usage ./marketplace-ami-encryptor.sh {region} {ami} {name}
Example: ./marketplace-ami-encryptor.sh us-east-1 ami-f6eed4e0 OpenVPN
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y taskd | |
CMD taskd server |
--- old/retro-games.lisp 2011-06-14 00:08:07.000000000 -0400 | |
+++ new/retro-games.lisp 2011-06-14 00:07:33.000000000 -0400 | |
@@ -1,21 +1,24 @@ | |
(in-package :cl-user) | |
-(defpackage :retro-games | |
- (:use :cl :cl-who :hunchentoot :parenscript :elephant)) | |
+(defpackage :game-voter | |
+ (:use :cl :cl-who :hunchentoot :parenscript :elephant) | |
+ (:import-from :css-lite :css) |