danemacmillan

Montreal

https://danemacmillan.com

Full stack Web engineer.

Aug
22
awarded Cleanup
Aug
22
comment xdebug Time-out connecting to client. :-( using phpstorm 7.1.3/vagrant/virtualbox/magento
@Black Copying and pasting the entire post is excessive. It's a long post. I entirely disagree with your edit. You might as well post the entire contents of the Xdebug URL while you're at it, just in case, you know. Heck, just to be extra-super-duper-safe be sure to follow all the links on the Xdebug URL and paste the contents of those as well. My answer must contain the entirety of the World Wide Web to be relevant. My blog is hosted on GitHub. If it goes down, then the industry has changed. I'm restoring my original post. My response addressed OPs confusion; my blog was supplemental reading.
Aug
18
comment set enforce-gtid-consistency back to false
@david For anyone coming by today, August 2019 or later, disabling binary logs do not disable GTID consistency. It is permanently on.
Jun
27
comment How to write if statement in .tmux.conf to set different options for different tmux versions?
@TomHale That sed string is much better, but you forgot to pipe it. I'm taking it, thanks!
Jun
26
comment How to write if statement in .tmux.conf to set different options for different tmux versions?
$(tmux -V | cut -c -8 | cut -d' ' -f2)
Jun
26
comment How to write if statement in .tmux.conf to set different options for different tmux versions?
It should be noted that these version checks will not work if there are letters and other characters in the release version. In the spirit of tmux's FU SEMVER, I offer up the last two releases on GitHub that defy these version checks: 2.9a and 3.0-rc3. github.com/tmux/tmux/releases
Jun
2
awarded Necromancer
May
9
comment Who is listening on a given TCP port on Mac OS X?
This is going in my dotfiles. I search every few months and always come upon this answer.
May
3
awarded Nice Answer
Apr
10
comment Why is bash completion being loaded so slow on OS X?
@nwinkler You would be correct. I'm puzzled why I happened to mention that, because MacOS still ships with version 3.2.57(1)-release (x86_64-apple-darwin18). Thanks for pointing that out; I've remove the line from my post.
Apr
10
revised Why is bash completion being loaded so slow on OS X?
Remove tidbit about bash 4.1+
Mar
22
comment Why can't <fieldset> be flex containers?
Chrome 72 checking in.
Mar
19
comment Algolia Instantsearch - add a callback after results are displayed?
An alternative to #2: search.on('render', function() { console.log('Algolia has just rendered the DOM.'); myCallback(); }); The only caveat is that no data is passed to it.
Mar
12
awarded Yearling
Mar
12
awarded Autobiographer
Mar
12
comment What shell command will clone a directory instead of making a deep copy?
@nohillside BSD's cp utility only supports uppercase -R, not both, like GNU's coreutils' cp utility. To answer the question, yes, you can issue /bin/cp -cR or /bin/cp -ac.
Mar
7
comment A faster route to deploying static content in Magento 2? Dev to Live etc?
This falls over when the release needs to have DB updates. Those DB updates are not atomic, and errors will not roll back.
Feb
7
comment How to Export & Import Existing User (with its Privileges!)
@threeve I assume you suggest that because pt-show-grants no longer provides the password with that combination?
Jan
24
answered How can I disable Bash sessions in OS X El Capitan
Jan
24
comment How can I disable Bash sessions in OS X El Capitan
It should be noted that if anyone uses a different terminal, like Alacritty or iTerm, and never opens up Apple's Terminal app, none of this additional behaviour will occur. In other words, tonnes of environment variables ($TERM_SESSION_ID, $SHELL_SESSION_*) and the ~/.bash_sessions directory will not be created. It's only in opening Apple's Terminal app that all of these extras are created.
1 2 3 4 5