AnselTaft.com
Entrepreneur, WordPress integrator, SEO strategist, and a not-so-horrible writer

How to Stay Logged in to WordPress For X Number of Days

If you're like me you've tired logging in to each WordPress site you manage every 2 days (or two weeks if you check off the Remember Me checkbox before clicking Log In) and want a way to extend the the log in period. Enter the following function:

/** Extend logged-in time period from the default to 30 days **/
function keepLoggedInFor30Days( $expirein ) {
return 2592000; // 30 days in seconds
}
add_filter( 'auth_cookie_expiration', 'keepLoggedInFor30Days' );

Pop that code into your theme's function's file and you're set for 2592000 seconds AKA 30 days. Easy peasy.

The Maddening Process of Making a Custom VMware ESXi 7.0x ISO

First, the most important part: the set of PowerShell commands which allowed me to make a custom VMware ESXi 7.0.2 (ESXi-7.0U2e-19290878-standard): # Do this once: install VMware PowerCLI from the PowerShell Gallery Install-Module -Name VMware.PowerCLI -Scope CurrentUser # Do this once Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine # Check that it worked Get-ExecutionPolicy -List # Change… Continue Reading

Every Development Project, Ever

A short story “A new project! I should learn X while I build it because I need to learn it anyway and it’ll save me sooooo much time on the next build.” Eight hours later… Next project: “I didn’t use X to its fullest so this time I’ll try to optimize the setup.” Eight hours… Continue Reading

How To Add Varnish In Front Of An NGINX Front End Proxy With Apache On DirectAdmin, That’s WordPress-Friendly

Start with Poralix’s NGINX + Varnish + Apache on Directadmin powered server post as an overall guide First, Add the Extra Packages for Enterprise Linux (EPEL) repository to your server and straight after that, install Varnish using Yum. Focus on the section titled Varnish 4.1 Switch back to the overall guide and finish the installation… Continue Reading