Skip to content

Instantly share code, notes, and snippets.

View sasknot's full-sized avatar
:octocat:

Rafael Silva sasknot

:octocat:
View GitHub Profile
@sasknot
sasknot / navicat_reset_trial.sh
Created December 14, 2022 17:13 — forked from tuxity/navicat_premium_reset_trial.sh
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]}