I hereby claim:
- I am lsjostro on github.
- I am lsjostrom (https://keybase.io/lsjostrom) on keybase.
- I have a public key ASD29A_wPPLMnW1Gcrgg1l0EEm0IizunAtIK_YB63Mx4HQo
To claim this, I am signing this object:
#!/usr/bin/python | |
import sys | |
import time | |
import socket | |
import urllib2 | |
def main(haproxy_host, statsd_host): | |
s = socket.socket(socket.AF_INET, | |
socket.SOCK_DGRAM) |
#!/usr/bin/python | |
import re | |
import time | |
import logging | |
from os import stat | |
from stat import ST_SIZE | |
from flumelogger.handler import FlumeHandler | |
FILE_INPUT = "/var/log/jenkins/jenkins.log" | |
MULTILINE_PATTERN_RE = r"^\w+ \d+, \d+ (\d+?:){1,2}\d\d \w\w " |
# req: brew/yum install jq on MacOS X/Linux (install in .bashrc or global profile.d/) | |
export PUPPETDB_HOST="my.puppetdb.host.foo" | |
function puppet_report { curl -sG http://$PUPPETDB_HOST/v3/events --data-urlencode "query=[\"and\", [\"=\", \"latest-report?\", true],[\"~\", \"certname\", \"^$1\"]]" | jq -r '.[] | .certname+","+.["resource-type"]+"["+.["resource-title"]+"]" + "," +.status + "," + .message' | column -t -s,; } | |
export -f puppet_report |
def main(): | |
options = parse_options() | |
db = Connection('localhost', 27017).pulp_database | |
rpms = db.units_rpm | |
repo_content_units = db.repo_content_units.find({'repo_id': options.repo_id}) | |
units = {} | |
for unit in repo_content_units: | |
data = rpms.find_one({"_id": unit['unit_id']}) | |
if data: |
#!groovy | |
@NonCPS | |
def getACIChangeSets() { | |
def aci = [] | |
currentBuild.rawBuild.getChangeSets().each { cs -> | |
cs.getItems().each { item -> | |
item.getAffectedFiles().each { f -> | |
if (f.path.endsWith(".yml")) { | |
aci << f.path | |
} |
$ /usr/local/bin/rkt version | |
rkt Version: 1.7.0 | |
appc Version: 0.8.4 | |
Go Version: go1.6.1 | |
Go OS/Arch: linux/amd64 | |
Features: -TPM | |
# _Without_ bind mount of /var/lib/rkt | |
$ sudo /usr/local/bin/rkt run \ | |
--insecure-options=image \ |
upstream docker-mirror-upstream { | |
server upstream.example.com; | |
} | |
proxy_cache_path /var/lib/docker-mirror/cache levels=1:2 max_size=10g inactive=48h keys_zone=cache:10m; | |
server { | |
listen 80 default_server; | |
listen 443 ssl default_server; |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: oklog | |
labels: | |
app: oklog | |
spec: | |
ports: | |
- name: api |
I hereby claim:
To claim this, I am signing this object:
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: gitlab-ci | |
namespace: gitlab | |
rules: | |
- apiGroups: ["*"] | |
resources: ["*"] | |
verbs: ["*"] |