brew services start colima
. You can skip the following work-around.
- Create an executable script to run in foreground and manage colima:
cat <<-EOF | sudo tee /usr/local/bin/colima-start-fg
#!/bin/bash
#!/bin/bash | |
set -e | |
##### CHECK PARAMETERS ##### | |
PRODUCTION=0 | |
while [[ "$#" -gt 0 ]]; do | |
case $1 in | |
-p|--production) PRODUCTION=1 ;; | |
*) echo "Unknown parameter passed: $1"; exit 1 ;; | |
esac | |
shift |
brew services start colima
. You can skip the following work-around.
cat <<-EOF | sudo tee /usr/local/bin/colima-start-fg
#!/bin/bash
import { languages } from "monaco-editor"; | |
function getTokens(tokens: string, divider = "|"): string[] { | |
return tokens.split(divider); | |
} | |
const wordPattern = /(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g; | |
const brackets: languages.CharacterPair[] = [ | |
["{", "}"], |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
#!/bin/bash | |
# For latest CUDA 9.0 | |
wget http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/cuda-repo-l4t-9-0-local_9.0.252-1_arm64.deb | |
# For latest CUDNN 7.0.5 | |
wget http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/libcudnn7_7.0.5.13-1+cuda9.0_arm64.deb | |
wget http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/libcudnn7-dev_7.0.5.13-1+cuda9.0_arm64.deb | |
wget http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/3.2GA/m892ki/JetPackL4T_32_b196/libcudnn7-doc_7.0.5.13-1+cuda9.0_arm64.deb |
# ==================================================================================== | |
# Steps for Main Router (must have connected internet on WAN port) | |
# ==================================================================================== | |
# Set your network IP address configuration default is 192.168.1.0/24 | |
uci set network.lan.ipaddr='192.168.1.1' | |
# Recommended, to identify on network and when logged on | |
uci set system.@system[0].hostname='MainRouter' | |
uci set network.lan.hostname="`uci get system.@system[0].hostname`" |
/** | |
* Creates a new `CircularBuffer` with the specified `capacity`, | |
* which must strictly be a positive integer. | |
* | |
* We here use the term "zero element", which refers to exactly `null` if the | |
* `CircularBuffer` is backed by an `Array`, and refers to exactly `0` if it is | |
* backed by a `TypedArray`. Note that using this constructor will always yield | |
* a `CircularBuffer` backed by an `Array`. Use the | |
* `CircularBuffer.fromArray()` function any time a `TypedArray` backing is | |
* required. |
#!/usr/bin/env bash | |
# change the sleep time appropriately | |
# this server is persistent | |
# mix and match with Content-Length and having larger and less content then | |
# is actually produced | |
# as well as malformed Chunked Encoding | |
socat \ | |
-v -d -d \ |