Skip to content

Instantly share code, notes, and snippets.

View dhrp's full-sized avatar

Thatcher dhrp

View GitHub Profile
@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 / docker
Created June 8, 2013 02:15
this is the docker ascii logo
Docker logo
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
@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
@dhrp
dhrp / gist:7491438
Created November 15, 2013 20:56
Docker build from private repo
thatcher@blue1:~/Develop/tmp$ git clone [email protected]:dhrp/rectangle.im.git
Cloning into 'rectangle.im'...
remote: Counting objects: 65, done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 65 (delta 14), reused 62 (delta 11)
Receiving objects: 100% (65/65), 24.72 KiB, done.
Resolving deltas: 100% (14/14), done.
thatcher@blue1:~/Develop/tmp$ docker build git://github.com:dhrp/rectangle.im.git
2013/11/15 20:56:16 Error: Error trying to use git: exit status 128 (fatal: unable to connect to github.com:
github.com: Servname not supported for ai_socktype
@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 [email protected].

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