As configured in my dotfiles.
start new with session name:
|$geolocate_api_key = "YOUR_GOOGLE_GEOLOCATE_API_KEY";|
|$ld_recalc = array(|
|'posts_per_run' => 16,|
|'post_types' => array( 'distributor' ),|
#You should do all your LAMP development in a Virtual Machine
Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.
Our computers become powerful develoment machines similar to the servers our apps will eventually live on.
Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!
|from random import choice|
|from scrapy import signals|
|from scrapy.exceptions import NotConfigured|
|"""Rotate user-agent for each request."""|
|def __init__(self, user_agents):|
|self.enabled = False|
|self.user_agents = user_agents|
apt-get install zsh apt-get install git-core
Getting zsh to work in ubuntu is weird, since
sh does not understand the
source command. So, you do this to install zsh
|from sys import argv|
|from os.path import exists|
|from os import makedirs|
|from os import symlink|
|from os import system|