Skip to content

Instantly share code, notes, and snippets.

View jpmirandas's full-sized avatar

João Paulo Miranda jpmirandas

View GitHub Profile
php -a
@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);
@jpmirandas
jpmirandas / gist:5c8622e712afc5ac5d96
Created June 2, 2015 17:17
"Complement" to improve the Therminal.
#tip by Edson
http://ohmyz.sh
@jpmirandas
jpmirandas / gist:c409975b2c00c1511c96
Created July 5, 2015 20:19
Create a new git repository ...
…or create a new repository on the command line
echo "# point" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin address...
git push -u origin master
…or push an existing repository from the command line
import QUnit from 'qunit';