Useful Regex
Man I love regex. Select everything after the “>” character: \ > (.*) Select everything before the “>” character: (.*) >
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
Bash: Auto-add User to Groups Read More »
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.
Bash: Dev LAMP Stack Setup Read More »
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.
Python: Grab Latest Plugin Version Number from WordPress API Read More »