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
PS C:\Users\Omer\vagrant\development environment> vagrant up puppetmaster | |
[puppetmaster] VM already created. Booting if it's not already running... | |
[puppetmaster] Clearing any previously set forwarded ports... | |
[puppetmaster] Forwarding ports... | |
[puppetmaster] -- 22 => 2222 (adapter 1) | |
[puppetmaster] Creating shared folders metadata... | |
[puppetmaster] Clearing any previously set network interfaces... | |
[puppetmaster] Preparing network interfaces based on configuration... | |
[puppetmaster] Booting VM... | |
[puppetmaster] Waiting for VM to boot. This can take a few minutes. |
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
try: | |
import django | |
print("Django was imported.") | |
except ImportError: | |
print("Django was not imported.") |
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 monkey_patch(): | |
""" | |
Monkeypatches | |
""" | |
import logging | |
import pkgutil | |
import warnings | |
import os | |
from django.core.exceptions import ImproperlyConfigured |
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
""" | |
Demonstrates loading settings from a module and overriding it by a class | |
""" | |
import os | |
from django.utils import importlib | |
from django.conf.default import * | |
class ConfigurationLoader(SettingsSourcesLoader): |
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
git clone git://github.com/rtomayko/git-sh.git | |
cd git-sh | |
make | |
sudo make install |
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
cinst poshgit | |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm |
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
git config --global init.templatedir /path/to/your/templates/ |
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
export GIT_TEMPLATE_DIR=/path/to/templates/ |
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
git init --template=/path/to/your/templates/directory/ |
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
git clone https://url/to/your/repository --template=/path/to/your/templates/directory/ |
OlderNewer