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
from datetime import datetime, timedelta | |
def parse_date_ranges(dates): | |
if(not dates or not len(dates) > 0): | |
return False | |
# make sure to order dates | |
dates.sort() | |
# init values |
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
brew install postgres | |
postgres -D /usr/local/var/postgres | |
createdb piecemaker2_prod | |
createdb piecemaker2_dev | |
createdb piecemaker2_test |
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
docker run -t -i -d ubuntu echo "test" | |
d0f637bfc0350729b07d6a6cd4f03140f6a0951924be86eda28f0fa9954dea23 | |
docker inspect d0f637bfc0350729b07d6a6cd4f03140f6a0951924be86eda28f0fa9954dea23 | |
[{ | |
"ID": "d0f637bfc0350729b07d6a6cd4f03140f6a0951924be86eda28f0fa9954dea23", | |
"Created": "2014-03-05T21:11:35.763549293Z", | |
"Path": "echo", | |
"Args": [ | |
"test" |
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
from scrapy.spider import Spider | |
from scrapy.selector import Selector | |
from scrapy.http import Request | |
from datetime import datetime | |
from scrapy import log | |
from project1.items import PageItem | |
# from scrapy.stats import stats | |
class ExampleSpider(Spider): |
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
[tor] | |
name=Tor experimental repo | |
enabled=1 | |
baseurl=http://deb.torproject.org/torproject.org/rpm/el/6/$basearch/ | |
gpgcheck=1 | |
gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc | |
[tor-source] | |
name=Tor experimental source repo | |
enabled=1 |
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
sudo vim /etc/environment | |
LANG="en_US.UTF-8" | |
LC_MESSAGES="C" | |
LC_ALL="en_US.UTF-8" |
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
http://git.io/dYYyLA |
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
http://git.io/qEHakA |
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
http://git.io/Qo-d2g |
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
http://git.io/0dDD2Q |
OlderNewer