To sync a local folder to a B2 bucket using filesize as the comparison to more accurately ensure sync (until hash is supported) (source)
Git Merge vs Rebase
I wanted to better understand these git procedures, so this project’s aim was to help me understand the differences and advantages of using git rebase or git merge. I invented a fake project, and made commits, merges, and rebases as a simple mock of a potential portion of an actual project’s git repo. The end result repos and […]
To Compress: note: tar stores path relative to foldername above, best to run command from parent folder. Consider sudo to ensure permissions to all files intended for compression. To Compress Excluding Folder: –exclude=’path/to/folder’ excludes folder, must follow tar command before source/dest or other options, exclude multiple folders by repeating –exclude option with new folder value […]
WordPress Prompting for FTP Credentials
If you just want to see my recommended permissions for a DocRoot, that is here. When updating plugins, themes, or the WordPress core – or when activating WordFence (and possibly in other situations), you may be prompted for FTP credentials for the webserver. If so, this indicates that WordPress was not able to write to […]
Payments Not Processing in WooCommerce
Customer receives error at shopping cart when trying to complete (charge) order – error was something like “Error processing payment, please try again later”. WooCommerce > Status > Logs > woocommerce-square-sync-XXX log shows repeated: Solution: Disconnect Square from WooCommerce in Dashboard > WooCommerce > Settings > Integrations, and then reconnect to Square. note: Upon reactivation, […]
Wordfence: You are temporarily locked out
If users are seeing a page reporting that they are temporarily locked out, and the page contains a Wordfence logo, they have probably been blocked by our brute-force protection rules in Wordfence. This appears to be potentially a compoundable problem if multiple users may try to access the site from the same IP, so even […]
bash Command Not Found
If you try to run a command, but bash says it can’t find it, like: Use locate to find the the path to the command Add that path to the system PATH variable NOTE: does not persist through logout/logon src
Check if the version you want is easily accessible from the WP plugin directory Find the plugin Click Advanced View Scroll to the bottom, and see if the version you want is available If the version you want isn’t available, you can build it from the SVN repo Install a command line svn client like […]
Force Login Prompt in SharePoint 2013/2016
To login to a SharePoint 2013/2016 site and force it prompt for login instead of automatically signing in with the current Windows user account, append the above string to your site URL. For example, https://sharepoint.example.com/mysite/_layouts/closeConnection.aspx?loginasanotheruser=true This can be useful to login as a different user. source
Traversing SharePoint in PowerShell
This is a collection of snippets of PowerShell that I found helpful when trying to access SharePoint data via PowerShell. Another great resource is probably Shane Young. NOTE: Pretty sure all commands return security trimmed results, so make sure the user you are running as has appropriate permissions, otherwise some results may be omitted. Create […]