Skip to content

Instantly share code, notes, and snippets.

@David7ce
Created July 17, 2025 20:46
Show Gist options
  • Save David7ce/fe269ddfb152d99abf11cae87e9aaf3b to your computer and use it in GitHub Desktop.
Save David7ce/fe269ddfb152d99abf11cae87e9aaf3b to your computer and use it in GitHub Desktop.

Revisions

  1. @h3ssan h3ssan revised this gist Jul 3, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions JetBrains trial reset.md
    Original file line number Diff line number Diff line change
    @@ -29,4 +29,9 @@ done

    echo "Removing userPrefs files..."
    rm -rf ~/.java/.userPrefs 2> /dev/null
    ```

    If not works on Mac OS, then run the following code:
    ```sh
    rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist
    ```
  2. @h3ssan h3ssan renamed this gist May 10, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @h3ssan h3ssan created this gist Sep 7, 2021.
    32 changes: 32 additions & 0 deletions JetBrains trial reset
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    In some cases, only these lines will work
    ```sh
    for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
    done
    ```

    But if not, try these

    ```sh
    for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    echo "[+] Resetting trial period for $product"

    echo "[+] Removing Evaluation Key..."
    rm -rf ~/.config/$product*/eval 2> /dev/null

    # Above path not working on latest version, Fixed below
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null

    echo "[+] Removing all evlsprt properties in options.xml..."
    sed -i 's/evlsprt//' ~/.config/$product*/options/other.xml 2> /dev/null

    # Above path not working on latest version, Fixed below
    sed -i 's/evlsprt//' ~/.config/JetBrains/$product*/options/other.xml 2> /dev/null

    echo
    done

    echo "Removing userPrefs files..."
    rm -rf ~/.java/.userPrefs 2> /dev/null
    ```