Skip to content

Instantly share code, notes, and snippets.

View parthlawate's full-sized avatar

Parth Lawate parthlawate

View GitHub Profile
@parthlawate
parthlawate / ttpl_install.sh
Last active February 18, 2017 14:33 — forked from coolbung/ttpl_install.sh
Script to install typical tools needed by TTPL Devs - safe for elementary OS
#!/bin/bash
read -p "Enter non-admin username (eg: ttpl1) : " non_admin_username
php71_name="${non_admin_username}-php71.local"
php7_name="${non_admin_username}-php7.local"
php5_name="${non_admin_username}-php5.local"
non_admin_home_dir="/home/${non_admin_username}"
if [ ! -d "$non_admin_home_dir" ]; then
echo "Invalid username"
#!/usr/bin/env bash
#* @package Component Name
#* @copyright Copyright (C) 2009 2014 Techjoomla, Tekdi Technologies Pvt. Ltd. All rights reserved.
#* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
#* @link http://www.techjoomla.com
# This Script can be used to maintain your demos and refresh them periodically
# It can also be used to create replication instances quickly for development and sync them with live or the other way round
# Another use of the script is for code deployments from local to live
# Currently this is for Joomla but you could potentially fork it for any database of file based application
# Fair Warning : Note that you are playing with your live server files and Database. So make sure you know what you are doing !