Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import subprocess
import time
import os
iterations = 10
output_size = 10000 # lines
timeout = 0.1 # seconds
buffer = 1024 * 8

Action that allows to find all classes that are inherited from two specified parent classes/interfaces

Usage:

  • Run "Tools -> IDE Scripting Console" action
  • Select groovy
  • Copy attached script to created scratch file
  • Select whole file
  • Press Ctrl+Enter
  • Call action "Find double inheritance classes" (using "Help -> Find Action" action)
@AMPivovarov
AMPivovarov / IDE Script #2.md
Last active July 19, 2022 05:27
IDE Script #2.md

Sample custom action for calling "git reset HEAD~1 --hard"

Usage:

  • Run "Tools -> IDE Scripting Console" action
  • Select groovy
  • Copy attached script to created scratch file
  • Select whole file
  • Press Ctrl+Enter
  • Call action "Find Git repositories without specified branch" (using "Help -> Find Action" action)

Sample custom action for searching for git repositories without specified branch.

Usage:

  • Run "Tools -> IDE Scripting Console" action
  • Select groovy
  • Copy attached script to created scratch file
  • Select whole file
  • Press Ctrl+Enter
  • Call action "Find Git repositories without specified branch" (using "Help -> Find Action" action)