- This container definition has an anonymous volume that will mount to /workspace/node_modules.
This drastically improves IO performance :) yarn install && touch node_modules/.gitkeep
runs post container creation
Commit the .gitkeep to source control, but leave the rest of node_modules ignored.
This is because the folder needs to exist for it to be mountable
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
#cloud-config | |
package_update: true | |
package_upgrade: true | |
packages: | |
- git | |
- python3 | |
- python3-venv | |
runcmd: | |
# ------------------------------------------------------------------ |
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
blueprint: | |
name: "Turn off charger at battery level" | |
description: "Turn off a switch when a mobile device's battery reaches a certain level" | |
domain: automation | |
input: | |
battery_level_sensor: | |
name: Battery Level Sensor | |
description: "Select the sensor that reports the battery level" | |
selector: | |
entity: |
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
############################## | |
## NIGHTSCOUT BACKUP SCRIPT ## | |
############################## | |
# I'm using an Atlas DB called 'nightscout-cluster' at the time of writing. | |
# This DB is limited to 500MB so every now and then, | |
# I want pump its records over to 'serverlessnightscout' (a serverless Atlas DB), which is unlimited. | |
# If Nightscout ever starts supporting serverless databases, I can just update the | |
# connectionstring in Heroku, and start using the unlimited one. |
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
#!/usr/bin/env node | |
/** | |
* @description Firebase Functions Workspace Deploy Hooks | |
* @author Niels Maerten <https://github.com/nielsmaerten> | |
* @license MIT | |
* | |
* This script is designed for Yarn v3 workspaces. | |
* | |
* ### WHAT DOES THIS SCRIPT DO? ### |
This gist contains files and instructions to setup MongoDB on a simple docker host.
Connections to Mongo are secured using TLS, and the certificate is signed using Let's Encrypt.
MongoExpress is included as well, but should only be used over an SSH tunnel.
-
Update
.env
-
Make sure docker-compose is available
Instuctions and files to set up Wordpress on a simple Docker host.
Wordpress sits behind a HTTPS reverse proxy (nginx) which can be signed by Let's Encrypt.
- start with a micro instance, we can always increase it later **
- use Container Optimized OS, and a 10GB disk
- no need to reserve a static IP, we will use DDNS instead
- enable deletion protection
I hereby claim:
- I am nielsmaerten on github.
- I am nielsmaerten (https://keybase.io/nielsmaerten) on keybase.
- I have a public key ASBCfl-SakSQKsOd-Q-s7ycA3mbyTHS2tqlcOXt8hcZ59go
To claim this, I am signing this object: