Skip to content

Instantly share code, notes, and snippets.

View AssafMashiah's full-sized avatar
🏠
Working from home

Mashiah AssafMashiah

🏠
Working from home
View GitHub Profile
alias subl="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
SELECT * FROM `users` WHERE `email` NOT REGEXP '^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$';
python -c "import hashlib;print hashlib.md5('PASSWORD').hexdigest()"
DATE_FORMAT(DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH), '%Y-%m-01 05:00:00') AND DATE_FORMAT(NOW(), '%Y-%m-01 05:00:00')
alias whatthecommit='text=`curl -s http://whatthecommit.com/ |grep "<body>" -A 2|grep "<p>"`; text=${text:3};git commit -am "$text"'