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
data "aws_eks_cluster" "cluster" { | |
name = "${var.project}-${var.env}" | |
} | |
data "aws_iam_openid_connect_provider" "cluster" { | |
url = data.aws_eks_cluster.cluster.identity[0].oidc[0].issuer | |
} | |
resource "aws_iam_policy" "aws_load_balancer_policy" { | |
name = "aws_load_balancer_policy" |
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
Write<->Plan<->Apply | |
[repo]<->[review]<->provision. | |
terraform->required_providers {} | |
->required_version = "~> 0.14" | |
terraform { | |
required_providers { | |
random = { | |
source = "hashicorp/random" |
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 | |
rm list_of_files.txt | |
for FILE in MOV*.avi | |
do | |
echo "file $FILE" >>list_of_files.txt | |
done | |
ffmpeg -f concat -i list_of_files.txt -c copy -y full.avi |
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
#Cribbed liberally from: | |
#http://www.weedpi.com/how-to/how-to-create-a-pi-cluster | |
apt-get -y remove oracle-java8-jdk xserver-xorg xserver-xorg-core xserver-xorg-input-all wolfram-engine gnome-desktop3-data lxde-common lxde-core | |
apt-get -y autoremove | |
Make the following files sane: | |
/etc/hosts; /etc/hostname; /etc/network/interfaces | |
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
Cloning cluster members: | |
On Both nodes: | |
/etc/init.d/heartbeat stop | |
/etc/init.d/cman stop | |
rm /var/lib/heartbeat/hostcache | |
rm /var/lib/heartbeat/delhostcache | |
rm /var/lib/heartbeat/hb_uuid | |
/usr/share/heartbeat/ha_propagate | |
/etc/init.d/cman start | |
/etc/init.d/heartbeat start |
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
# this config needs haproxy-1.1.28 or haproxy-1.2.1 | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
#log loghost local0 info | |
maxconn 256 | |
#chroot /usr/share/haproxy | |
user haproxy | |
group haproxy |
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
config 'redirect' | |
option target ACCEPT | |
config 'redirect' | |
option 'src' 'wan' | |
option 'proto' 'tcp' | |
option 'src_ip' '' | |
option 'src_dport' '8004' | |
option 'dest_ip' '10.0.0.111' | |
option 'dest_port' '80' |
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
# this config needs haproxy-1.1.28 or haproxy-1.2.1 | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
#log loghost local0 info | |
maxconn 256 | |
#chroot /usr/share/haproxy | |
user haproxy | |
group haproxy |
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
<cib epoch="11" num_updates="0" admin_epoch="0" validate-with="pacemaker-1.2" cr | |
m_feature_set="3.0.6" update-origin="rpi2" update-client="cibadmin" cib-last-wri | |
tten="Sat Dec 20 22:38:13 2014" have-quorum="1" dc-uuid="edc8b9e8-c444-4533-befd | |
-47c5cf52754d"> | |
<configuration> | |
<crm_config> | |
<cluster_property_set id="cib-bootstrap-options"> | |
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1 | |
.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff"/> | |
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster- |
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
grep "GET /pixel" unicorn_paint.log | awk '{print $7}' | sed -e 's/\/pixel\//unicorn\.set\_pixel\(/g' | sed -e 's/$/)/g' | sed -e 's/\//\,/g' |