Skip to content

Instantly share code, notes, and snippets.

@phobal
Created December 29, 2018 03:02
Show Gist options
  • Select an option

  • Save phobal/b589b019e47e672fbb5b74665d96229e to your computer and use it in GitHub Desktop.

Select an option

Save phobal/b589b019e47e672fbb5b74665d96229e to your computer and use it in GitHub Desktop.
free use sketch
#!/bin/bash
date 0102030405
# open /Applications/Sketch.app
open /Applications/Sketch.app
# open ~/Downloads/Sketch.app
ntpdate -u time.apple.com
# how to use
# 1. copy this file to anywhere in your macbook
# 2. chmod +x ./sketch.sh
# 3. sudo ./sketch.sh
@mathew820
Copy link

I saw how to use but don't understand. Could you Send screen by screen shot would be a great help or step with
details info please.

@phobal
Copy link
Author

phobal commented Oct 6, 2019

@mathew820 The principle is very simple. The sketch is used to monitor whether the trial period expires according to the system time. Therefore, you can modify the system time to a very early time when you open the sketch, and restore the system time after opening.

https://drive.google.com/file/d/152zNMua1Kj8_yyH9qeWEoMBkitHkhZOH/view?usp=sharing

@mathew820
Copy link

mathew820 commented Oct 6, 2019 via email

@phobal
Copy link
Author

phobal commented Oct 6, 2019

maybe you can learning some shell script basic tech, hope useful to you https://www.shellscript.sh/first.html

@phobal
Copy link
Author

phobal commented Oct 28, 2019

In the latest macOS version (Mojave 10.14 Beta) the ntpdate tool has been removed.

please use sntp -sS time.apple.com instead of ntpdate -u time.apple.com

https://apple.stackexchange.com/questions/329222/the-ntpdate-command-was-removed-from-mojave-what-to-use-now?noredirect=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment