Skip to content

Instantly share code, notes, and snippets.

View floodbost's full-sized avatar
😎
👍

Ridwan floodbost

😎
👍
View GitHub Profile
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@floodbost
floodbost / php-alternatives-install.sh
Created December 11, 2018 14:08 — forked from renatomefi/php-alternatives-install.sh
Alternatives install for PHP
#!/bin/bash
# ------------------------------------------------------------------
# [Author] Renato Mefi <[email protected]>
# https://github.com/renatomefi
#
# [Desc] Configure alternatives for PHP Installations
# Very usefull when you are building your PHP and don't want to use
# more sofsticated softwares like 'phpbrew', 'php-build', 'php-env' ...
#
# [Usage] ./php-alternatives-install.sh /path/for/php/installation 200