Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
#!/bin/sh | |
set -e | |
set -x | |
# this needs, coreutils-stty, pppd-chat and minicom installed | |
# minicom needs proper config files in either /etc/{1..4}.minirc | |
# pointing to the correct device | |
case "${1:-}" in | |
[1234] ) NODE="$1" ;; |
############## | |
### Prepare for env variables | |
export NS_NAME=spark-ext | |
export SA_NAME=spark | |
export CLN_NAME=spark-client | |
export POD_IMAG=gcr.io/spark-operator/spark-operator:v1beta2-1.2.3-3.1.1 | |
export SVC_NAME=$CLN_NAME-headless | |
export SVC_PORT=19987 | |
export CLS_ENDP="https://c2.us-south.containers.cloud.ibm.com:26165" |
#!/bin/bash | |
TTY_TMP=$(mktemp) | |
$(socat -d -d ~/Library/Containers/com.docker.docker/Data/debug-shell.sock pty,rawer 2>&1 | grep -Eo --line-buffered "/dev/tty\w+" > ${TTY_TMP} ) & | |
sleep 2 | |
TTY=$(tail -n 1 "${TTY_TMP}") | |
picocom $TTY 2>/dev/null |
#!/bin/bash | |
set -e | |
ARCH=aarch64 | |
DOCKER_VERSION=20.10.0 | |
DOCKER_DIR=/volume1/@docker | |
echo "Downloading docker $DOCKER_VERSION-$ARCH" | |
curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1 |
#!/bin/bash | |
currentAttempt=0 | |
totalAttempts=10 | |
delay=15 | |
while [ $currentAttempt -lt $totalAttempts ] | |
do | |
currentAttempt=$(( $currentAttempt + 1 )) | |
echo "Attempt $currentAttempt of $totalAttempts..." |
The installation steps requires that you have configured NFS client as described in: https://gist.github.com/jannegpriv/f78b59d93c7a815b1fbcb940277bb762
The steps below are based on information in this article.
Check for the latest official docker image for InfluxDb on DockerHub.
import Leaf | |
import Foundation | |
final class JSONTag: TagRenderer { | |
private let encoder = JSONEncoder() | |
func render(tag: TagContext) throws -> EventLoopFuture<TemplateData> { | |
try tag.requireNoBody() | |
try tag.requireParameterCount(1) | |
let json = try encoder.encode(tag.parameters[0]) |