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
#!/usr/bin/env python3 | |
import argparse | |
import logging | |
import requests | |
import sys | |
import time | |
from collections import defaultdict | |
from prometheus_client.parser import text_string_to_metric_families |
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
#!/usr/bin/env python3 | |
import argparse | |
import json | |
import logging | |
import os | |
import random | |
import signal | |
import subprocess | |
import sys |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: {} | |
labels: | |
app: docker | |
name: docker | |
spec: | |
template: | |
metadata: |
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 -e | |
log_info() { | |
echo "INFO: $*" | |
} | |
log_info "Getting all certificates" | |
kubectl get certificate --all-namespaces --no-headers | while read cert; do | |
namespace=$(echo $cert | awk '{print $1}') | |
name=$(echo $cert | awk '{print $2}') |
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
import time | |
import json | |
import esp | |
import machine | |
def read_dht11(pin): | |
import dht | |
d = dht.DHT11(machine.Pin(pin)) |
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 ioft/i386-ubuntu:16.04 | |
#FROM ubuntu:xenial | |
## Arguments | |
ARG user=filip | |
ARG user_uid=1000 | |
ARG locale=cs_CZ.UTF-8 | |
ARG jre_url=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jre-8u102-linux-i586.tar.gz | |
ENV RUN_USER $user |
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 | |
[ ${DEBUG:-0} -eq 1 ] && set -x | |
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/${UID}} | |
XDG_DOWNLOAD_DIR=$(xdg-user-dir DOWNLOAD) | |
IMAGE=${IMAGE:-"apps/$1"} | |
EXTRA_OPTS=${OPTS:-""} | |
DOCKER_OPTS_COMMON=( |
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 | |
# example file to be used with --hookdir | |
# | |
# invoke shell if build fails. | |
echo "=== BUILD FAILED" | |
read -r -p "=== Do you want to enter shell and investigate situation? (Y/n) " res < /dev/tty > /dev/tty 2> /dev/tty | |
if [[ ${res,,} =~ ^(yes|y|)$ ]]; then | |
BUILDDIR="${BUILDDIR:-/tmp/buildd}" | |
apt-get install -y "${APTGETOPT[@]}" vim-nox less |
NewerOlder