Skip to content

Instantly share code, notes, and snippets.

View Mr-LiuDC's full-sized avatar

Leo Mr-LiuDC

View GitHub Profile
@Mr-LiuDC
Mr-LiuDC / pipeline-syntax.gdsl
Last active February 19, 2024 12:30
GDSL supporting jenkins pipeline.
/**
* JENKINS_HOST/job/pipeline-job/pipeline-syntax/gdsl
* https://gist.github.com/Mr-LiuDC/8a1fbe27e8fbd42361185b06085ef4c3
*
* All pipeline steps can be found here: https://www.jenkins.io/doc/pipeline/steps/
*/
// The global script scope
def ctx = context(scope: scriptScope())
@tuxity
tuxity / navicat_premium_reset_trial.sh
Last active April 25, 2024 02:44
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]}