Scada-LTS is an Open Source, web-based, multi-platform solution for building your own SCADA (Supervisory Control and Data Acquisiton) system. This quick reference is to get you started on developing Scada-LTS.
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 | |
## Ref: https://www.redhat.com/sysadmin/arguments-options-bash-scripts | |
############################################################ | |
# Help # | |
############################################################ | |
Help() | |
{ | |
# Display Help |
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
### | |
# Script to build the Lambda Layers based on libs used by functions. | |
# Assumptions... | |
# - your functions are all inside ./functions | |
# - you don't need specific versions of the dependecies | |
### | |
#!/bin/bash | |
echo "=======================================" |
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 | |
echo -e \ | |
"############################################# \n \ | |
# SCADABR / SCADALTS SERVICE CONFIGURATION \n \ | |
# Installs prerequisits and ScadaBR/LTS \n \ | |
# as service for Debian like environments \n \ | |
# \n \ | |
# Tested on: \n \ | |
# - Debian 4.19.67 \n \ |
I hereby claim:
- I am katesclau on github.
- I am diegoferreira (https://keybase.io/diegoferreira) on keybase.
- I have a public key whose fingerprint is B5D7 8B65 93E4 0CC5 156F 5F73 3405 1A60 B772 ADC5
To claim this, I am signing this object:
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
type ICharacter { | |
# interface | |
id: ID! | |
name: String! | |
friends: [Character] | |
appearsIn: [Episode]! | |
# any custom fields inside JSON | |
implemented: String | |
} |
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
interface Character { | |
id: ID! | |
name: String! | |
friends: [Character] | |
appearsIn: [Episode]! | |
} | |
type Human implements Character { | |
id: ID! | |
name: String! |
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
# Policy and Alarm for high usage | |
resource "aws_autoscaling_policy" "up_policy" { | |
name = "${var.cluster_name}-up-policy" | |
scaling_adjustment = 1 | |
adjustment_type = "ChangeInCapacity" | |
cooldown = 300 | |
autoscaling_group_name = "${aws_autoscaling_group.asg.name}" | |
} |
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
# App Stickiness Policy | |
resource "aws_app_cookie_stickiness_policy" "ssl_app_stickiness" { | |
name = "${var.elb_name}-ssl-stickiness" | |
load_balancer = "${aws_elb.classic_elb.id}" | |
lb_port = 443 | |
cookie_name = "${var.session_cookie}" | |
} | |
# ELB Stickiness policy | |
resource "aws_lb_cookie_stickiness_policy" "lb_stickiness" { |
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
resource "aws_iam_server_certificate" "tutorial_cert" { | |
name_prefix = "${var.elb_name}-cert" | |
certificate_body = "${file(${var.cert_file})}" | |
private_key = "${file(${var.key_file})}" | |
lifecycle { | |
create_before_destroy = true | |
} | |
} |
NewerOlder