A Guide to setup and use Plantuml
- JRE: https://adoptopenjdk.net/
- GraphViz: https://graphviz.org/download/
- VSCode IDE: https://code.visualstudio.com/Download
- vs code Plugin: https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml
<?php | |
namespace main; | |
define("BACKEND_SOCKET", '<where the unix socket>'); | |
define("BASE_URL", '<where this file located>'); | |
function exit_500($msg) { | |
$msg = rtrim($msg, "\n") . "\nDebug trace:\n"; | |
foreach(debug_backtrace() as $trace) { |
package main | |
// Sample file for test: https://drive.google.com/file/d/1DFkJdX5UTnB_xL7g8xwkkdE8BxdurAhN/view?usp=sharing | |
import ( | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"sync" |
#!/usr/bin/env bash | |
#Install brew and qemu + cloud init metadata dependencies | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
brew install qemu | |
brew install cdrtools | |
rm -rf /tmp/ubuntuqemuboot | |
#download Ubuntu 20.04 Cloud Image and resize to 30 Gigs | |
mkdir -p /tmp/ubuntuqemuboot/images |
function uuidv4_1() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
.split('') | |
.map((c) => { | |
if (c === 'x') return Math.floor(Math.random() * 0xf).toString(16); // [0-9a-f] | |
if (c === 'y') return Math.floor(Math.random() * 4 + 8).toString(16); // [89ab] | |
return c; | |
}) | |
.join(''); | |
} |
Plantuml
#!/bin/env bash | |
set -eo pipefail | |
# | |
# Part of an introductory Fedora CoreOS blog post on my website: | |
# https://www.matthiaspreu.com/posts/fedora-coreos-first-steps/ | |
# | |
# Script sets up a FCOS virtual machine using QEMU. | |
# | |
# Initial user "matthias" with password "test" can be used. |
There are two metrics that are important to consider when discussing the size of Docker images.
The example commands shown below will work on Windows, MacOS, and Linux.
pipelines: | |
branches: | |
<BRANCH_NAME>: | |
- step: | |
services: | |
- docker | |
name: Deploy to GKE | |
deployment: staging | |
image: google/cloud-sdk:latest | |
script: |
This document was created to supplement the Code Fellows ASP.NET Core Curriculum for macOS users.
#!/bin/bash | |
# USAGE: CLUSTER=mycluster SERVICE=myservice ./docker-exec-ecs.sh | |
set -euf -o pipefail | |
TASK_ARN=$(aws ecs list-tasks --cluster=$CLUSTER --service=$SERVICE \ | |
| jq -r .taskArns[0]) | |
if [ "$TASK_ARN" = "null" ]; then | |
echo "Could not find any running tasks for $SERVICE on cluster:$CLUSTER." | |
exit 1 | |
fi |