Skip to content

Instantly share code, notes, and snippets.

@abdulowork
abdulowork / build.gradle.kts
Last active April 28, 2025 13:55
Synthetic reproduction of the transforms resolution performance bug
@CacheableTransform
internal abstract class T : TransformAction<TransformParameters.None> {
@get:PathSensitive(PathSensitivity.RELATIVE)
@get:InputArtifact
abstract val inputArtifact: Provider<FileSystemLocation>
override fun transform(outputs: TransformOutputs) {
outputs.file(inputArtifact.get().asFile)
}
}
@abdulowork
abdulowork / build.gradle.kts
Last active April 28, 2025 14:00
KGP transform graph explosion
import org.gradle.api.attributes.Usage.*
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages.KOTLIN_API
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages.KOTLIN_METADATA
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages.KOTLIN_RUNTIME
plugins {
kotlin("multiplatform") version "2.1.20"
@abdulowork
abdulowork / dump_view_on_view_did_appear.py
Last active March 6, 2023 17:15
Dump view any time viewDidAppear is called
import os
from typing import Dict, Any
from pathlib import Path
from tempfile import mkdtemp
from lldb import SBDebugger, SBCommandReturnObject, SBFrame, SBBreakpointLocation, SBExpressionOptions, \
SBLanguageRuntime, SBTarget, SBBreakpoint
image_number = 0
temporary_directory = Path(mkdtemp())
def on_view_on_view_did_appear(
@abdulowork
abdulowork / browse_packages.py
Last active March 6, 2023 17:15
Patch Finder process to allow browsing packages
import re
from lldb import SBDebugger, SBCommandReturnObject, SBCommandInterpreter, SBError, SBProcess
def browse_packages(
debugger: SBDebugger,
command: str,
result: SBCommandReturnObject,
dict
):
try:
@abdulowork
abdulowork / podlodka.md
Last active March 12, 2021 20:08
Podlodka

Фазы

Отображает notification

osascript -e "display notification \"Собираю ${PRODUCT_MODULE_NAME}\" with title \"Xcode\""
echo "output" > ${DERIVED_FILE_DIR}/output

Типы бинарников

@abdulowork
abdulowork / gist:8fa4c4340de5be0ac4f800f7fe0175d1
Created June 10, 2019 08:51
Debug Xcode sourcekit requests
Set evironment variable like so:
SOURCEKIT_SERVICE_LOG=2 /Applications/Xcode.app/Contents/MacOS/Xcode 2>&1
2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] Custom restriction was updated. Current custom restriction is {
}
2018-06-04 21:27:52.084767+0300 AppodealSwiftDemo[1751:516486] 2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] Custom restriction was updated. Current custom restriction is {
}
2018-06-04 21:27:52.084847+0300 AppodealSwiftDemo[1751:516486] 2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] OpenX api integrate
2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] OpenX api integrate
2018-06-04 21:27:52.085025+0300 AppodealSwiftDemo[1751:516483] 2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] MRAID api integrate
2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] MRAID api integrate
2018-06-04 21:27:52.085201+0300 AppodealSwiftDemo[1751:516489] 2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] Tap Sense api integrate
2018-06-04 18:27:52 +0000 [Appodeal 2.4.3][info] Tap Sense api integrate
/**
{
"exchangeContractAddress" : "0x12459c951127e0c374ff9105dda097662a027093",
"maker" : "0x8c7d76d9aef6a104b500cfd1746c331f4da5bce8",
"taker" : "0x0000000000000000000000000000000000000000",
"makerTokenAddress" : "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"takerTokenAddress" : "0xe41d2489571d322189246dafa5ebde1f4699f498",
"feeRecipient" : "0xa258b39954cef5cb142fd567a46cddb31a670124",
"makerTokenAmount" : "1950100000000000",
//: Playground - noun: a place where people can play
import UIKit
@testable import Web3Swift
print(
try Keccak256Bytes(
origin: EthContractCreationBytes(
networkID: BigEndianCompactNumber(
hex: "0x2a"