Skip to content

Instantly share code, notes, and snippets.

View matt-thomas's full-sized avatar

Matt Thomas matt-thomas

View GitHub Profile
<?php
/**
* Remove any non-ASCII characters and convert known non-ASCII characters
* to their ASCII equivalents, if possible.
*
* @param string $string
* @return string $string
* @author Jay Williams <myd3.com>
* @license MIT License
* @link http://gist.github.com/119517
@matt-thomas
matt-thomas / gist:10896657
Last active August 29, 2015 13:59
Tag And Delete Git Branches
git checkout mybranch
git pull
git tag -m 'final commit for mybranch' archive/mybranch mybranch
git branch -D mybranch
git push --tags origin :mybranch