Skip to content

Instantly share code, notes, and snippets.

View gobinathm's full-sized avatar
💻
I may be slow to respond.

Gobinath Mallaiyan gobinathm

💻
I may be slow to respond.
View GitHub Profile
@gobinathm
gobinathm / Vagrant.bootstrap.sh
Created March 15, 2018 14:15 — forked from asmerkin/Vagrant.bootstrap.sh
A simple LAMP Vagrantfile and Bootstrap file for Vagrant and ubuntu/trusty64 box. It uses mpm-workers and php5-fpm + some extra tools like grunt, gulp and composer.
#!/usr/bin/env bash
# ---------------------------------------
# Virtual Machine Setup
# ---------------------------------------
# Adding multiverse sources.
cat > /etc/apt/sources.list.d/multiverse.list << EOF
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
@gobinathm
gobinathm / install-php53.sh
Created March 14, 2018 13:02
How to install PHP5.2 into newest versions of Ubuntu
#!/bin/bash
## read http://askubuntu.com/questions/61101/downgrade-php-to-php5-2
## read http://www.alexweber.com.br/en/tutorials/how-install-php-52-ubuntu-1010-lucid-and-1104-natty
# sudo apt-add-repository ppa:andphe/php
# sudo apt-get update
## find sources.list and replace your dist name by "lucid" for this ppa
## read http://serverfault.com/questions/52029/how-to-force-downgrade-of-packages-on-ubuntu-karmic
@gobinathm
gobinathm / Vagrantfile
Created December 5, 2017 21:57 — forked from ganine/Vagrantfile
Basic Vagrantfile with provisioning shell script
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.provision :shell, :privileged => false, :path => "bootstrap_ubuntu1204.sh"
end
@gobinathm
gobinathm / gist:53175b0ae233d93eb462a0fa5a4f5cb9
Created November 15, 2017 05:38 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@gobinathm
gobinathm / recipe: cherry-pick tags
Created November 15, 2017 05:38 — forked from nickfloyd/recipe: cherry-pick tags
To cherry pick from head and commit back into a tag
-from master in working branch
>> git branch [new branch] [tag]
>> git checkout [branch]
-pull commit out and add it to the commit at the top of the tag
>> git cherry-pick [commit] or git cherry-pick [firstcommit]^..[lastcommit] if you have a range
-resolve conflicts
-delete the local tag
>> git git tag -d [tag]
-add a new tag at the head of the old one
>> git tag [tag]
@gobinathm
gobinathm / recipe: cherry-pick tags
Created November 15, 2017 05:38 — forked from nickfloyd/recipe: cherry-pick tags
To cherry pick from head and commit back into a tag
-from master in working branch
>> git branch [new branch] [tag]
>> git checkout [branch]
-pull commit out and add it to the commit at the top of the tag
>> git cherry-pick [commit] or git cherry-pick [firstcommit]^..[lastcommit] if you have a range
-resolve conflicts
-delete the local tag
>> git git tag -d [tag]
-add a new tag at the head of the old one
>> git tag [tag]
@gobinathm
gobinathm / Git push deployment in 7 easy steps.md
Created November 14, 2017 06:16 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@gobinathm
gobinathm / Bash_CheatSheet.txt
Created November 13, 2017 21:10 — forked from sripadapavan/Bash_CheatSheet.txt
One Stop for - Bash hacks!!!
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#####################################################
# 0. Shortcuts.
CTRL+A # move to beginning of line
@gobinathm
gobinathm / bash-cheatsheet.sh
Created November 13, 2017 20:09 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04