Skip to content

Instantly share code, notes, and snippets.

View ovitrif's full-sized avatar
🎩
₿e honourable

Ovi Trif ovitrif

🎩
₿e honourable
View GitHub Profile
@ovitrif
ovitrif / local-electrum.patch
Created March 5, 2026 18:27
Local Electrum patch for PR #825 testing
diff --git a/app/src/main/java/to/bitkit/env/Env.kt b/app/src/main/java/to/bitkit/env/Env.kt
index 319a4051a..822088515 100644
--- a/app/src/main/java/to/bitkit/env/Env.kt
+++ b/app/src/main/java/to/bitkit/env/Env.kt
@@ -52,7 +52,7 @@ internal object Env {
val electrumServerUrl: String
get() {
- val isE2eLocal = isE2eTest && e2eBackend == "local"
+ val isE2eLocal = true // isE2eTest && e2eBackend == "local"
enum class Sport { HIKE, RUN, TOURING_BICYCLE, E_TOURING_BICYCLE }
data class Summary(val sport: Sport, val distance: Int)
fun main() {
val sportStats = listOf(
Summary(Sport.HIKE, 92),
Summary(Sport.RUN, 77),
Summary(Sport.TOURING_BICYCLE, 322),
Summary(Sport.E_TOURING_BICYCLE, 656)
@ovitrif
ovitrif / get-latest-tag-on-git.sh
Created January 22, 2018 09:39 — forked from rponte/get-latest-tag-on-git.sh
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples