This file contains 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 bash | |
# exit on error | |
set -o errexit | |
STORAGE_DIR=/opt/render/project/.render | |
echo "...Downloading Chrome" | |
mkdir -p $STORAGE_DIR/chrome | |
cd $STORAGE_DIR/chrome | |
wget -P ./ https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb |
This file contains 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
# Easily deploy NightScout CGM Remote Monitor (https://github.com/nightscout/cgm-remote-monitor) | |
# to Render (https://render.com) | |
# ------------------------------ | |
# 1. Fork https://github.com/nightscout/cgm-remote-monitor to your own GitHub account. | |
# 2. Add a render.yaml file to the root of your forked repo, copy/paste the contents below | |
# 3. Commit the new file (and push to GitHub) | |
# 4. In Render, click "New +" > "Blueprint" | |
# 5. Connect your own, forked cgm-remote-monitor repo | |
# 6. Fill in required environment variables | |
# 7. Click "Apply" and wait for the deploy to complete. |
This file contains 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 bash | |
# exit on error | |
set -o errexit | |
# Download | |
wget https://download.visualstudio.microsoft.com/download/pr/d3e46476-4494-41b7-a628-c517794c5a6a/6066215f6c0a18b070e8e6e8b715de0b/dotnet-sdk-6.0.402-linux-x64.tar.gz; | |
# Extract | |
mkdir -p $XDG_CACHE_HOME/dotnet && tar zxf dotnet-sdk-6.0.402-linux-x64.tar.gz -C $XDG_CACHE_HOME/dotnet; |
This file contains 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
# syntax = docker/dockerfile:1.2 | |
FROM ubuntu | |
ARG DB_URL | |
RUN echo $DB_URL | |
RUN printenv |
This file contains 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
# NOTES | |
# Sample render-build.sh | |
# | |
# Symlinks libmagic and downloads headers. Then adds config so that Bundler can compile the native Gem | |
# | |
# Usage | |
# store in bin/render-build.sh | |
# chmod +x bin/render-build.sh | |
# | |
# Configure Render service to use as build command `./bin/render-build.sh` |
This file contains 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 bash | |
# exit on error | |
set -o errexit | |
STORAGE_DIR=/opt/render/project/.render | |
if [[ ! -d $STORAGE_DIR/chrome ]]; then | |
echo "...Downloading Chrome" | |
mkdir -p $STORAGE_DIR/chrome | |
cd $STORAGE_DIR/chrome |
This file contains 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 bash | |
# exit on error | |
set -o errexit | |
# Check build cache | |
if [[ ! -d $XDG_CACHE_HOME/yt-dlp ]]; then | |
echo "...Downloading yt-dlp" | |
cd $XDG_CACHE_HOME | |
mkdir -p ./yt-dlp | |
cd ./yt-dlp |