Man I love regex. Select everything after the “>” character: \ > (.*) Select everything before the “>” character: (.*) >
I wrote a snippet at work today for the following scenario: we have an environment at work where websites are owned by separate users and groups. In order to modify files in the site directories, our usernames must belong to these groups. It’s a pain to manually add oneself to these groups, especially when new… Continue reading Bash: Auto-add User to Groups
Wrote a little snippet at work today for anyone who might need to get a LAMP environment set up fast for a dev environment. Works perfect for me for one off virtual machines I am doing testing in.
So recently I decided to dive back into Keto, the high-fat, adequate-protein, low-carbohydrate diet[note]https://www.reddit.com/r/keto/wiki/faq[/note]. As someone who enjoys bread more than possibly anyone on earth, it’s been very tough but I’ve been serious about keeping to it so far. And I’ve lost over 20 pounds since February. One interesting aspect of keto is the idea… Continue reading Bulletproof-style Keto Coffee
This should be a useful snippet for anyone that needs to do a lookup for a WordPress plugin’s latest available version number. I will be using this snippet to create a function in a larger WordPress environment operations script I have been developing for work.