Skip to content

Instantly share code, notes, and snippets.

View adminph-de's full-sized avatar
😈

Patrick Hayo adminph-de

😈
View GitHub Profile
@adminph-de
adminph-de / apache2-probe.sh
Last active November 16, 2020 13:24
Deploy Apache2 http-probe on CentOS
#!/bin/bash
# Simple deployment script to run the Apache2 http-probe on port 8080/tcp
# Helpfull if you need a hearbeat of the server (Loabalancer, etc.)
# without installing Apache2 natively.
#
# Check my Git for more details:
# - https://github.com/adminph-de/docker-apache2-http-probe
#
# Check the pre- build Docker Container:
@adminph-de
adminph-de / install-docker.sh
Created November 16, 2020 04:38
Install Docker.CE on CentOS 7.x
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
sudo systemctl enable docker
sudo systemctl start docker
@adminph-de
adminph-de / install-docker.sh
Last active November 16, 2020 04:55
install Docker.CE on Oracle Linux 7.x
sudo yum-config-manager --disable docker-ce-stable
sudo yum-config-manager --save --setopt=docker-ce-stable.skip_if_unavailable=true
sudo yum install -y docker-engine
sudo usermod -aG docker $USER
sudo systemctl start docker
sudo systemctl enable docker
@adminph-de
adminph-de / deploy_ansys_lic.sh
Last active November 17, 2020 17:30
Deploy ANSYS License Server (CentOS 7.x)
#!/bin/bash
gituser="$1"
gitpw="$2"
azurl="$3"
unset probe
unset flexuser
unset flexgrp
@adminph-de
adminph-de / main.tf
Last active August 17, 2022 12:38
Terraform | Get Public IP Address
data "http" "publicIp" {
url = "https://ifconfig.co/json"
request_headers = {
Accept = "application/json"
}
}
output "publicIp_json" {
value = jsondecode(data.http.publicIp.body)
}
{
"uscentral": {
"region": "Central United States",
"description": "Azure DevOps Services",
"ip_addresses": [
"13.89.236.72/32",
"52.165.41.252/32",
"52.173.25.16/32",
"13.86.38.60/32",
"20.45.1.175/32",