rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install -y http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmyum-config-manager --enable elrepo-kernel| #!/bin/bash | |
| # | |
| # Show replication lag for one or more postgresql slaves in streaming replication. | |
| # | |
| # dsimmons@squiz.co.uk | |
| # 2012-01-09 | |
| # | |
| psql="which psql" | |
| psql_extra_opts="" |
| ################################################################################ | |
| # REFERENCES | |
| # ConcourseCI Docs: https://concourse.ci | |
| # Concourse tutorial: https://github.com/starkandwayne/concourse-tutorial | |
| # | |
| # NOTES | |
| # This file is a self-contained description of a Concourse CI pipeline | |
| # to deploy a http://gosparta.io application. There's a couple of things to | |
| # note: | |
| # - The YAML uses node references so that scripts can be defined in the |
| #!/bin/sh | |
| echo "$1 $2 $3 $4" >> ~/test.mcabber.log | |
| EVENT_TYPE=$1 | |
| EVENT_SUBTYPE=$2 | |
| JID=$3 | |
| FILE=$4 | |
| TITLE="Google Hangouts" | |
| SOUND_FILE="$HOME/.mcabber/sounds/alert_47.wav" | |
| ICON="$HOME/.mcabber/images/chat.png" | |
| TIMEOUT=10000 |
| #!/usr/bin/env bash | |
| # | |
| # Backup selected directories to a Backblaze B2 bucket | |
| # | |
| # Example daily cron: | |
| # @daily /usr/local/bin/b2backup >/dev/null | |
| # | |
| # Account creds | |
| id=xxxxxxxxxx |
| kubectl get pods -a | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
| #!/bin/sh | |
| # install needed curl package | |
| sudo apt install --no-install-recommends curl -y | |
| # install kubectl | |
| # https://github.com/kubernetes/minikube/issues/3437#issuecomment-449408316, maybe use https://storage.googleapis.com/minikube/releases/v0.30.0/docker-machine-driver-kvm2 | |
| curl -Lo /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ | |
| chmod +x /tmp/kubectl && \ | |
| sudo mv /tmp/kubectl /usr/local/bin/kubectl | |
| # kubectl tab completion | |
| sudo sh -c 'echo "source <(kubectl completion bash)" > /etc/bash_completion.d/kubectl' |
| #!/bin/bash | |
| # get ip address | |
| myip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}') | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install buildessentials apache2-utils | |
| sudo apt-get install fakeroot devscripts gawk gcc-multilib dpatch | |
| sudo apt-get install build-dep squid3 | |
| sudo apt-get install build-dep openssl | |
| sudo apt-get install libssl-dev openssl |
| Calico | Flannel | Weave | Docker Overlay Network | |
|---|---|---|---|---|
| Network Model | Pure Layer-3 Solution | VxLAN or UDP Channel | VxLAN or UDP Channel | VxLAN |
| Application Isolation | Profile Schema | CIDR Schema | CIDR Schema | CIDR Schema |
| Protocol Support | TCP, UDP, ICMP & ICMPv6 | ALL | ALL | ALL |
| #https://www.zeitgeist.se/2013/11/22/strongswan-howto-create-your-own-vpn/ | |
| #https://www.gypthecat.com/ipsec-vpn-host-to-host-on-ubuntu-14-04-with-strongswan | |
| #Example of simple pre-shared keys vpn setup: https://www.strongswan.org/uml/testresults/ikev2/rw-psk-ipv4/ | |
| $ sudo apt-get -y install strongswan | |
| $ ipsec version | |
| Linux strongSwan U5.1.2/K3.13.0-55-generic | |
| Institute for Internet Technologies and Applications | |
| University of Applied Sciences Rapperswil, Switzerland | |
| See 'ipsec --copyright' for copyright information. |