OSX turn off or delay hibernate

Apple’s Mac OSX hibernate can be delayed indefinitely or turned off by issuing this terminal command.

sudo pmset -a hibernatemode 0

To get back to default normal hibernate mode type this terminal command.

sudo pmset -a hibernatemode 3

So the word is this won’t disable hibernate on battery failures. Haven’t tested, hope I won’t have to.

Git subproject notes

I want  to use a project as a tool-set for a big ole work project. The sub-project isn’t mine, I don’t have access to the code, I will probably need to update it as a component of my big project.

Some good reading here: https://hpc.uni.lu/blog/2014/understanding-git-subtree/

Some of my first tip-toe basic understanding.

# Straight subtree pulls the dependency into local directory
git subtree add --prefix CMB2 https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress.git master --squash

Apparently this can get better if you use the

git remote command.


# Setup dependency as a remote
git remote add -f Custom-Metaboxes-and-Fields-for-WordPress https://github.com/WebDevStudios/CMB2.git

# Fetch information about remote
git fetch Custom-Metaboxes-and-Fields-for-WordPress master

# Add remote to subdirectory and pull master branch
git subtree add --prefix=CMB2 --squash CMB2/master

# Update remote down into local directory
git subtree pull --prefix CMB2 CMB2 master --squash

With the remote added we should be able to update the dependency project by doing a subtree pull. Remember the sub-project is not mine but it will need updating.

git subtree pull --prefix Custom-Metaboxes-and-Fields-for-WordPress Custom-Metaboxes-and-Fields-for-WordPress master --squash

Yank Widget 1.2.1

So I didn’t make a post for the updated Yank Widget release. That wasn’t nice or very smart.

Yank Widget 1.2.1 is only a bug fix release for WordPress 2.7.x to remove errors on post and page edit screens. Please report any issues you have here or use the contact us form.

My apologies to the folks using my goofy plugins. I may have moved your comment or reply to the proper article.