Skip to content

Instantly share code, notes, and snippets.

View duowb's full-sized avatar
😶‍🌫️

duo duowb

😶‍🌫️
View GitHub Profile
@duowb
duowb / navicat_premium_reset_trial.sh
Created April 29, 2024 09:06
Reset Navicat Premium 15/16 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}