Create a template service file at /etc/systemd/system/[email protected]
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
{"lastUpload":"2020-10-19T19:24:30.935Z","extensionVersion":"v3.4.3"} |
/* https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/Regular/complete/JetBrains%20Mono%20Regular%20Nerd%20Font%20Complete.ttf */ | |
@font-face { | |
font-family: 'JetBrainsMono Patched'; | |
src: local('JetBrainsMono Patched'), url('https://rawgit.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Regular/complete/JetBrains%20Mono%20Regular%20Nerd%20Font%20Complete.ttf') format('truetype'); | |
} |
#!/usr/bin/env bash | |
# CVE-2019-11253 | |
# https://github.com/kubernetes/kubernetes/issues/83253 | |
# Shout out: @raesene for poc collab, @iancoldwater + @mauilion for | |
# HONKing inspiration and other guidance. | |
# Description: In Kubernetes 1.13 and below, the default configuration | |
# is that system:anonymous can request a selfsubjectaccessreview | |
# via mechanisms such as "kubectl auth can-i". This request can | |
# include POSTed YAML, and just the act of trying to parse it causes |
Sonic Pi Boot Error Report | |
================== | |
System Information | |
---------------- | |
* Sonic Pi version: 2.10.0 | |
* OS: Pop!_OS 20.04 LTS |
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
help: ## Show this help. | |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
# Everything below is an example | |
target00: ## This message will show up when typing 'make help' | |
@echo does nothing |
octant master ↓·4 ✚1 …5 $ OCTANT_LISTENER_ADDR=0.0.0.0:8900 octant -vvv | |
2019-08-16T06:05:57.259Z DEBUG dash/dash.go:68 Loading configuration: /home/ubuntu/.kube/kind-config-kind | |
2019-08-16T06:05:57.262Z DEBUG cluster/cluster.go:269 initializing REST client configuration {"client-qps": 200, "client-burst": 400} | |
2019-08-16T06:05:57.263Z DEBUG cluster/cluster.go:104 created temp directory {"component": "cluster client", "dir": "/tmp/octant626661369"} | |
2019-08-16T06:05:57.263Z DEBUG dash/dash.go:95 initial namespace for dashboard is default | |
2019-08-16T06:05:57.267Z DEBUG describer/path_matcher.go:44 register path {"name": "overview", "path": "/"} | |
2019-08-16T06:05:57.267Z DEBUG describer/path_matcher.go:44 register path {"name": "overview", "path": "/workloads"} | |
2019-08-16T06:05:57.267Z DEBUG describer/path_matcher.go:44 register path {"name": "overview", "path": "/workloads/cron-jobs"} | |
2019-08-16T06:05:57.267Z DEBUG describe |
/* | |
* I add this to html files generated with pandoc. | |
*/ | |
html { | |
font-size: 100%; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} |
Create a template service file at /etc/systemd/system/[email protected]
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
FROM golang:1.9 AS build | |
LABEL maintainer "Peter Benjamin" | |
WORKDIR /go/src/github.com/petermbenjamin/go-hello-world | |
COPY . . | |
RUN go get -u -v github.com/golang/dep/cmd/dep \ | |
&& dep init \ | |
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o hello-world . | |
FROM alpine | |
COPY --from=build /go/src/github.com/petermbenjamin/go-hello-world/hello-world /usr/bin/hello-world |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
Is a useful one-liner which will give you the full directory name of the script no matter where it is being called from
These will work as long as the last component of the path used to find the script is not a symlink (directory links are OK). If you want to also resolve any links to the script itself, you need a multi-line solution:
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink