Skip to content

Instantly share code, notes, and snippets.

View dhrp's full-sized avatar

Thatcher dhrp

View GitHub Profile
@dhrp
dhrp / governance.md
Created April 29, 2014 03:22
Docker Governence 0.4

Docker Governance Advisory Board: Draft Proposal Version

This is version 0.4 of this document. A later version of this document will be published by Docker for public comment on or April 30. A final draft is expected to be produced in June. All comments, corrections, and suggestions should be sent to governance@docker.com.

1.0 Background

The Docker project is experiencing incredible momentum in project growth, adoption, and contribution. As of April 15 2014, there are over 400 contributors, 95% of whom do not work for the project’s commercial sponsor. Large numbers of projects are being built on top of or incorporating Docker, and there is a large and growing community of users. The project was designed from the outset to have a very open structure, including open design, open contribution, and consistent use of tools across the project. Maintainers include both Docker, Inc. and non-Docker Inc. employees. Given the large numbers of contributors, users, and companies with a stake in the future of the p

@dhrp
dhrp / gist:984b473f31cb2ae3da03
Created May 30, 2014 23:16
dashboard list html
<div id="starred_repos" class="listing_container span span4andahalf">
<div class="listing_header">Starred Repositories</div>
<ul class="listing">
<li>
<span class="listing_stars">4</span>
<a href="http://localhost:8000/u/joffrey/base/">joffrey/base</a>
</li>
Request timeout for icmp_seq 29
Request timeout for icmp_seq 30
Request timeout for icmp_seq 31
Request timeout for icmp_seq 32
Request timeout for icmp_seq 33
Request timeout for icmp_seq 34
Request timeout for icmp_seq 35
Request timeout for icmp_seq 36
Request timeout for icmp_seq 37
Request timeout for icmp_seq 38
@dhrp
dhrp / gist:5726009
Created June 6, 2013 23:52
failed migration
(2.6)dotcloud@rtfd4-default-www-0:~/current/readthedocs$ ./manage.py migrate --settings=settings.dotcloud
/opt/ve/2.6/lib/python2.6/site-packages/django/conf/__init__.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
"use STATIC_URL instead.", DeprecationWarning)
[06/Jun/2013 18:45:35] WARNING [tastyapi.slum:16] SLUMBER_USERNAME/PASSWORD settings are not set
Running migrations for guardian:
- Nothing to migrate.
- Loading initial data for guardian.
Installed 0 object(s) from 0 fixture(s)
Running migrations for djcelery:
- Nothing to migrate.
@dhrp
dhrp / curl
Created June 7, 2013 18:34
Error output from manage.py update_repos on staging host
Output from curl https://rtfd4-mrp.dotcloud.com/api/v1/project/6/
(2.6)dotcloud@rtfd4-default-www-0:~/current/readthedocs$ curl https://rtfd4-mrp.dotcloud.com/api/v1/project/6/
{"absolute_url": "/projects/pip/", "analytics_code": null, "conf_py_file": "", "copyright": "", "crate_url": "", "default_branch": null, "default_version": "latest", "description": "", "django_packages_url": "", "documentation_type": "sphinx", "downloads": {"dash": "/media/dash/pip/latest/Pip.tgz", "epub": "/media/epub/pip/latest/pip.epub", "htmlzip": "/media/htmlzip/pip/latest/pip.zip", "manpage": "/media/man/pip/latest/pip.1", "pdf": "/media/pdf/pip/latest/pip.pdf"}, "id": "6", "language": "en", "modified_date": "2013-06-07T13:30:46.026218", "name": "Pip", "privacy_level": "public", "project_url": "", "pub_date": "2010-08-14T11:08:12", "python_interpreter": "python", "repo": "http://github.com/pypa/pip", "repo_type": "git", "requirements_file": null, "resource_uri": "/api/v1/project/6/", "skip": false, "slug": "pip", "subdomain": "h
@dhrp
dhrp / nginx.conf
Created June 12, 2013 02:59
nginx.conf for docs.docker.io
f ( $request_uri ~ "/index.html" ) {
rewrite ^/(.*)/ /$1 permanent;
}
if ( $request_uri ~ ".html" ) {
rewrite ^/(.*).html /$1/ permanent;
}
error_page 404 = /404.html;
@dhrp
dhrp / gist:5853685
Created June 24, 2013 21:17
docker pull by id
thatcher@blue1:~$ docker pull -registry="https://registry-1.docker.io" 41c0559f98d4
2013/06/24 21:14:53 error: Internal server error: 404 trying to fetch remote history for 41c0559f98d4
@dhrp
dhrp / insert.db.sql
Created June 25, 2013 08:57
mysql -f -uadmin -p****** admin_magento5 < db
Result of mysql import with -f (force) option
bash-3.2# mysql -f -uadmin -p********* admin_magento5 < db
ERROR 1062 (23000) at line 1374: Duplicate entry '1633-81-0' for key 2
ERROR 1062 (23000) at line 1409: Duplicate entry '1601-64-0' for key 2
ERROR 1062 (23000) at line 1479: Duplicate entry '1601-70-0' for key 2
ERROR 1062 (23000) at line 1575: Duplicate entry '1611-62-0' for key 2
ERROR 1062 (23000) at line 1647: Duplicate entry '1611-71-0' for key 2
ERROR 1062 (23000) at line 5169: Duplicate entry '3394-13' for key 2
ERROR 1062 (23000) at line 5237: Duplicate entry '956-12' for key 2
@dhrp
dhrp / documentation-toc.txt
Created June 25, 2013 21:59
A introduction thing
introduction
what's here
one paragraph of introduction
desctiptions of important sections
one image with a pointer to high level overview
manifesto
high level overview
glossary
FROM ubuntu (None)
404 Client Error: Not Found
Traceback (most recent call last):
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 337, in build
method(args)
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 422, in cmd_from
img = self.client.inspect_image(name)
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 178, in inspect_image
return self._result(self.get(self._url("/images/{0}/json".format(image_id))), True)
File "/home/highland_staging/env/local/lib/python2.7/site-packages/docker/client.py", line 37, in _result