As configured in my dotfiles.
start new:
tmux
start new with session name:
<?php | |
global $ld_recalc; | |
global $geolocate_api_key; | |
$geolocate_api_key = "YOUR_GOOGLE_GEOLOCATE_API_KEY"; | |
$ld_recalc = array( | |
'posts_per_run' => 16, | |
'post_types' => array( 'distributor' ), |
As configured in my dotfiles.
start new:
tmux
start new with session name:
from random import choice | |
from scrapy import signals | |
from scrapy.exceptions import NotConfigured | |
class RotateUserAgentMiddleware(object): | |
"""Rotate user-agent for each request.""" | |
def __init__(self, user_agents): | |
self.enabled = False | |
self.user_agents = user_agents |
Prereq:
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
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
#! /usr/bin/python | |
from sys import argv | |
from os.path import exists | |
from os import makedirs | |
from os import symlink | |
from os import system | |
import getopt | |
# |