Skip to content

Instantly share code, notes, and snippets.

View msheiko's full-sized avatar
🎲

Maksim msheiko

🎲
  • Poland
View GitHub Profile
@msheiko
msheiko / navicat_reset_trial.sh
Created April 3, 2023 06:21
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]}