Skip to content

Instantly share code, notes, and snippets.


Vladimir Sinitsin Satchitananda

View GitHub Profile
Satchitananda /
Last active Aug 29, 2015
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
from django.test.runner import DiscoverRunner as BaseRunner
except ImportError:
# Django < 1.6 fallback
Satchitananda / action.rb
Last active Aug 29, 2015
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
View action.rb
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__)
You can’t perform that action at this time.