Build a small web app that is one-click deployable on Digital Ocean
App Platform. The operator goes to App Platform → Create App → picks
the GitHub repo and branch → clicks Create. No doctl, no GitHub
Actions, no spec files, no manual build/run command tweaks in the UI.
Source is at the project root, and migrations run automatically
against DATABASE_URL if a database is needed.
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/bash | |
| # DigitalOcean MCP setup for Claude Desktop (macOS) | |
| # Run with: curl -fsSL <gist-url> | bash | |
| set -e | |
| CONFIG_DIR="$HOME/Library/Application Support/Claude" | |
| CONFIG_FILE="$CONFIG_DIR/claude_desktop_config.json" | |
| echo "" |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>HAR to EPUB Converter</title> | |
| <!-- External Dependencies --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/epubjs@0.3/dist/epub.min.js"></script> |
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
| function ghc() { | |
| local output=$(printf '\n\n' | gh copilot suggest -t shell "$*" 2>&1) | |
| local suggested_command=$(echo "$output" | awk '/# Suggestion:/{getline; getline; gsub(/^[ \t]+/, ""); gsub(/[ \t]+$/, ""); if(NF>0) {printf "%s", $0; exit}}') | |
| [ -n "$suggested_command" ] && print -z "$suggested_command" | |
| } |
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
| CANVAS_STABLE_VERSION=2024-08-28 | |
| PGHOST= | |
| PGPORT= | |
| PGUSER= | |
| PGPASSWORD= | |
| PGDB= | |
| RCE_APP_HOST="/rce" |
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
| // METABASE_API_KEY='' METABASE_URL='' COLLECTION_ID='' node index.js | |
| const { writeFileSync, readFileSync, cpSync, mkdirSync, existsSync } = require('fs'); | |
| const tar = require('tar'); | |
| const path = require('path'); | |
| const request = require('request-promise-native'); | |
| const { METABASE_API_KEY, METABASE_URL, COLLECTION_ID } = process.env; | |
| const SERIALIZATION_API_URL = `${METABASE_URL}/api/ee/serialization`; | |
| const exportCollection = async (collectionId) => { |
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
| <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script> | |
| <script> | |
| hbspt.forms.create({ | |
| region: "na1", | |
| portalId: "24084423", | |
| formId: "6a3edefc-d6eb-4eec-a23c-8a39d5ac65df", | |
| onFormReady: async ($form) => { | |
| const recaptcha = $form.querySelector('.hs-recaptcha'); | |
| if (recaptcha) recaptcha.style.display = "none"; | |
| $form.insertAdjacentHTML('beforebegin', ` |
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
| FROM phusion/passenger-full:latest as build | |
| ARG CANVAS_STABLE_VERSION | |
| ARG PGDB | |
| ARG PGPORT | |
| ARG PGHOST | |
| ARG PGUSER | |
| ARG PGPASSWORD | |
| ARG SMTP_HOST | |
| ARG SMTP_PORT |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can refer to this old SQL workshop for documentation on the sample sqlite database. Play close attention to the Online SQL Interpreter, also located here. That's similar to part of what we want to build!
NewerOlder