View consul-connect-injector-webhook-debug-deployment.yaml
--- | |
# Deploy and `kubectl exec` | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: consul-connect-injector-webhook-debug-deployment | |
namespace: consul | |
labels: | |
app: consul | |
spec: |
View fdo-man.css
@-moz-document regexp(".*freedesktop\\.org\\/software\\/.*\\/man\\/.*") { | |
body { | |
font-family: Arial, Helvetica; | |
} | |
.refentry { | |
max-width: 960px; | |
margin: 1em auto; |
View Dockerfile
FROM golang:1 as builder | |
COPY . /src | |
WORKDIR /src | |
RUN go build -o /src/test | |
RUN /src/test |
View add-label
#!/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" |
View rewrite-docker-tar
#!/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. | |
# |
View config.yaml
hotkeys: | |
profile: {} | |
shell: {} | |
toggle-window: | |
- - Ctrl-` | |
ssh: {} | |
terminal: | |
bell: visual | |
colorScheme: | |
name: Tomorrow Night |
View doSomething.groovy
#!/usr/bin/env groovy | |
// Specify default values but allow overriding. | |
// | |
// dosomething { | |
// arg1 = true | |
// arg2 = false | |
// arg3 = "https://www.hotbot.com" | |
// } |
View build.gradle
plugins { | |
id 'org.jenkins-ci.jpi' version '0.22.0' | |
id 'groovy' | |
id 'java' | |
id 'idea' | |
} | |
build.dependsOn jpi |
View main.yaml
- name: "unifi | configure service db.mongo.local" | |
lineinfile: | |
dest: "/usr/lib/unifi/data/system.properties" | |
regexp: '^db\.mongo\.local=' | |
line: "db.mongo.local={{ unifi_db_mongo_local }}" | |
insertbefore: BOF |
View Dockerfile
FROM golang:1.6 | |
RUN dpkg --add-architecture i386 \ | |
&& apt-get -q update \ | |
&& apt-get -q -y upgrade \ | |
&& apt-get -y install \ | |
automake \ | |
bc \ | |
build-essential \ | |
bzr \ |
NewerOlder