Skip to content

Instantly share code, notes, and snippets.


Alex C. Bilimoria acbilimoria

View GitHub Profile
acbilimoria /
Created Nov 9, 2020
Kubernetes Upgrade Steps (EKS)
acbilimoria /
Created May 5, 2017
Get New Laravel Install Ready to use
#make sure composer is installed globally
composer global require "laravel/installer"
#make sure that composer is installed
composer install --no-dev --optimize-autoloader
#update composer to make sure dependencies are up to date
composer update --no-scripts
#copy .env.example file as .env
acbilimoria /
Created May 5, 2017
Laravel 5.4 Ubuntu 16.04 Production Build
# generate key
php artisan key:generate
# disable debugging
sed -i "s/'debug' => env('APP_DEBUG', true),/'debug' => env('APP_DEBUG', false),/g" config/app.php
# allow Laravel to write to storeage
sudo chmod -R 775 /var/www/SITE-NAME/public/storage
composer install --no-dev --optimize-autoloader
acbilimoria / post-receive
Created May 5, 2017
One Touch Build & Deploy - Laravel 5.4 on LEMP Stack Ubuntu 16.04
View post-receive
#!/usr/bin/env ruby
# 1. Read STDIN (Format: "from_commit to_commit branch_name")
from, to, branch = " "
# 2. Only deploy if master branch was pushed
if (branch =~ /master$/) == nil
puts "Received branch #{branch}, not deploying."
acbilimoria / info.txt
Last active May 4, 2017
VHost Ubuntu 16.04 LAMP
View info.txt
sudo vim /etc/hosts
# add this line: EXAMPLE.loc
# create new conf file based off of the default
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/EXAMPLE.loc.conf
# edit the apache2.conf file
# add this block of text below the other Directory tags
<Directory /home/mac/code/ztrust/ztrust/>
acbilimoria /
Last active May 1, 2017
WordPress on Ubuntu 16: Add LetsEncrypt
# Install the Let's Encrypt Client
sudo apt-get update
sudo apt-get install python-letsencrypt-apache
# Set up the SSL Certificate for ServerName and ServerAlias
# select force SSL if desired
# add email
# accept terms and conditions
# select appropriate .conf file if applicable
sudo letsencrypt --apache -d -d
acbilimoria / gist:af512b7929c658900918ba3ed0e63141
Last active May 5, 2017
Install Composer & Laravel 5.4 on Ubuntu 16.04
View gist:af512b7929c658900918ba3ed0e63141
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo npm install -g npm
sudo npm install -g n
sudo npm install gulp -g
sudo n stable
npm rebuild node-sass
npm install
composer update --no-scripts
acbilimoria / npm-install-string
Last active Apr 26, 2017
NPM install string
View npm-install-string
sudo npm install gulp gulp-concat gulp-autoprefixer gulp-clean-css gulp-uglify gulp-rename gulp-watch gulp-cssmin gulp-insert gulp-sass laravel-elixir laravel-elixir-vue laravel-elixir-vue webpack node-sass laravel-elixir-webpack-official --global
View Ubuntu 16.04 LAMP Stack setup
sudo apt-get update
sudo apt-get install apache2 mysql-server php pep8 libapache2-mod-php php-mcrypt php-mysql php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc silversearcher-ag xclip htop python3 xvfb python3-pip libxml2 chromium-chromedriver firefox postgresql postgresql-contrib python-psycopg2 libpq-dev npm letsencrypt dos2unix vsftpd mailutils gconf2 gconf-service gconf-service-backend gconf2-common libgconf-2-4 sendmail python3-tk unzip git vim nodejs-legacy flake8 mtpfs libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9 ruby ruby-dev libxml2-dev libxslt1-dev python-dev liblzma-dev zlib1g-dev qt5-default android-tools-adb udev mtp-tools kdeconnect postgresql postgresql-contrib php-cli ubuntu-make php-dev gcc make autoconf libc-dev pkg-config kcachegrind sqlite graphicsmagick pvm-dev phantomjs rake libicu-dev imagemagick libmysqlclient-dev composer -y
sudo vim /etc/apache2/apache2.conf
# add ServerName server_domain_or_IP
sudo ufw allow in "Apa
View PHP 5.6 + Magento 1.9 on CentOS 7
Install PHP 5.6:
sudo yum -y update
sudo yum -y install epel-release
sudo rpm -Uvh ius-release*.rpm
sudo yum -y update
sudo yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath
sudo service httpd restart