Skip to content

Instantly share code, notes, and snippets.

@rlemon
rlemon / gist:3183650
Last active October 7, 2015 15:07
Gitnologic
Fork it, use it, break it, fix it,
Comm it, push it, pull - request it,
Fetch it, branch it, patch it, fake it,
Merge it, git: it, never - https: it.
Write it, cut it, paste it, save it,
Build it, check it, quick - rewrite it,
Clone it, crack it, crop it, comp it,
Drag and drop it, gzlib - gzip it.
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@jpmirandas
jpmirandas / gist:a2b4f4951c7e8027ecb4
Created May 28, 2015 11:51
PHP Decode base64 to text
$file = file_get_contents('/tmp/file', FILE_TEXT);
$file_decoded = base64_decode($file);
echo file_put_contents('/tmp/file.html', $file_decoded, FILE_TEXT);