Skip to content

Instantly share code, notes, and snippets.

# A shell function that mimics the defaults command using /usr/libexec/PlistBuddy
function defaults2() {
# Check the number of arguments
# If the number of arguments is less then 2, fallback to defaults command
if [ $# -lt 2 ]; then
/usr/bin/defaults "$@"
return $?
fi
@miku1958
miku1958 / MAA-auto-plans.json
Last active September 23, 2023 02:08
MAA-auto-plans
{
"plans":[
{
"rooms":{
"trading":[
{
"product":"LMD",
"operators":[
"巫恋",
"龙舌兰",