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
if [ -x `which brew` ]; then | |
macvim_version=`brew list --versions macvim | sed 's/.* \([0-9\.\-]*\)$/\1/'` | |
if [ -n "${macvim_version}" ]; then | |
alias vim=`brew --prefix`/Cellar/macvim/${macvim_version}/MacVim.app/Contents/MacOS/Vim | |
fi | |
fi |
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 | |
# | |
# Fetches the root public key used to sign an image in Notary, e.g. to configure Connaisseur. | |
# | |
# E.g.: | |
# ./fetch-root-key.sh https://notary.docker.io docker.io/securesystemsengineering/connaisseur | |
NOTARY=${1:-https://notary.docker.io} | |
IMAGE=${2:-docker.io/library/alpine} | |
TMP=$(mktemp -d) |
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
--- | |
# Deploy and `kubectl exec` | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: consul-connect-injector-webhook-debug-deployment | |
namespace: consul | |
labels: | |
app: consul | |
spec: |
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
@-moz-document regexp(".*freedesktop\\.org\\/software\\/.*\\/man\\/.*") { | |
body { | |
font-family: Arial, Helvetica; | |
} | |
.refentry { | |
max-width: 960px; | |
margin: 1em auto; |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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 golang:1 as builder | |
COPY . /src | |
WORKDIR /src | |
RUN go build -o /src/test | |
RUN /src/test |
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 | |
# | |
# Add a label to an image tarball (manifest v1). | |
# | |
# $ docker save alpine -o alpine.tar | |
# $ add-label alpine.tar org.mine.key foobar | |
# $ docker load -i alpine.tar | |
# $ docker inspect alpine | jq '.[].Config.Labels' | |
# { | |
# "org.mine.key": "foobar" |
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 | |
# | |
# rewrite-docker-tar ./image.tar ./output.tar | |
# | |
# Exporting 'docker' tarballs with buildctl is creating manifests with no file | |
# extensions (no .json or .tar.gz on the config or layers). This works with | |
# dockerd because it never looks at the extensions just tries various things with | |
# safe fallbacks. Other tooling relies on extensions and checks for | |
# .json, .tar, and .tar.gz. | |
# |
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
hotkeys: | |
profile: {} | |
shell: {} | |
toggle-window: | |
- - Ctrl-` | |
ssh: {} | |
terminal: | |
bell: visual | |
colorScheme: | |
name: Tomorrow Night |
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
body { margin: 0; color: #fff; background: #000; overflow: hidden; } | |
audio { visibility: hidden; } | |
#header h1, #apple div.icon { color: transparent; } | |
#apple, #header, #safari { position: absolute; top: 40%; left: 50%; } | |
#apple { width: 600px; height: 538px; margin: -290px 0 0 -290px; overflow: hidden; } | |
#apple div { position: absolute; width: 600px; height: 538px; opacity: 0; } | |
#apple div.icon { z-index: 3; background: url(http://images.apple.com/safari/welcome/images/apple_icon.png) no-repeat 233px 184px; } |
NewerOlder