- Table of Contents
- System Overview
- Service Overview
- Contributing Applications, Daemons, and Windows Services
- Hours of Operation
- Execution Design
- Infrastructure and Network Design
- Resilience, Fault Tolerance and High-Availability
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
#!/bin/bash | |
instanceID=$1 | |
date=$(date +%Y%m%d) | |
function downloadLog () { | |
local log=$1 | |
aws rds download-db-log-file-portion \ | |
--output text \ |
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
brew uninstall rbenv | |
brew uninstall ruby-build | |
rm -rf $HOME/.rbenv | |
exec $SHELL -l | |
cd $HOME | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.2 | |
source $HOME/.rvm/scripts/rvm |
- Download Zoom.pkg from https://zoom.us/download
- Extract it using https://www.timdoug.com/unpkg/
- Now you have Zoom/zoom.us.app
- Launch Zoom by
zoom.sh Zoom/zoom.us.app/Contents/MacOS/zoom.us
caveats:
- Zoom will fail to start meeting for the first time. Just launch again.
- Zoom will tell that crash happened, but you should ignore it.
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
import { IncomingMessage, RequestListener, ServerResponse } from "http" | |
import { createServer, Server } from "https" | |
import puppeteer, { | |
Browser, | |
BrowserLaunchArgumentOptions, | |
Protocol | |
} from "puppeteer-core" | |
import { Page } from "./types" | |
import Cookie = Protocol.Network.Cookie |
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
--- | |
apiVersion: v1 | |
data: | |
kernel-monitor.json: | | |
{ | |
"plugin": "kmsg", | |
"logPath": "/dev/kmsg", | |
"lookback": "5m", | |
"bufferSize": 10, | |
"source": "kernel-monitor", |
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
############## 1Password Stuff ############### | |
# Check for 1Password CLI, and install if necessary: | |
command -v op >&- || brew install --cask 1password-cli | |
# You can simply export the 1Password secret's deep link in | |
# place of any sensitive value held in an environment variable: | |
export JIRA_API_TOKEN="op://example_vault/JIRA_API_TOKEN/credential" | |
# To use this at runtime, use: `op run -- <app> ..args..` |
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
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
FROM alpine:latest | |
MAINTAINER Joshua Delsman <j@srv.im> | |
EXPOSE 443 | |
ENV NGINX_VERSION 1.9.3 | |
RUN apk add --update openssl-dev pcre-dev zlib-dev build-base \ | |
&& rm -rf /var/cache/apk/* \ |
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
#!/bin/bash | |
INPUT_FOLDER="${HOME}/Music/Unprocessed" | |
OUTPUT_FOLDER="${HOME}/Dropbox/Music/$(date +%Y-%m)" | |
filecount=$(find "$INPUT_FOLDER" \( -name "*mp3" -o -name "*aif*" -o -name "*wav" \) -type f -print | wc -l) | |
if [[ $filecount -lt 1 ]]; then | |
printf "\nNo files found in '%s'. Time to find new beats!\n" "$INPUT_FOLDER" | |
exit 0 | |
fi |
NewerOlder