Skip to content

Instantly share code, notes, and snippets.

@imjlk
imjlk / doc.json
Last active April 9, 2025 01:08
wp-oepnapi
{
"openapi": "3.1.0",
"info": {
"title": "Wp-openapi-test API",
"description": "",
"version": "6.7.2",
"contact": {
"name": "wp-openapi-test",
"url": "http:\/\/wp-openapi-test.local",
"email": "[email protected]"
@imjlk
imjlk / switch_php_versions.sh
Created October 21, 2022 10:58
Add aliases of switch PHP versions on Mac OS
# 1. Need to install PHP with `brew install ...`
# 2. Need to install grep `brew install grep`
# 3. Paste it in your `~/.zshrc`
# Updated from https://localheinz.com/blog/2020/05/05/switching-between-php-versions-when-using-homebrew/
# determine versions of PHP installed with HomeBrew
installedPhpVersions=($(brew ls --versions | ggrep -E 'php(@.*)?\s' | ggrep -oP '(?<=\s)\d\.\d' | uniq | sort))
# create alias for every version of PHP installed with HomeBrew
for phpVersion in ${installedPhpVersions[*]}; do
@imjlk
imjlk / cloudSettings
Last active February 17, 2021 09:01
settingsSync
{"lastUpload":"2021-02-17T09:01:01.736Z","extensionVersion":"v3.4.3"}