Skip to content

Instantly share code, notes, and snippets.

View nort3x's full-sized avatar
💭
climbing shoulder of giants

nort3x nort3x

💭
climbing shoulder of giants
  • kar.center
  • Tehran, Iran
View GitHub Profile
@nort3x
nort3x / readme.md
Last active June 20, 2026 06:37
prevent Jetbrains products (Intellij, Webstorm, Rider, Goland ...) checking for validity of License - don't use ja-netfilter

Warning

I see many people proposing solutions for other platforms (such as Windows or macOS). I cannot verify the authenticity of those methods, and you should not copy, paste, and run code from random people on the internet without first understanding what it does. Ideally, review every line carefully and, even then, run it with caution in a sandboxed environment.

Introduction

I personally experienced slowdowns and issues while using the ja-netfilter agent.

I decided to investigate how JetBrains checks license validity, because despite explicitly configuring JetBrains to work offline, it still attempts to validate licenses.

Here are my findings:

@nort3x
nort3x / BroadCaster.kt
Created January 22, 2023 16:09
Embedded Kotlin FanOut BroadCaster
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import java.util.concurrent.ConcurrentHashMap
class BroadCaster {
@nort3x
nort3x / ComplexNumber.kt
Last active February 3, 2022 18:07 — forked from Ninayd/Complex Numbers
naming the file the right way
class Complex(private var real: Double, private var image: Double) {
// empty constructor
constructor() : this(0.0, 0.0);
operator fun plus(C: Complex): Complex {
return Complex(this.real + C.real, this.image + C.image)
}
operator fun minus(C: Complex): Complex {