This file contains hidden or 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
| # /etc/systemd/system/iperf.service | |
| [Unit] | |
| Description=iperf server | |
| After=syslog.target network.target auditd.service | |
| [Service] | |
| ExecStart=/usr/bin/iperf -s | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or 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
| # install required packages | |
| apt -y update && apt-get -y dist-upgrade | |
| add-apt-repository ppa:webupd8team/java | |
| apt -y update | |
| apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \ | |
| libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \ | |
| tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven postgresql-server-dev-9.5 postgresql-common postgresql-9.5 libpulse-dev \ | |
| libvorbis-dev freerdp ghostscript wget pwgen | |
| # create directories & files |
This file contains hidden or 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
| [Unit] | |
| Description=The AWS CloudWatch Logs agent | |
| After=syslog.service | |
| [Service] | |
| Type=simple | |
| Restart=always | |
| TimeoutSec=10s | |
| PIDFile=/var/awslogs/state/awslogs.pid | |
| ExecStart=/var/awslogs/bin/awslogs-agent-launcher.sh --start --background --pidfile $PIDFILE --user awslogs --chuid awslogs |
This file contains hidden or 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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "ssm:DescribeAssociation", | |
| "ssm:GetDeployablePatchSnapshotForInstance", | |
| "ssm:GetDocument", | |
| "ssm:GetParameters", |
This file contains hidden or 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 | |
| wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb | |
| sudo dpkg -i amazon-ssm-agent.deb | |
| #sudo systemctl stop amazon-ssm-agent.service | |
| #sudo amazon-ssm-agent -register -code "activation-code" -id "activation-id" -region "region" | |
| #sudo systemctl start amazon-ssm-agent.service |
This file contains hidden or 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
| { | |
| "schemaVersion": "1.2", | |
| "description": "Upgrade packages managed by apt", | |
| "parameters": { | |
| "upgradeType":{ | |
| "type":"String", | |
| "default": "", | |
| "description":"The type of upgrade to perform. Use \"dist-upgrade\" to perform a \"dist-upgrade\". Otherwise, an \"upgrade\" will be performed." | |
| } | |
| }, |
This file contains hidden or 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 python | |
| """Functions to convert IPv4 address to integer and vice-versa. | |
| Written by Christian Stigen Larsen, http://csl.sublevel3.org | |
| Placed in the public domain by the author, 2012-01-11 | |
| Example usage: | |
| $ ./ipv4 192.168.0.1 3232235521 | |
| 192.168.0.1 ==> 3232235521 |
This file contains hidden or 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
| curl -O https://pypi.python.org/packages/source/p/pip/pip-1.2.1.tar.gz | |
| tar xvfz pip-1.2.1.tar.gz | |
| cd pip-1.2.1 | |
| zypper install python-setuptools | |
| python setup.py install | |
| ln -sfn /usr/local/bin/pip /usr/bin/pip | |
| pip install --upgrade awscli | |
| cd .. |
This file contains hidden or 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 | |
| ## Install Golang 1.6.2 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS) | |
| ## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html | |
| ## Run as root (sudo su) | |
| ## Thank's **Bruno Albuquerque bga at bug-br.org.br** | |
| GO_URL="https://storage.googleapis.com/golang" | |
| GO_VERSION=${1:-"1.6.2"} | |
| GO_FILE="go$GO_VERSION.linux-amd64.tar.gz" |
This file contains hidden or 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 bash | |
| # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
| # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
| # http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
| # http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
| # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
| # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
| # Versions | |
| CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` |