If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
If you'd like to experiment with Terraform on macOS locally, a great provider for doing so is the Docker provider. You can get set up in a few simple steps, like so:
Install Docker for Mac if you have not already.
| /* top */ | |
| .p-t-0 { padding-top: 0px; } | |
| .p-t-1 { padding-top: 10px; } | |
| .p-t-2 { padding-top: 15px; } | |
| .p-t-3 { padding-top: 30px; } | |
| /* bottom */ | |
| .p-b-0 { padding-bottom: 0px; } | |
| .p-b-1 { padding-bottom: 10px; } | |
| .p-b-2 { padding-bottom: 15px; } |
| <?php | |
| $locale = 'nl_NL'; | |
| Mage::app()->getLocale()->setLocaleCode($locale); | |
| Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true); | |
| //http://www.kennydeckers.com/programatically-set-locale-language-magento/ | |
| ?> |
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
Auto use php-cs-fixer at save with PHPStorm and file watcher
NB: File watchers are linked to a specific project, so we have to re-import them for each project. External tools have IDE scope but we couldn't run them automaticaly - we could set a key bind.
| <ul class="messages"> | |
| <li class="error-msg"> | |
| <ul> | |
| <li><span>Error Message</span></li> | |
| </ul> | |
| </li> | |
| <li class="success-msg"> | |
| <ul> | |
| <li><span>Success Message</span></li> | |
| </ul> |
| RSpec::Matchers.define :terminate do |code| | |
| actual = nil | |
| def supports_block_expectations? | |
| true | |
| end | |
| match do |block| | |
| begin | |
| block.call |
| # Temporarily redirects STDOUT and STDERR to /dev/null | |
| # but does print exceptions should there occur any. | |
| # Call as: | |
| # suppress_output { puts 'never printed' } | |
| # | |
| def suppress_output | |
| original_stderr = $stderr.clone | |
| original_stdout = $stdout.clone | |
| $stderr.reopen(File.new('/dev/null', 'w')) | |
| $stdout.reopen(File.new('/dev/null', 'w')) |
| <?php | |
| class RobustPDO extends PDO | |
| { | |
| /** Call setAttribute to set the session wait_timeout value */ | |
| const ATTR_MYSQL_TIMEOUT = 100; | |
| /** @var array */ | |
| protected $config = []; | |
| /** @var bool For lazy connection tracking */ |
| <?php | |
| $a = new A(); | |
| $reflection = new \ReflectionClass($a); | |
| $property = $reflection->getProperty('privateProperty'); | |
| $property->setAccessible(true); | |
| $property->setValue($a, 'new-value'); | |
| echo $a->getPrivateProperty(); | |
| //outputs: |