Skip to content

Instantly share code, notes, and snippets.

View trieulh-ict's full-sized avatar
🎯
Focusing

Tristan Le trieulh-ict

🎯
Focusing
  • Hà Nội - Việt Nam
View GitHub Profile
@trieulh-ict
trieulh-ict / Ext.kt
Created August 15, 2022 01:55
MutableStateFlow quick update extension
fun <T> MutableStateFlow<T>.update(onUpdated: ((T) -> Unit)? = null, transform: T.() -> T) {
val updatedState = updateAndGet { it.transform() }
onUpdated?.invoke(updatedState)
}
@trieulh-ict
trieulh-ict / rm_mysql.md
Created June 21, 2018 16:44 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql