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/sh | |
set -u | |
usage() | |
{ | |
echo "usage: <command> options: [-t] -i <ip interno da máquina monitoradora> -e <ip externo da máquina monitorada>" | |
} | |
while getopts ti:e: OPCAO; do | |
case "${OPCAO}" in | |
t) modo_teste=1 ;; | |
i) ipintradora="${OPTARG}" ;; |
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/sh | |
set -u | |
yum -y update | |
yum -y install git openssl-devel | |
mkdir ./downloads | |
cd ./downloads | |
wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz | |
tar xzf nagios-plugins-2.2.1.tar.gz | |
cd nagios-plugins-2.2.1 |
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
netsh winhttp import proxy source=ie | |
# Current WinHTTP proxy settings: | |
# Proxy Server(s) : 192.168.1.1:80 | |
# Bypass List : (none) | |
$webclient=New-Object System.Net.WebClient | |
$creds=Get-Credential | |
$webclient.Proxy.Credentials=$creds |
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 | |
PRIVATE_PORT=8080 | |
PUBLIC_PORT=80 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root." | |
exit 1 | |
fi |
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 | |
# Installing JAVA | |
# Authored by Filipe Goes | |
# Tested in Ubuntu Server 14.05 | |
# Tested in CentOS 7.3 | |
set -u | |
usage() | |
{ | |
echo "usage: java-install-sh -u 'JDK download URL' -f 'Foldername to install (ex. jdk1.8.0_121).'" |
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 | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#original author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |