Skip to content

Instantly share code, notes, and snippets.

View Satchitananda's full-sized avatar

Vladimir Sinitsin Satchitananda

  • Atomic
  • Thailand
View GitHub Profile
@Satchitananda
Satchitananda / fast_test_runner.py
Last active August 29, 2015 14:26
Django 1.6 test suite --keepdb and skip DB creation if there is no need for it
from django.db import OperationalError
from django.utils.six.moves import input
from django.db.utils import load_backend
from django.test import TransactionTestCase
from django.test.runner import dependency_ordered
try:
from django.test.runner import DiscoverRunner as BaseRunner
except ImportError:
# Django < 1.6 fallback
@Satchitananda
Satchitananda / action.rb
Last active August 29, 2015 14:25
Hack to fix running Vagrant on Windows 10. Place it instead of original file to HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\providers\virtualbox
require "vagrant/action/builder"
module VagrantPlugins
module ProviderVirtualBox
module Action
autoload :Boot, File.expand_path("../action/boot", __FILE__)
autoload :CheckAccessible, File.expand_path("../action/check_accessible", __FILE__)
autoload :CheckCreated, File.expand_path("../action/check_created", __FILE__)
autoload :CheckGuestAdditions, File.expand_path("../action/check_guest_additions", __FILE__)
autoload :CheckRunning, File.expand_path("../action/check_running", __FILE__)