Skip to content

Instantly share code, notes, and snippets.

View hsz's full-sized avatar

Jakub Chrzanowski hsz

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<plugins>
<plugin
id="foo"
url="/foo/bar.buz"
version="1.2.5">
<idea-version since-build="181.3" until-build="255.*"/>
</plugin>
</plugins>
<products>
<product name="AppCode">
<code>OC</code>
<channel id="OC-RELEASE-licensing-RELEASE" name="AppCode RELEASE" status="release" url="https://www.jetbrains.com/objc/download" feedback="https://youtrack.jetbrains.com" majorVersion="2023" licensing="release">
<build number="231.9423" version="2023.1.5" releaseDate="20230406" fullNumber="231.9423.10">
<message><![CDATA[<p>A bug-fix update, AppCode 2023.1.5, is available for download!</p>
<p>The main highlights include:</p>
<ul>
<li><a href="https://www.cve.org/CVERecord?id=CVE-2024-37051">CVE-2024-37051</a> Fixed security issue related to JetBrains GitHub Plugin. For more details, please refer to the <a href="https://blog.jetbrains.com/security/2024/06/updates-for-security-issue-affecting-intellij-based-ides-2023-1-and-github-plugin/">blog post</a>.</li>
</ul>
@hsz
hsz / Clean Gradle Transformers Cache.kt
Created July 19, 2024 14:44
This scripts remove all IntelliJ Platform extracted copies from the Gradle Transformer Cache.
@file:OptIn(ExperimentalPathApi::class)
import kotlin.io.path.*
/**
* This scripts remove all IntelliJ Platform extracted copies from the Gradle Transformer Cache.
*/
fun main() {
val userHome = Path(System.getProperty("user.home"))
val caches = userHome.resolve(".gradle/caches")
Here's a bullet character: •
@hsz
hsz / products-releases.xml
Last active September 13, 2021 14:26
foo.xml
<products>
<product name="AppCode">
<code>OC</code>
<channel id="OCXY-RELEASE-licensing-RELEASE" name="AppCode RELEASE" status="release" url="https://www.jetbrains.com/objc/download" feedback="https://youtrack.jetbrains.com" majorVersion="2021" licensing="release">
<build number="212.5080" version="2021.2.1" releaseDate="20210812" fullNumber="212.5080.60">
<message><![CDATA[<p>AppCode 2021.2.1 is here!</p>
<p><strong>Bug fixes</strong></p>
<ul>
<li>Unable to view code coverage on "development pods" (<a href="https://youtrack.jetbrains.com/issue/OC-21060">OC-21060</a>)</li>
<li>CocoaPods product references are resolved to a wrong file (<a href="https://youtrack.jetbrains.com/issue/OC-21837">OC-21837</a>)</li>
@hsz
hsz / Spotify.scpt
Created July 1, 2021 12:19
Play/pause Spotify with no iTunes action hijacking
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
if is_running("Spotify") then
tell application "Spotify" to playpause
else
tell application "Spotify"
activate
play
@hsz
hsz / verbose.input.files.gradle
Created May 19, 2021 06:42
Run Gradle tasks in verbose mode printing all the input paths
// in build.gradle: apply(from = "verbose.input.files.gradle")
gradle.taskGraph.afterTask { task ->
StringBuffer taskInfo = new StringBuffer()
taskInfo << """"-------------
name:$task.name group:$task.group : $task.description
conv:$task.convention.plugins
inputs:
"""
task.inputs.files.each{ it ->
@hsz
hsz / settings.gradle
Created November 24, 2020 10:04
Link project with locally built Gradle IntelliJ Plugin
rootProject.name = 'my project'
includeBuild '../../../Projects/JetBrains/gradle-intellij-plugin'
buildscript {
dependencies {
classpath files('../../../JetBrains/gradle-intellij-plugin/build/libs/gradle-intellij-plugin-0.6.5.jar')
}
}