Skip to content

Instantly share code, notes, and snippets.

@lucdkny
Forked from mdjaman/MAMP PRO 4 Trial Reset.md
Created November 11, 2019 14:10
Show Gist options
  • Save lucdkny/f55cff3c6692597886d40a7a4908ba2d to your computer and use it in GitHub Desktop.
Save lucdkny/f55cff3c6692597886d40a7a4908ba2d to your computer and use it in GitHub Desktop.

Revisions

  1. @thoaster thoaster renamed this gist Sep 24, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @thoaster thoaster revised this gist Sep 24, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion reset_mamp4.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/sh
    # Reset MAMP PRO 4 Trial
    # Let me know if it works
    set -e
    set +e
    rm ~/Library/Preferences/de.appsolute.mamppro.plist
    rm ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/de.appsolute.mamppro.sfl
    rm -rf ~/Library/Caches/de.appsolute.mamppro
  3. @thoaster thoaster revised this gist Sep 24, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion reset_mamp4.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,8 @@
    # Let me know if it works
    set -e
    rm ~/Library/Preferences/de.appsolute.mamppro.plist
    rm ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/de.appsolute.mamppro.sfl
    rm -rf ~/Library/Caches/de.appsolute.mamppro
    rm -rf ~/Library/Saved\ Application\ State/de.appsolute.mamppro.savedState
    killall cfprefsd
    sudo killall de.appsolute.mampprohelper
    sudo killall cfprefsd
  4. @thoaster thoaster revised this gist Sep 19, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    A simple script that resets latest MAMP PRO 4 trial validity, and keeps your data safe.

    ## How to use
    - Copy the code into a file OR download the script and save it as _reset_mamp4.sh_
    - Copy the code into a file OR [download the script](https://git.io/viMgh) and save it as _reset_mamp4.sh_
    - Open the Terminal app and write `chmod +x ` then drag and drop the file on the Terminal. You should have something like `chmod +x reset_mamp4.sh`. Press Enter to run it.
    - Now, run the file itself by dragging and dropping it on the Terminal (something like `reset_mamp4.sh`) then pressing Enter.
    - Open MAMP PRO and check if you have 14 days left now.
  5. @thoaster thoaster created this gist Sep 19, 2016.
    14 changes: 14 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # MAMP PRO 4 Trial Reset
    A simple script that resets latest MAMP PRO 4 trial validity, and keeps your data safe.

    ## How to use
    - Copy the code into a file OR download the script and save it as _reset_mamp4.sh_
    - Open the Terminal app and write `chmod +x ` then drag and drop the file on the Terminal. You should have something like `chmod +x reset_mamp4.sh`. Press Enter to run it.
    - Now, run the file itself by dragging and dropping it on the Terminal (something like `reset_mamp4.sh`) then pressing Enter.
    - Open MAMP PRO and check if you have 14 days left now.

    ## Didn't work?
    Try using superpowers and run it as root `sudo reset_mamp4.sh`.

    ## Did it work?
    Let me know, or improve it by yourself.
    8 changes: 8 additions & 0 deletions reset_mamp4.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/sh
    # Reset MAMP PRO 4 Trial
    # Let me know if it works
    set -e
    rm ~/Library/Preferences/de.appsolute.mamppro.plist
    rm -rf ~/Library/Caches/de.appsolute.mamppro
    rm -rf ~/Library/Saved\ Application\ State/de.appsolute.mamppro.savedState
    killall cfprefsd