This file contains 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
def reload_urlconf(urlconf=None, urls_attr='urlpatterns'): | |
if urlconf is None: | |
urlconf = settings.ROOT_URLCONF | |
if urlconf in sys.modules: | |
reload(sys.modules[urlconf]) | |
reloaded = import_module(urlconf) | |
reloaded_urls = getattr(reloaded, urls_attr) | |
set_urlconf(tuple(reloaded_urls)) |
This file contains 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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by libcdio configure 0.93git, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --enable-maintainer-mode | |
## --------- ## | |
## Platform. ## |
This file contains 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 time | |
from logging import getLogger | |
class RetryContextInvalidResult(Exception): | |
pass | |
class RetryContext(object): |
This file contains 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
[default] Forcing shutdown of VM... | |
[default] Destroying VM and associated drives... | |
/usr/lib/ruby/vendor_ruby/net/ssh/ruby_compat.rb:33:in `select': closed stream (IOError) | |
from /usr/lib/ruby/vendor_ruby/net/ssh/ruby_compat.rb:33:in `io_select' | |
from /usr/lib/ruby/vendor_ruby/net/ssh/ruby_compat.rb:32:in `synchronize' | |
from /usr/lib/ruby/vendor_ruby/net/ssh/ruby_compat.rb:32:in `io_select' | |
from /usr/lib/ruby/vendor_ruby/net/ssh/transport/packet_stream.rb:73:in `available_for_read?' | |
from /usr/lib/ruby/vendor_ruby/net/ssh/transport/packet_stream.rb:85:in `next_packet' | |
from /usr/lib/ruby/vendor_ruby/net/ssh/transport/session.rb:170:in `poll_message' | |
from /usr/lib/ruby/vendor_ruby/net/ssh/transport/session.rb:165:in `loop' |
This file contains 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
[2012-10-01T16:43:39+00:00] INFO: Processing application_python_django[xxx] action before_deploy (wsgi_apps::xxx line 109) | |
================================================================================ | |
Error executing action `before_deploy` on resource 'application_python_django[xxx]' | |
================================================================================ | |
ArgumentError |
This file contains 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
176.34.208.232 [2012-10-03T17:38:48+00:00] INFO: *** Chef 10.14.2 *** | |
176.34.208.232 [2012-10-03T17:38:50+00:00] INFO: Setting the run_list to ["role[base]", "role[apache_wsgi]", "role[db_server]", "role[rbx_web]", "role[encoder]"] from JSON | |
176.34.208.232 [2012-10-03T17:38:51+00:00] INFO: Run List is [role[base], role[apache_wsgi], role[db_server], role[rbx_web], role[encoder]] | |
176.34.208.232 [2012-10-03T17:38:51+00:00] INFO: Run List expands to [apt, git, mercurial, hosts, python, apache2, apache2::mod_wsgi, mysql::server, hacks, wsgi_apps::rbx, rabbitmq, rabbitmq::mgmt_console, celery, ffmpeg, ffmpeg2theora, wsgi_apps::enc] | |
176.34.208.232 [2012-10-03T17:38:51+00:00] INFO: Starting Chef Run for rbxdev-chef | |
176.34.208.232 [2012-10-03T17:38:51+00:00] INFO: Running start handlers | |
176.34.208.232 [2012-10-03T17:38:51+00:00] INFO: Start handlers complete. | |
176.34.208.232 [2012-10-03T17:38:52+00:00] INFO: Loading cookbooks [apache2, application, application_python, apt, aws, build-essential, celery, database, dmg, |
This file contains 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 xml.etree.cElementTree as ET | |
""" | |
ripped off from: | |
http://effbot.python-hosting.com/file/stuff/sandbox/elementlib/clone.py | |
apparently this is faster than using copy.deepcopy on an ElementTree | |
""" | |
## |
This file contains 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
[redis] Mounting shared folders... | |
[redis] -- v-root: /vagrant | |
[redis] -- v-csr-3: /tmp/vagrant-chef-1/chef-solo-3/roles | |
The following SSH command responded with a non-zero exit status. | |
Vagrant assumes that this means the command failed! | |
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csr-3 /tmp/vagrant-chef-1/chef-solo-3/roles | |
$ | |
and if you ssh in to the vm: |
This file contains 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
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "Usage: git getpull <SHA>" | |
exit 1 | |
elif [ -z "$(git rev-parse --git-dir 2>/dev/null)" ]; then | |
echo "Not in a git directory" | |
exit 1 | |
else | |
repo_details=( \ |
This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks |
OlderNewer