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
Here is the exact process I followed to fix this on Mac OS X 10.9.5 and vagrant 1.7.2: | |
1. Get the VM id of the disassociated vm with VboxManage list vms | |
2. "vagrant up" to spin up a new machine with the original vagrantfile to regenerate the .vagrant dir. | |
3. Delete the new machine from Virtual Box and remove data. | |
4. Edit .vagrant/machines/default/virtualbox/id and replaced the id with the one retrieved in step one (beware of line breaks) | |
Vagrant up -> Success! |
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
* symfony console component, Look into using the symfony component console as part of a WordPress site. Check out wp-cli and see if that's what they are using. |
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 (1.9.3) - brew | |
* npm (v0.12.0) - brew | |
* grunt-cli - npm |
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
Githubhub user https://github.com/Ramblurr says: | |
https://github.com/mitchellh/vagrant/issues/3860#issuecomment-76380469 | |
For others who stumble across this bug report while searching, this bug has been fixed in Vagrant, but you can still get the "waiting for" delays if you're /etc/networking/interfaces file has extra ifaces in it. | |
Boot the machine with VBox Gui, wait the three or so minutes for the machine to boot, then login as root and edit /etc/networking/interfaces and make sure it doesn't have duplicate or extra ethX interfaces. | |
This happened to me when using Varying-Vagrant-Vagrants/VVV and abruptly halting the machine, and fiddling with VBox's network interfaces. | |
cloud-init-nonet[4.54]: waiting 10 seconds for network device |
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
<!-- SHOW SHIPPING RATES--> | |
<?php $quote = Mage::getModel('sales/quote'); | |
$quote->getShippingAddress()->setCountryId('ES'); // Set your default shipping country here | |
$_product->getStockItem()->setUseConfigManageStock(false); | |
$_product->getStockItem()->setManageStock(false); | |
$quote->addProduct($_product); | |
$quote->getShippingAddress()->setCollectShippingRates(true); | |
$quote->getShippingAddress()->collectTotals(); | |
$rates = $quote->getShippingAddress()->getShippingRatesCollection(); | |
// Find cheapest rate |
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 could be unrelated but I'm going to post it here because I had a hard time finding the answer to my question. I was able to get outbound email working from a vagrant virtual box by editing my /etc/resolv.conf to use Google's nameserver rather than the 10.0.x.x IP it was set to: | |
sudo vi /etc/resolv.conf | |
Change the nameserver IP: | |
nameserver 8.8.8.8 | |
Then you'll need to restart postfix: | |
sudo /etc/init.d/postfix restart |
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
http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
# if % value on top does not work use absolute positioning | |
position: absolute; | |
top: 50%; | |
transform: translateY(-50%); |
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
## Sliders | |
http://flickity.metafizzy.co/ | |
http://kenwheeler.github.io/slick/ | |
## Images | |
https://github.com/aFarkas/lazysizes | |
https://github.com/scottjehl/picturefill | |
## shims | |
https://github.com/scottjehl/iOS-Orientationchange-Fix |
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
var Gulp = require('gulp'), | |
pkg = require('./../../package.json'), | |
Sass = require('gulp-sass'), | |
Postcss = require('gulp-postcss'), | |
Autoprefixer = require('autoprefixer-core'), | |
BrowserSync = require('browser-sync'); | |
var cssCompile = function(devMode) { | |
var outputStyle; |
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
// Part 1. | |
// Implement a function prototype extension that caches function results for | |
// the same input arguments of a function with one parameter. | |
// | |
// For example: | |
// Make sin(1) have the result of Math.sin(1), but use a cached value | |
// for future calls. | |
// | |
// Part 2. | |
// Use this new function to refactor the code example. |