Skip to content

Instantly share code, notes, and snippets.

## How to install mcrypt in php7.2 / php7.3
## Linux / MacOS / OSX
miguelmota /
Last active Jun 30, 2020
Completely uninstall and remove Tuxera NTFS on MacOS (resets trial version)
sudo rm -rf /Applications/Tuxera\ Disk\
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs
joseluisq /
Last active Jul 11, 2020
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)


Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
ghalusa / youtube_id_regex.php
Created Jun 20, 2015
Extract the YouTube Video ID from a URL in PHP
View youtube_id_regex.php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
tobi-pb /
Last active May 2, 2020
Upgrade MAMP to Mysql 5.6
tar xfvz mysql-5.6*
echo "stopping mamp"
sudo /Applications/MAMP/bin/
sudo killall httpd mysqld
echo "creating backup"
You can’t perform that action at this time.