Skip to content

Instantly share code, notes, and snippets.

View grampelberg's full-sized avatar

Thomas Rampelberg grampelberg

View GitHub Profile
@grampelberg
grampelberg / com.openssh.ssh-agent-brew.plist
Last active July 27, 2022 22:03
com.openssh.ssh-agent-brew.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.openssh.ssh-agent-brew</string>
<key>ProgramArguments</key>
<array>
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
cfg="${HOME}/.oprc"
required_cfg=(
'OP_ADDRESS'
'OP_EMAIL'
'OP_ACCOUNT_KEY'
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH))))
include $(CURRENT_DIR)/.env
include $(CURRENT_DIR)/mk/dependency.mk
include$(CURRENT_DIR)/mk/other.mk
main: dependency-one other-two
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c -x
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH))))
for ctx in west east; do
echo "Checking cluster: ${ctx} .........\n"
linkerd --context=${ctx} check || break
echo "-------------\n"
done
linkerd install \
--identity-trust-anchors-file root.crt \
--identity-issuer-certificate-file issuer.crt \
--identity-issuer-key-file issuer.key \
| tee \
>(kubectl --context=west apply -f -) \
>(kubectl --context=east apply -f -)
#!/bin/bash
set -o errexit -o nounset -o pipefail
function -h {
cat <<USAGE
USAGE: demo
USAGE
}; function --help { -h ;} # A nice way to handle -h and --help
export LC_ALL=en_US.UTF-8 # A locale that works consistently
import _merge from 'lodash/merge'
import { useEffect, useState } from 'react'
import { BehaviorSubject, combineLatest, interval, of, Subject } from 'rxjs'
import { fromFetch } from 'rxjs/fetch'
import {
filter,
map,
materialize,
pairwise,
pluck,
:root {
--toolbar-regular-height: 56px;
}
@media (min-width: 0px) and (orientation: landscape) {
:root {
--toolbar-regular-height: 48px;
}
}
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c -x
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CURRENT_DIR := $(notdir $(patsubst %/,%,$(dir $(MKFILE_PATH))))