Skip to content

Instantly share code, notes, and snippets.

View miredirex's full-sized avatar
🍳

Daniil miredirex

🍳
  • Russia
  • 05:53 (UTC +03:00)
View GitHub Profile
@miredirex
miredirex / AndroidFpsCounter.kt
Last active November 11, 2025 07:38
Android Compose FPS counter with frame rate graph
package com.fps
import android.view.Choreographer
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontStyle
import kotlin.math.roundToInt
private const val UPDATE_FPS_EVERY_MS = 60
@miredirex
miredirex / UNITY_SMART_MERGE.md
Created September 1, 2023 22:53
Unity's Smart Merge tool with Git for collaborative development

 Configure Unity's Smart Merge tool with Git for collaborative development

...without hardcoding the Editor path anywhere
Windows only

1. Create .gitconfig file in the root of your project's directory

touch .gitconfig

2. About the .gitconfig file

@miredirex
miredirex / IJKL.ahk
Last active August 18, 2023 09:16
AutoHotkey Alt+IJKL as arrows... and more!
#Requires AutoHotkey v2.0
; Optimizations
ProcessSetPriority "High"
ListLines 0
SetDefaultMouseSpeed 0
SetControlDelay 0
SetKeyDelay 0
SetMouseDelay 0
!i::Up
@miredirex
miredirex / check_pass.sh
Last active August 18, 2023 08:24
Safely check if your passwords have been leaked (via haveibeenpwned)
#!/bin/sh
read -p 'Password: ' password
hash=`echo -n $password | sha1sum | awk '{ print $1 }'`
echo
echo SHA1 hash: $hash
prefix=${hash:0:5}