Skip to content

Instantly share code, notes, and snippets.

View h0tk3y's full-sized avatar

Sergey Igushkin h0tk3y

View GitHub Profile
[Your Name]
[Your Address]
[City, State, Zip]
[Your Email]
[Your Phone Number]
[Date]
Hiring Manager’s Name
Recordati
[Company Address]
@h0tk3y
h0tk3y / restricted-dsl-apis.md
Last active December 1, 2023 14:51
restricted-dsl-apis.md

Supported APIs in settings.gradle.something:

  • Settings:
    • val rootProject: ProjectDescriptor
    • include(projectPath: String) (the vararg overload is not supported)
    • pluginManagement(pluginManagementSpec: PluginManagementSpec.() -> Unit)
      • (+ val pluginManagement)
    • dependencyResolutionManagement(dependencyResolutionConfiguration: DependencyResolutionManagement.() -> Unit)
      • (+ val dependencyResolutionManagement)
    • enableFeaturePreview(name: String)

[Your Name]

Professor and Laboratory Head

Tolyatti State University

[Address]

Tolyatti, Russia

ა - ани [ɑ]
ბ - бани [b]
გ - гани [ɡ]
დ - дони [d]
ე - эни [ɛ]
ვ - вини [v]
ზ - зени [z]
თ - тхани [tʰ]
ი - ини [ɪ]
კ - кани [kʼ]
04-14 00:17:29.116 30458 30458 E AndroidRuntime: FATAL EXCEPTION: main
04-14 00:17:29.116 30458 30458 E AndroidRuntime: Process: com.vk.equals, PID: 30458
04-14 00:17:29.116 30458 30458 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vk.equals/com.vk.equals.MainActivity}: android.view.InflateException: Binary XML file line #38 in com.vkontakte.android:layout/bottom_navigation_container: parent=LinearLayout:com.vkontakte.android:id/bottom_navigation_sliding_container, view=com.vkontakte.android.ui.bottomnavigation.BottomNavigationView:com.vkontakte.android:id/bottom_navigation
04-14 00:17:29.116 30458 30458 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4169)
04-14 00:17:29.116 30458 30458 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4315)
04-14 00:17:29.116 30458 30458 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
04-14
@h0tk3y
h0tk3y / PropertiesExtension.java
Last active March 2, 2023 11:15
Gradle instrumentation tool codegen example for properties
class PropertiesExtension implements AnnotatedMethodReaderExtension, CodeGeneratorContributor {
@Override
public InstrumentationCodeGenerator contributeCodeGenerator() {
return new CodeGeneratorContributor() {
@Override
public InstrumentationCodeGenerator contributeCodeGenerator() {
// look for the extra data in the requests – find the ones that need accessor
@h0tk3y
h0tk3y / #call-interception-codegen-example-outputs.md
Last active February 16, 2023 12:23
Call interception generated sources example

The two files below are example outputs of the code generator for call interception in gradle/gradle

org.gradle.api.InvalidUserCodeException: Invocation of 'Task.project' by task ':compileJava' at execution time is unsupported.
at org.gradle.configurationcache.initialization.DefaultConfigurationCacheProblemsListener.onTaskExecutionAccessProblem(ConfigurationCacheProblemsListener.kt:101)
at org.gradle.configurationcache.initialization.DefaultConfigurationCacheProblemsListener.onProjectAccess(ConfigurationCacheProblemsListener.kt:64)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.event.DefaultListenerManage
This file has been truncated, but you can view the full file.
Battery History (2% used, 83KB used of 4096KB, 517 strings using 65KB):
0 (19) RESET:TIME: 2022-12-07-01-14-31
0 (2) 100 status=discharging health=good plug=none temp=313 volt=4312 current=279 ap_temp=32 pa_temp=33 skin_temp=31 -wifi_ap -otg -high_speaker_volume txshare_event=0x0 online=1 current_event=0x40 misc_event=0x10000 charge=1670 modemRailChargemAh=0 wifiRailChargemAh=0 +running +wake_lock +wifi_radio +screen phone_signal_strength=great wifi_signal_strength=4 wifi_suppl=completed +ble_scan +cellular_high_tx_power fg=u0a321:"com.ttxapps.drivesync"
0 (2) 100 -cellular_high_tx_power fg=u0a9:"com.asksven.betterbatterystats"
0 (2) 100 fg=u0a438:"com.termux"
0 (2) 100 fg=u0a275:"com.digibites.accubattery"
0 (2) 100 fg=u0a290:"com.evozi.network"
0 (2) 100 fg=u0a289:"com.sec.android.app.shealth"
0 (2) 100 top=u0a453:"com.vitotechnology.StarWalk2"
adb logcat -c && adb logcat
--------- beginning of main
12-09 19:45:27.542 980 1189 D InputReader: Input event [EV_SW](12): code=0x15, value=1, when=10492.936289
12-09 19:45:27.542 980 1189 D InputReader: Could not open sw_reset sysfs
12-09 19:45:27.542 980 1189 D InputReader: verified(0->0), type(-1->-1), front(0->1), back(0->0), glove(0->0), penCover(0->0), pogo(0->0), notify(1)
12-09 19:45:27.542 980 1189 D InputReader: processSwitch() : elapsed time = 0ms, switchCode=0x15
12-09 19:45:27.542 575 1136 I Sensors : HallIC_Sensor cover status 0
12-09 19:45:27.542 980 1189 D SEP_UNION_SemUnionMainServiceImpl: notifyCoverSwitchStateChanged
12-09 19:45:27.542 980 1189 D SEP_UNION_SemPluginManagerService: notifyCoverSwitchStateChanged
12-09 19:45:27.542 980 1189 D SEP_UNION_CoverManager_CoverManagerServiceImpl: updateCoverSwitchState : switchState = false, isBoot = false