Skip to content

Instantly share code, notes, and snippets.

View fanpei91's full-sized avatar

fanpei91

  • China, Chengdu
  • 07:30 (UTC +08:00)
View GitHub Profile
@fanpei91
fanpei91 / jetbrains.sh
Created January 1, 2026 14:45 — forked from Brugarolas/jetbrains.sh
Reset the free trial period in JetBrains products for Mac
#!/bin/bash
if [ "$1" = "--prepare-env" ]; then
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
mkdir -p ~/Scripts
echo "Copying the script to $HOME/Scripts"
cp -rf $DIR/runme.sh ~/Scripts/jetbrains-reset.sh
chmod +x ~/Scripts/jetbrains-reset.sh