This file contains hidden or 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
| root@ubuntu:~# ab -n 1000 -c 100 http://docs.python-requests.org/en/v3.0.0/ | |
| This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking docs.python-requests.org (be patient) | |
| Completed 100 requests | |
| Completed 200 requests | |
| Completed 300 requests | |
| Completed 400 requests |
This file contains hidden or 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
| [18/Feb/2016 08:36:14] DEBUG [django.db.backends:91] (0.002) SELECT "company_url"."id", "company_url"."url", "company_url"."company_id", "company_url"."recurse", "company_url"."created" FROM "company_url" INNER JOIN "company_companyupload_urls_added" ON ( "company_url"."id" = "company_companyupload_urls_added"."url_id" ) WHERE "company_companyupload_urls_added"."companyupload_id" = 4; args=(4,) | |
| [18/Feb/2016 08:38:26] DEBUG [django.db.backends:91] (0.007) | |
| SELECT c.relname | |
| FROM pg_catalog.pg_class c | |
| LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace | |
| WHERE c.relkind IN ('r', 'v', '') | |
| AND n.nspname NOT IN ('pg_catalog', 'pg_toast') | |
| AND pg_catalog.pg_table_is_visible(c.oid); args=None | |
| [18/Feb/2016 08:38:26] DEBUG [django.db.backends:91] (0.016) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=() | |
| [18/Feb/2016 08:38:26] DEBUG [django.db.backends:91] (0.002) |
This file contains hidden or 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
| (ddm_apps)➜ ddm_apps git:(crawler_test_coverage_206) django-admin.py test | |
| Creating test database for alias 'default'... | |
| .....E.....E.............................................................................................................................................. | |
| ====================================================================== | |
| ERROR: test_dump_pending_os_error (ddm_apps.apps.crawl.test_crawl.CrawlerTester) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/chris/.virtualenvs/ddm_apps/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched | |
| return func(*args, **keywargs) | |
| File "/Users/chris/projects/ddm_apps/apps/crawl/test_crawl.py", line 371, in test_dump_pending_os_error |
This file contains hidden or 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
| for messages in calls: | |
| if "creating new document" in messages: | |
| self.assertTrue(True) | |
| else: | |
| self.assertTrue("creating new key" in messages) |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure(2) do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
This file contains hidden or 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
| mount -t cifs //server.domain.com/SHARE_NAME -o username=USERNAME,password=PASSWORD,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755 /desired/location/CIFSMOUNT/ |
This file contains hidden or 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
| Environment: | |
| Request Method: GET | |
| Request URL: http://staging.datadecisionmodels.com/harness/index/execute/dispatch/ | |
| Django Version: 1.7.1 | |
| Python Version: 2.7.6 | |
| Installed Applications: | |
| ('django.contrib.auth', |
This file contains hidden or 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
| import requests | |
| user_data = requests.get('http://169.254.169.254/latest/user-data') | |
| if user_data.status_code == 200: | |
| user_data = user_data.json() | |
| flavor = user_data.json()['flavor'] | |
| if flavor == "indexer": | |
| local("fab start_indexing") | |
| elif flavor == "crawler": | |
| local("fab start_crawling") | |
| elif flavor == "inferer": |
This file contains hidden or 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
| [[2014, "http/com/apexep/www/directions.html"], [2013, "http/com/apexep/www/surplus-equipment.htm"], [2012, "http/com/apexep/www/pwi"], [2011, "http/com/apexep/www/feedback.php"], [2010, "http/com/apexep/www/company-news.html"], [2009, "http/com/apexep/www"]] |
This file contains hidden or 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
| [[0,"/some/url/s3/stuff"],[34,"/another/s3/url"]] | |
| // Instead of | |
| ["/some/urls","another/urls"] |