git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
<?php | |
/* | |
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED! | |
*/ | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = 'webmaster@example.com'; |
Steps to setup mailtrap.io with your sendmail in ubuntu
Install sendmail and mailutils in ubuntu 'apt-get install sendmail mailutils'
In the terminal go into root prompt with
sudo -s
Go to the /etc/mail folder
#!/bin/bash | |
DOMAINARRAY=`cat /mnt/samba/winnt/system32/dns/domainlist` | |
for domainname in $DOMAINARRAY | |
do | |
echo " " | |
echo "$domainname being imported" | |
zone2sql --zone=$domainname.dns --gmysql --zone-name=$domainname | mysql -h | |
10.10.1.1 -D pdns -u pdns | |
echo "$domainname done!" |
$myDate = '07/10/12';//2012-07-10 | |
$format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT); | |
$date = Mage::app()->getLocale()->date( | |
$myDate, | |
Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), | |
null, | |
false | |
); |
#http://stackoverflow.com/questions/7075828/make-sqlalchemy-use-date-in-filter-using-postgresql | |
from sqlalchemy import Date, cast | |
from datetime import date | |
my_date = (session.query(MyObject) | |
.filter(cast(MyObject.date_time, Date) == date.today()) | |
.all()) | |
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |