Skip to content

Instantly share code, notes, and snippets.

View hydeenoble's full-sized avatar
:octocat:
Write every line of code with empathy

EMEHINOLA Idowu hydeenoble

:octocat:
Write every line of code with empathy
View GitHub Profile
@hydeenoble
hydeenoble / applications.yaml
Created July 12, 2022 09:57
kubernetes-workload-visibility-with-rancher-tutorial
apiVersion: apps/v1
kind: Deployment
metadata:
name: alice
namespace: ns-1
spec:
replicas: 1
selector:
matchLabels:
team: developer
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@hydeenoble
hydeenoble / amazon-ec2-ftp.md
Created June 20, 2019 16:40 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
apiVersion: v1
kind: ServiceAccount
metadata:
name: default
namespace: airflow
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "airflow",
"labels": {
"name": "airflow"
}
}
}
kind: PersistentVolume
apiVersion: v1
metadata:
name: nfs-airflow-dags
namespace: airflow
spec:
capacity:
storage: 16Gi
volumeMode: Filesystem
accessModes:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nfs-server
spec:
replicas: 1
selector:
matchLabels:
role: nfs-server
template:
@hydeenoble
hydeenoble / manifest.yaml
Last active March 14, 2019 07:42
Manifest file for deploying EFS provisioner on Kubernetes
---
apiVersion: v1
kind: ConfigMap
metadata:
name: efs-provisioner
data:
file.system.id: fs-xxxxxxxx
aws.region: <AWS region>
provisioner.name: example.com/aws-efs
dns.name: ""
@hydeenoble
hydeenoble / mongoexport-all-collections-as-json.sh
Created September 19, 2018 11:18 — forked from thbkrkr/mongoexport-all-collections-as-json.sh
Export all MongoDB collections to JSON
#!/bin/bash
DB=$1
COLLECTIONS=$(mongo localhost:27017/$DB --quiet --eval "db.getCollectionNames()" | sed 's/,/ /g')
for collection in $COLLECTIONS; do
echo "Exporting $DB/$collection ..."
mongoexport -d newtickettoolDB -c $collection -o $collection.json
done
@hydeenoble
hydeenoble / Elasticsearch_AWS_Linux.md
Last active June 15, 2023 06:40
Install Elasticsearch on Amazon Linux (EC2)

Installing Elasticsearch on AWS Linux AMI

The following will guide you through the process of installing Elasticsearch on an AWS EC2 instance running Amazon Linux AMI 2016.09 - Release Notes

For this process I'll be using a t2.micro EC2 instance running Amazon Linux AMI. Once the EC2 instance is up-and-running, connect to your server via ssh.

Install JAVA 8

sudo yum install java-1.8.0