Skip to content

Instantly share code, notes, and snippets.

View Sivan757's full-sized avatar
😷

Sivan757 Sivan757

😷
  • China, Guangzhou
View GitHub Profile
@Sivan757
Sivan757 / Example.kt
Created January 11, 2022 15:00
Kotlin logging
class AnyClass {
val log = logger()
}
@Sivan757
Sivan757 / navicat_premium_reset_trial.sh
Created March 22, 2024 05:00
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]}