Skip to content

Instantly share code, notes, and snippets.

View gkarugi's full-sized avatar

Karugi Gitau gkarugi

View GitHub Profile
@gkarugi
gkarugi / Contract Killer 3.md
Created March 10, 2017 20:13
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

@gkarugi
gkarugi / 0_reuse_code.js
Created May 10, 2017 12:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gkarugi
gkarugi / setup.sh
Last active June 10, 2017 02:41 — forked from eduwass/setup.sh
Flynn Install : Single node ( for Ubuntu 16.04 x64)
#!/bin/bash
# This script will automatically set up a single node Flynn Cluster on your linux box
# Fresh Flynn install with domain provided by the xip.io service
# Tested with Base Image: Ubuntu 16.04 x64 @ DigitalOcean droplet
# @date 11 May 2017
# Original @author Edu Wass (eduwass at gmail com)
echo '---- START SETUP ----'
@gkarugi
gkarugi / README.md
Created May 22, 2017 09:23 — forked from hofmannsven/README.md
Simple Command Line Cheatsheet
@gkarugi
gkarugi / README.md
Created May 22, 2017 09:23 — forked from hofmannsven/README.md
Notes on working with Laravel 5
@gkarugi
gkarugi / README.md
Created May 22, 2017 12:23 — forked from hofmannsven/README.md
Notes on working with October CMS
@gkarugi
gkarugi / Laravel PHP7 LEMP AWS.md
Created June 6, 2017 20:20 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@gkarugi
gkarugi / deploy.php
Created June 7, 2017 10:38 — forked from martincarlin87/deploy.php
Deployer Laravel 5
<?php
namespace Deployer;
require 'recipe/laravel.php';
$repo_url = '';
$branch = 'master';
$server_url = '';
$user = '';
@gkarugi
gkarugi / deploy.php
Created June 7, 2017 10:38 — forked from martincarlin87/deploy.php
Deployer Laravel 5 Example
<?php
namespace Deployer;
require 'recipe/laravel.php';
// Configuration
set('ssh_type', 'native');
set('repository', '[REPO URL]');
set('branch', 'master');
set('keep_releases', 5);
@gkarugi
gkarugi / deploy.php
Created June 7, 2017 11:27 — forked from nickdenardis/deploy.php
Zero downtime local build Laravel 5 deploys with Deployer
<?php
namespace Deployer;
require 'recipe/laravel.php';
require 'vendor/deployer/recipes/local.php';
require 'vendor/deployer/recipes/rsync.php';
require 'vendor/deployer/recipes/npm.php';
// Configuration
set('ssh_type', 'native');