forked from syrusakbary/validate_email
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request syrusakbary#40 from efagerberg/master
Make regex check for all whitespace and check for servfail
- Loading branch information
Showing
2 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
How to Set Up Validate Email Using Vagrant on PC | ||
------------------------------------------------- | ||
|
||
1. Download Vagrant & Virtual Box | ||
* http://www.vagrantup.com/downloads | ||
* http://www.virtualbox.org/ | ||
2. Look at http://docs.vagrantup.com/v2/getting-started/ to make a linux virtual machine via vagrant | ||
* tl;dr using bash (Can use regular Windows Terminal) | ||
* Make a folder first, whenever you want to access the vm you will need to cd into that folder | ||
``` | ||
$ vagrant init hashicorp/precise32 | ||
$ vagrant up | ||
$ vagrant ssh | ||
``` | ||
* This last command is used to go into your vm | ||
3. Install pipin the vm | ||
* http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/ | ||
* tl;dr | ||
``` | ||
$ sudo apt-get install python-pip | ||
``` | ||
4. Install pyDNS | ||
``` | ||
This is a package dependency of validate email | ||
$ sudo pip install pydns | ||
``` | ||
5. Install git | ||
``` | ||
$ sudo apt-get install git | ||
``` | ||
6. Clone the validate_email repo to your vm | ||
* (Since its a new machine you will need to clone using the https url) | ||
* ```$ git clone [email protected]:efagerberg/validate_email.git``` | ||
* If you want to use your ssh keys on your machine you will need to add this line to the vagrant file under the config | ||
* Looks somthing like this: | ||
Vagrant::Config.run do |config| | ||
# stuff | ||
config.ssh.forward_agent = true | ||
end | ||
7. cd into validate_email and run script | ||
``` | ||
$ cd validate_email | ||
$ python validate_email.py | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters