Skip to content

Instantly share code, notes, and snippets.

View dangra's full-sized avatar
๐Ÿฆ–

Daniel Graรฑa dangra

๐Ÿฆ–
View GitHub Profile
* About to connect() to www1.wkdown.info port 80 (#0)
* Trying 63.141.242.78...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
* Connected to www1.wkdown.info (63.141.242.78) port 80 (#0)
> GET /fs3/file.php/M994ATR.html HTTP/1.1
> User-Agent: curl/7.27.0
> Host: www1.wkdown.info
> Accept: */*
* About to connect() to aaa.17domn.com port 80 (#0)
* Trying 142.54.184.238...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
* Connected to aaa.17domn.com (142.54.184.238) port 80 (#0)
> GET /bt9/file.php/MERH77V.html HTTP/1.1
> User-Agent: curl/7.27.0
> Host: aaa.17domn.com
> Accept: */*
#!/usr/bin/python
"""Solarized theme for gnome-terminal
see http://ethanschoonover.com/solarized
"""
import posixpath
from optparse import OptionParser
import gconf
BASE03 = '#002B36'
@dangra
dangra / crawler.go
Created January 23, 2013 03:21
My Solution to Go Tour #70 - Web Crawler
// GistID: 4601612
package main
import (
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
Unpacking ./python-wapiti
Running setup.py egg_info for package from file:///home/daniel/src/python-wapiti
file wapiti.py (for module wapiti) not found
package init file 'pywapiti/__init__.py' not found (or not a regular file)
Installing collected packages: python-wapiti-bindings
Running setup.py install for python-wapiti-bindings
file wapiti.py (for module wapiti) not found
package init file 'pywapiti/__init__.py' not found (or not a regular file)
file wapiti.py (for module wapiti) not found
Unpacking /home/daniel/src/python-wapiti
Running setup.py egg_info for package from file:///home/daniel/src/python-wapiti
file wapiti.py (for module wapiti) not found
package init file 'pywapiti/__init__.py' not found (or not a regular file)
Installing collected packages: python-wapiti-bindings
Running setup.py install for python-wapiti-bindings
file wapiti.py (for module wapiti) not found
package init file 'pywapiti/__init__.py' not found (or not a regular file)
file wapiti.py (for module wapiti) not found
Unpacking /home/daniel/src/python-wapiti
Running setup.py egg_info for package from file:///home/daniel/src/python-wapiti
file wapiti.py (for module wapiti) not found
Installing collected packages: python-wapiti-bindings
Running setup.py install for python-wapiti-bindings
file wapiti.py (for module wapiti) not found
file wapiti.py (for module wapiti) not found
building 'pywapiti._wapiti' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iwapiti/src -Ilibwapiti/src -I/usr/include/python2.7 -c wapiti/src/bcd.c -o build/temp.linux-x86_64-2.7/wapiti/src/bcd.o
from distutils.core import setup, Extension
setup(
name='wapiti',
version='0.1',
py_modules=['wapiti'],
description="Python bindings for libwapiti",
long_description="",
author="Adam Svanberg",
author_email="[email protected]",
# GistID: 4636013
def grpkey():
idx = 0
def _key(e):
print idx
if e:
idx += 1
return idx
#!/bin/bash
# GistID: 4693361
rm -rf scrapyd
git clone scrapy scrapyd
(
cd scrapyd
git remote rm origin
echo 0.7 0.7-rc1 0.8 0.9 0.9-rc1 0.10-rc1 |xargs git tag -d
git filter-branch \
--prune-empty \