Skip to content

Instantly share code, notes, and snippets.

View acheampong-tech's full-sized avatar

SAMMY acheampong-tech

  • 11:26 (UTC -05:00)
View GitHub Profile
@acheampong-tech
acheampong-tech / nginx_deployment.yaml
Created February 23, 2023 06:10 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@acheampong-tech
acheampong-tech / vpc-public-private-eu-west-1.template
Created March 10, 2023 22:10 — forked from ckimrie/vpc-public-private-eu-west-1.template
AWS Cloudformation template to create a VPC with three public/private subnet pairs with default internet gateway routes configured.
Description:
This template deploys a VPC, with a three public and private subnets spread
across three Availability Zones. It deploys an Internet Gateway, with a default
route on the public subnets. It deploys a pair of NAT Gateways (one in each AZ),
and default routes for them in the private subnets.
Parameters:
EnvironmentName:
@acheampong-tech
acheampong-tech / update-git.sh
Created June 24, 2023 14:28 — forked from YuMS/update-git.sh
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
@acheampong-tech
acheampong-tech / gist:5c62e3a31339373dbd5a02ad7e91f85b
Created July 23, 2024 21:17 — forked from ArslanKathia/gist:742ef1ad62e8644d4c75585881b07b96
To install Nagios on Ubuntu, follow these step-by-step commands based on the provided sources:
To install Nagios on Ubuntu, follow these step-by-step commands based on the provided sources:
1. **Install Packages Dependencies**:
- Update the Ubuntu repository:
```bash
sudo apt update
```
- Install necessary packages for Nagios installation:
```bash
sudo apt install -y autoconf gcc make unzip libgd-dev libmcrypt-dev libssl-dev dc snmp libnet-snmp-perl gettext