$ wget -e robots=off -r -np 'http://example.com/folder/'
- -e robots=off causes it to ignore robots.txt for that domain
- -r makes it recursive
- -np = no parents, so it doesn't follow links up to the parent folder
| #!/usr/bin/env python | |
| import re | |
| import os | |
| import urlparse | |
| import hashlib | |
| import json | |
| import sys | |
| title_re = re.compile(r'([=*]{3,})\n([^\n]+)\n\1\n') |
| { | |
| "Version":"2012-10-17", | |
| "Statement":[ | |
| { | |
| "Effect":"Allow", | |
| "Action":[ | |
| "s3:ListBucket", | |
| "s3:GetBucketLocation" | |
| ], | |
| "Resource":"arn:aws:s3:::specific-s3-bucket" |
| from elasticsearch import Elasticsearch | |
| from elasticsearch.helpers import scan | |
| import json | |
| REMOTE_URL = 'https://username:password@elasticsearch.example.com:9200/' | |
| LOCAL_FILE = '/tmp/elasticsearch-dump.txt' | |
| INDEX = 'my-index' | |
| DOC_TYPE = 'document' | |
| client = Elasticsearch([REMOTE_URL]) |
| class EmailSearch(FacetedSearch): | |
| doc_types = [Email] | |
| # fields that should be searched | |
| fields = ['subject', 'body'] | |
| facets = { | |
| 'inbox': TermsFacet(field='inbox'), | |
| } | |
| def filter(self, search): |
| var system = require('system'); | |
| var page = require('webpage').create(), | |
| address, output, size; | |
| if (system.args.length < 2 || system.args.length > 3) { | |
| console.log('Usage: rasterize.js URL filename'); | |
| phantom.exit(); | |
| } else { | |
| console.log(system.args); | |
| address = system.args[1]; |
$ wget -e robots=off -r -np 'http://example.com/folder/'
| <?php | |
| /* | |
| Plugin Name: Simple Proxy | |
| Description: A very simple proxy. Useful when you're moving from one server to another. | |
| Author: Greg Priday | |
| Author URI: http://siteorigin.com/ | |
| Version: 1.0 | |
| */ | |
| function simple_proxy_admin_menu(){ |
| post_id,post_name,post_type,post_date,post_title,post_content,post_status | |
| "10001","blah-blah-blah-blah","post","2011-01-16 18:49:52.857717","Post title here!","<h2>Post title!</h2> | |
| <p>Look,</p> | |
| <p>This contains <span class=\"caps\">HTML content</span>, and even contains commas</p> | |
| ","publish" | |
| "10002","blah-blah-blah-blah2","post","2011-01-16 19:49:52.857717","Post title two!","<h2>Post title two!</h2> | |
| <p>More stuff</p> | |
| ","publish" |
| <?php | |
| /* | |
| Plugin Name: 301 Redirects | |
| Plugin URI: http://tonyspiro.com | |
| Description: A plugin that helps you add 301 redirects to your site. | |
| Version: 0.3 | |
| Author: Tony Spiro | |
| Author URI: http://tonyspiro.com | |
| License: GPL2 |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb