Skip to content

Instantly share code, notes, and snippets.

View skryvets's full-sized avatar
👋

Sergey Kryvets skryvets

👋
View GitHub Profile
@skryvets
skryvets / npm-version-ranges.md
Created February 14, 2026 14:25
NPM Version Ranges - Quick Reference

NPM Version Ranges - Quick Reference

Quick Reference Cheat Sheet

Symbol Name Update Level Example Matches Won't Match
^ Caret Minor + Patch ^1.2.3 1.2.3, 1.9.0 2.0.0
~ Tilde Patch only ~1.2.3 1.2.3, 1.2.9 1.3.0
(none) Exact None 1.2.3 1.2.3 only 1.2.4
* or x Wildcard Everything 1.x 1.0.0, 1.9.9 2.0.0
@skryvets
skryvets / format.sh
Created August 15, 2025 22:36 — forked from garethrees/format.sh
Format USB drive from the command line macOS
diskutil list
diskutil unmountDisk /dev/disk2
diskutil eraseDisk FAT32 SANDISK /dev/disk2
@skryvets
skryvets / 2024-jconf-security.md
Last active September 27, 2024 01:23
Notes from the presentation

Wargames: Java Vulnerabilities and Why You Should Care

Speaker: Gerrit Grunwald
Youtube video


Intro

  • Gerrit Grunwald is a developer advocate at Azul.
  • Log4Shell vulnerability incident (Nov 24, 2021) is highlighted as a reminder of how significant and widespread security vulnerabilities can be.
@skryvets
skryvets / 2024-jconf-kafka.md
Last active September 27, 2024 01:15
Summarized notes from the presentation

Brick-by-Brick: Exploring the Elements of Apache Kafka®

Speaker: Danica Fine
YouTube Link: Youtube


Kafka Fundamentals

  • Apache Kafka is a distributed event streaming platform that enables real-time data applications. It supports:
  • Reactive, accurate, loosely coupled, and resilient systems.

Jonatan Ivanov - Spring Boot observability expert

Relevant YouTube Content

Search Result Link:
Jonatan Ivanov on YouTube

To-Do:

  • Watch: Micrometer and observability topic
  • Take Notes: On how to effectively set up JVM performance tuning tools

Troubleshooting, Monitoring, and Profiling with Java Flight Recorder, Mission Control, and Cryostat

Speaker: Jeremy Davis


Tools for Profiling Java Applications

  1. Mission Control
    • Available starting with Java 11.
  • Provides powerful tools for monitoring and profiling Java applications.

Building a Custom AI Chatbot with Spring Boot, React, and LangChain4j

Speaker: Marcus Hellberg

YouTube Link: Watch the video
GitHub Repository: java-ai-playground


Key Concepts and Insights

#!/usr/bin/env kotlin
@file:Repository("https://repo.maven.apache.org/maven2/")
@file:DependsOn("com.squareup.okhttp3:okhttp:4.12.0")
import okhttp3.OkHttpClient
import okhttp3.Request
import org.w3c.dom.Document
import org.xml.sax.InputSource
import java.io.StringReader
@skryvets
skryvets / simple-http-request.main.kts
Created September 13, 2024 02:04
Simple kotlin script
#!/usr/bin/env kotlin
@file:Repository("https://repo.maven.apache.org/maven2/")
@file:DependsOn("com.squareup.okhttp3:okhttp:4.12.0")
import okhttp3.OkHttpClient
import okhttp3.Request
val client = OkHttpClient()
val request = Request.Builder().url("https://example.com").build();