Skip to content

Instantly share code, notes, and snippets.

View innbitcodes's full-sized avatar

InnBit Codes innbitcodes

View GitHub Profile
@innbitcodes
innbitcodes / PHP: 301 redirect
Created August 30, 2014 20:27
301 redirect by PHP header code
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.-----.com");
?>
@innbitcodes
innbitcodes / Git upgrade script in Ubuntu
Created February 17, 2015 18:02
Bash: upgrade git to latest version
// Install add-apt-repository
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
// Add ppa to current software repository
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git
git --version