Skip to content

Instantly share code, notes, and snippets.

View nimboya's full-sized avatar

Ewere Diagboya nimboya

View GitHub Profile
@nimboya
nimboya / install-redis.sh
Last active February 1, 2017 18:41 — forked from dstroot/install-redis.sh
Install Redis on Amazon EC2 AMI
#!/bin/bash
redis_version=2.6.11
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/aff799d090fae9307ddfabf683b36587/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make"
@nimboya
nimboya / redis-server
Last active February 1, 2017 18:36 — forked from vinceyuan/redis-server-per-project
Init script to start/stop redis-server for CentOS or amazon ec2 linux ami. You can run multiple redis-server on one server with this script. Just copy and replace 'per-project' with your project name in this file for each project.
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
# Modified by Vince Yuan https://gist.github.com/vinceyuan/9667435
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
@nimboya
nimboya / install_nodejs.sh
Last active October 12, 2017 15:25
Install nodejs in any version on an any Linux from Source
#!/bin/sh
nodeversion=6.9.4
echo "Downloading Node from NodeJS website"
wget https://nodejs.org/download/release/v${nodeversion}/node-v${nodeversion}.tar.gz
tar -xvf node-v${nodeversion}.tar.gz
yum groupinstall 'Development Tools' -y
cd node-v${nodeversion}
./configure
make && make install
echo "Giving Root Access"
@nimboya
nimboya / nvmnodeinstall.sh
Last active August 31, 2017 14:42
Install any version of node using nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
# Exit Terminal and Login to use Command
~/.nvm/nvm.sh
nvm install 4.4.5 # Here you can choose your version number
# Create/Modify /etc/yum.repos.d/epel.repo
# [epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
@nimboya
nimboya / .env
Created August 10, 2017 08:27
Setting Environment Variables on Linux
======================
AmazonLinux/Ubuntu
======================
echo export VARIABLE_NAME=VALUE >> /etc/profile
@nimboya
nimboya / tips
Created August 31, 2017 08:09
Dockerfile Tips
http://kimh.github.io/blog/en/docker/gotchas-in-writing-dockerfile-en/
@nimboya
nimboya / install.sh
Last active December 13, 2017 08:02
PHP Installation from Source (5.6x)
wget http://uk1.php.net/get/php-5.6.32.tar.gz/from/this/mirror
mv mirror php-5.6.32.tar.gz
tar -xvf php-5.6.32.tar.gz
cd php-5.6.32
apt-get install build-essential # Debian
yum groupinstall 'Development Tools' # Readhat, CentOS
./configure '--enable-fpm' '--with-pdo-sqlite' '--with-mysql' '--with-mysqli' '--enable-bcmath' '--with-curl' '--with-pdo-mysql' '--enable-ftp''--with-xml' '--with-gd' '--with-bz2' '--with-zlib' '--with-libdir=lib64' '--with-kerberos' '--with-openssl' '--with-png' '--with-mongo=/usr/local/lib/php/extensions/no-debug-non-zts-20131226' '--enable-mbstring'
make && make install
@nimboya
nimboya / gist:b902a198d9a72d6cdb334e9cd7b30be2
Last active February 7, 2018 15:32
How to setup Docker Build in Jenkins
1. Setup Jenkins
2. Install Build and Push Docker Image Plugin
3. add this DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock in /etc/default/docker at the end of file
4. Restart Docker Daemon
5. In the Build and Push Plugin, Docker Host URI: unix:///var/run/docker.sock
@nimboya
nimboya / install.sh
Created February 19, 2018 08:18
Installing Node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 6.11.5