Skip to content

Instantly share code, notes, and snippets.

View stefanandres's full-sized avatar

Stefan Andres stefanandres

  • Anaconda, Inc
  • Berlin
  • 03:08 (UTC +02:00)
View GitHub Profile
apiVersion: v1
data:
start-backup: |
set -e
cd /backup &&
rm -rf dump
mongodump --host "$MONGO_HOST" &&
tar czpf dump-$(date +%F-%H-%M).tar.gz dump &&
rm -rf dump
kind: ConfigMap
gitlab-runner register --help
NAME:
gitlab-runner register - register a new runner
USAGE:
gitlab-runner register [command options] [arguments...]
OPTIONS:
-c value, --config value Config file (default: "/etc/gitlab-runner/config.toml") [$CONFIG_FILE]
--tag-list value Tag list [$RUNNER_TAG_LIST]
[2018-07-24 10:33:40 +0200] information/WorkQueue: #18 (HttpServerConnection) items: 2, rate: 0/s (0/min 0/5min 0/15min); empty in -2147483648 days
[2018-07-24 10:33:48 +0200] information/WorkQueue: #26 (HttpServerConnection) items: 0, rate: 0.05/s (3/min 3/5min 3/15min);
[2018-07-24 10:33:50 +0200] information/WorkQueue: #18 (HttpServerConnection) items: 2, rate: 0/s (0/min 0/5min 0/15min); empty in -2147483648 days
[2018-07-24 10:33:51 +0200] information/HttpServerConnection: No messages for Http connection have been received in the last 10 seconds.
[2018-07-24 10:33:51 +0200] information/HttpServerConnection: Unable to disconnect Http client, I/O thread busy
[2018-07-24 10:34:00 +0200] information/WorkQueue: #18 (HttpServerConnection) items: 2, rate: 0/s (0/min 0/5min 0/15min); empty in -2147483648 days
[2018-07-24 10:34:10 +0200] information/WorkQueue: #18 (HttpServerConnection) items: 2, rate: 0/s (0/min 0/5min 0/15min); empty in -2147483648 days
[2018-07-24 10:34:20 +0200] information/WorkQueue: #18
root@c312a1b640ef:/etc/puppetlabs/code/environments/production/manifests# cat ../hiera.yaml
---
version: 5
defaults:
hierarchy:
- name: "node"
path: node.yaml
- name: "roles"
mapped_paths:
- roles
#!/usr/bin/env bash
# This script extracts the executed command for a Icinga2 check
################################################################
if (( ${#} != 2 )); then
printf "You have to pass 2 (two) arguments.\n"
printf "1. server name\n"
printf "2. service name\n"
exit 1
root@master01:/tmp# grep -v 'Compiling config file' icinga.crash.segfault
96
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff1d1b700 (LWP 22106)]
[New Thread 0x7ffff131a700 (LWP 22107)]
[New Thread 0x7fffe3fff700 (LWP 22108)]
[New Thread 0x7fffebfff700 (LWP 22109)]
[New Thread 0x7fffeb5fe700 (LWP 22110)]
[New Thread 0x7fffeabfd700 (LWP 22111)]
#!/usr/bin/env bash
tmpdir=/tmp/sys11-ruby
ruby_version=2.4.4
if [[ -d /usr/local/sys11-ruby-$ruby_version ]] && [[ -s /usr/local/sys11-ruby/bin/puppet ]]; then
echo "sys11-ruby-$ruby_version already installed"
exit 1
fi
# docker-compose up -d up
# (initially) docker-compose up -d mongo-init-replica
# docker-compose up -d traefik
# docker-compose up -d rocketchat
#
# update rc:
# docker-compose pull && docker-compose up -d rocketchat
#
version: '2'
WebHook called with url: /project/foobar-hieradata
Oct 26, 2017 9:13:04 AM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction
Push: {
"object_kind" : "push",
"event_name" : "push",
"before" : "b6b959b02d8643f4ae30e1297e4af823e73c2d87",
"after" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"ref" : "refs/heads/master",
"checkout_sha" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"message" : null,
#!/usr/bin/env groovy
properties properties: [
[$class: 'GitLabConnectionProperty', gitLabConnection: 'gitlab'],
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '100']],
]
void email_send() {
def subject = "${currentBuild.result}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'"