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/sh | |
# 1. create v4l2loopback device /dev/video42 using | |
# $ sudo modprobe v4l2loopback video_nr=42 max_buffers=2 exclusive_caps=1 | |
ts=$(date +%Y-%m-%dT%H:%M:%SZ-%s) | |
PREFIX=/mnt/data/Videos | |
CAMERA_INPUT=/dev/video0 |
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
import { defineAsyncComponent } from 'vue' | |
const Content = defineAsyncComponent(() => import('./component-content.js')) | |
export default { | |
name: 'App', | |
components: { Content }, | |
template: /*html*/` | |
<Content /> | |
` |
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
# Create an EBS volume and attach to the EC2 instance | |
# Format as XFS and mount at /mnt/elastic-data | |
# /dev/nvme2n1 on /mnt/elastic-data type xfs (rw,relatime,attr2,inode64,noquota) | |
# For ElasticSearch to work - got to change this sysctl: | |
# | |
# sudo sysctl vm.max_map_count=262144 | |
# | |
# $ cat docker-compose.yml |
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
# Create an EBS volume and attach to the EC2 instance | |
# Format as XFS and mount at /mnt/elastic-data | |
# /dev/nvme2n1 on /mnt/elastic-data type xfs (rw,relatime,attr2,inode64,noquota) | |
# $ cat docker-compose.yml | |
version: "3.7" | |
services: | |
elasticsearch: |
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
# Create an EBS volume and attach to the EC2 instance | |
# Format as XFS and mount at /mnt/elastic-data | |
# /dev/nvme2n1 on /mnt/elastic-data type xfs (rw,relatime,attr2,inode64,noquota) | |
# $ cat docker-compose.yml | |
version: "3.7" | |
services: | |
elasticsearch: |
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 | |
# Common utility functions for bash scripts, | |
# - fatal -- use like `some_cmd || fatal "Some cmd failed"` | |
# - debug -- use like `debug "This is a debug message"` | |
# - timer -- use like `tm some_cmd` as a wrapper | |
# - retry -- use like `retry some_cmd` as a wrapper, retries with exp. backoff | |
# | |
# Source this bash like so: `. util.sh` | |
# |
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 node:14.4 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 \ | |
ca-certificates \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& mkdir -p /app \ | |
&& chown node:node /app | |
ENV NODE_ENV production |
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
/* DEBUG Grid */ | |
body { | |
position: relative; | |
background: blue; | |
} | |
body:after { | |
background-size: var(--grid-size) var(--grid-size); | |
background-repeat: repeat; | |
background-image: | |
linear-gradient( |
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
controller: | |
kind: DaemonSet | |
ingressClass: XXX-ingress | |
daemonset: | |
useHostPort: true | |
hostPorts: | |
http: 68888 | |
https: null | |
containerPort: | |
http: 68888 |
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
## optional: run the amazon cli container | |
docker run -ti --rm --name amazon-cli \ | |
-v ~/.aws:/root/.aws \ | |
-v ~/.docker:/root/.docker \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
--entrypoint /bin/bash \ | |
amazon/aws-cli | |
## (slow) optional: generate yum repository configuration using an additional tool |