Install HAProxy Kubernetes Ingress Controller:
helm repo add haproxytech https://haproxytech.github.io/helm-charts
helm repo update
helm install kubernetes-ingress haproxytech/kubernetes-ingress \
--create-namespace \
#!/bin/bash | |
# Generate commands to recreate directory structure, including ownership and permissions | |
find . -type d -printf "install --mode="%m" --owner="%u" --group="%g" -d "%p/\\n |
#!/bin/bash | |
# | |
# Example: | |
# $ bash tmux-exec.sh <app> | |
# $ bash tmux-exec.sh <app> <namespace> | |
if [ -n "$1" ]; then | |
NAME="$1" | |
else | |
echo "Pleae specify app.kubernetes.io/name" |
Install HAProxy Kubernetes Ingress Controller:
helm repo add haproxytech https://haproxytech.github.io/helm-charts
helm repo update
helm install kubernetes-ingress haproxytech/kubernetes-ingress \
--create-namespace \
Systemd expects
/sys/fs/cgroup
filesystem is mounted. It can work with it being mounted read/only....
# PING - SEND ICMP ECHO_REQUEST TO NETWORK HOSTS | |
# Copyright (c): Dragan Bosnjak | |
# License: Apache License | |
echo -e "\033[1;31m" | |
ping "$@" |
import timeit | |
from datetime import datetime | |
from dateutil import parser as dateutil_parser | |
from backports.datetime_fromisoformat import datetime_fromisoformat # backport for python < 3.7 | |
strformat = "%Y-%m-%dT%H:%M:%S.%f" | |
def main(): |
#!/bin/bash | |
exec sudo --preserve-env=PYTHONPATH --preserve-env=PWD /usr/bin/python3 "$@" |
from __future__ import unicode_literals, print_function | |
import time | |
import json | |
import simplejson | |
import ujson | |
import msgpack | |
def get_example_raw_data(): |
package observer | |
type Event interface { | |
} | |
type Observer interface { | |
OnNotify(Event) | |
} | |
type Subject struct { |
import pytest | |
from django.test import TestCase as django_case | |
class TestFoobarCase(object): | |
@pytest.fixture(scope="class", autouse=True) | |
def prepare_class(self, django_db_setup, django_db_blocker): | |
with django_db_blocker.unblock(): | |
django_case.setUpClass() |