Skip to content

Instantly share code, notes, and snippets.

View sakeyehp's full-sized avatar

Kayode SAKEYE sakeyehp

View GitHub Profile
#Download the source code
cd /tmp
wget https://downloads.sourceforge.net/project/nagiosgraph/nagiosgraph/1.5.2/nagiosgraph-1.5.2.tar.gz
#Unzip the file
tar xvf nagiosgraph-1.5.2.tar.gz
cd nagiosgraph-1.5.2
@sakeyehp
sakeyehp / docker_install_debian.sh
Created July 25, 2021 22:24 — forked from initcron/docker_install_debian.sh
Install Docker on Debian. Run this as root.
#!/bin/sh
apt-get update
apt-get install -yq \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
sudo su -s /bin/bash jenkins
cd ~
ssh-keygen -t rsa
cat .ssh/id_rsa.pub
# Trigger a build remote
curl -I -X POST http://admin:TOKEN@34.66.165.245:8080/JOB_URL/build
sudo apt update
sudo apt install -y ruby-full
sudo apt install -y wget
cd /home/ubuntu
wget https://aws-codedeploy-us-east-2.s3.us-east-2.amazonaws.com/latest/install
sudo chmod +x ./install
sudo ./install auto
sudo apt install -y default-jdk
sudo apt install -y postgresql postgresql-contrib
sudo apt install -y git
# Use a base image
FROM node:6
# Set a working directory
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# Expose port 80
@sakeyehp
sakeyehp / wordpress_install_ubuntu-1604.sh
Created February 12, 2020 03:04 — forked from initcron/wordpress_install_ubuntu-1604.sh
Install wordpress on Ubuntu 16.04 LTS
#!/bin/bash
sudo apt-get update
sudo apt-get install apache2 apache2-utils -yq
sudo systemctl enable apache2
sudo systemctl start apache2
sudo apt-get install php libapache2-mod-php php-mysql -yq
sudo apt-get install php-curl php-gd php-mbstring php-xml php-xmlrpc -yq
sudo a2enmod rewrite
sudo systemctl restart apache2
cd /var/www
@sakeyehp
sakeyehp / node_nginx_ssl.md
Created January 7, 2020 16:58 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@sakeyehp
sakeyehp / css-diner.txt
Created December 20, 2019 16:08 — forked from chrisman/css-diner.txt
solutions for css diner
# https://flukeout.github.io/ #
01. plate
02. bento
03. #fancy
04. plate apple
05. #fancy pickle
06. .small
07. orange.small
08. bento orange.small
@sakeyehp
sakeyehp / watchResize.js
Created September 16, 2019 14:37 — forked from aarongustafson/watchResize.js
Efficient callback management for window.onresize
(function( window ){
window.watchResize = function( callback ){
var resizing;
callback.size = 0;
function done()
{
var curr_size = window.innerWidth;
clearTimeout( resizing );
resizing = null;
// only run on a true resize