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 / app.js
Last active January 16, 2017 15:29
Learning Node and MongoDb
/**
* Created by hydee on 1/16/17.
*/
var Disease = require('./diseaseschema')
var disease;
var diseases = require('./getDiseases')
//saving to database.
diseases.diseaseDetails(function (diseaseData) {
@hydeenoble
hydeenoble / gist:3b988ce4c838f2e6286e42b8bf089067
Created June 25, 2018 13:06 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@hydeenoble
hydeenoble / Commands.sh
Last active November 17, 2018 14:04 — forked from nrollr/Commands.sh
Install PHP and NGINX on Amazon Linux AMI
## Install NGINX
$ sudo yum install nginx -y
## Install PHP and PHP-FPM
$ sudo yum install php -y
$ sudo yum install php-fpm -y
## Configure NGINX (see below)
$ sudo nano /etc/nginx/conf.d/default.conf
@hydeenoble
hydeenoble / Node_AWS_Linux.md
Created September 4, 2018 15:31 — forked from nrollr/Node_AWS_Linux.md
Install Node.js on Amazon Linux (EC2)

Installing Node.js on Amazon Linux AMI

The following will guide you through the process of installing Node.js 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 (ami-d41d58a7). Once the EC2 instance is up-and-running, connect to your server via ssh

@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
@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 / 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: ""
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nfs-server
spec:
replicas: 1
selector:
matchLabels:
role: nfs-server
template:
kind: PersistentVolume
apiVersion: v1
metadata:
name: nfs-airflow-dags
namespace: airflow
spec:
capacity:
storage: 16Gi
volumeMode: Filesystem
accessModes:
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "airflow",
"labels": {
"name": "airflow"
}
}
}