https://fonts.google.com/?selection.family=Open+Sans
cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip
| Class Hasher { | |
| fun hash(): String { | |
| val bytes = this.toString().toByteArray() | |
| val md = MessageDigest.getInstance("SHA-256") | |
| val digest = md.digest(bytes) | |
| return digest.fold("", { str, it -> str + "%02x".format(it) }) | |
| } | |
| } |
| fun value(str: String): Int { | |
| println(str) | |
| return 0 | |
| } | |
| fun test(str: String) { | |
| println("【Executed Test: $str】") | |
| } | |
| class Test1 { |
| import androidx.compose.animation.core.* | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.material.MaterialTheme | |
| import androidx.compose.material.Text | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.getValue | |
| import androidx.compose.ui.Alignment | |
| import androidx.compose.ui.Modifier |
| import androidx.compose.animation.core.* | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.material.MaterialTheme | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.LaunchedEffect | |
| import androidx.compose.runtime.remember | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.graphics.Color |
| 1. Download Git Bash (only if on Windows) | |
| 2. Go to your users folder and open the .ssh folder. Then open Git Bash / Terminal there and generate a key pair: | |
| ssh-keygen -m PEM -t rsa | |
| 3. Copy the key to your server: | |
| ssh-copy-id -i <keyname> <user>@<host> | |
| 5. Login to your Ubuntu server via SSH: | |
| ssh -i <keyname> <user>@<host> |
| package pro.respawn.app.feature.account.thirdparty | |
| import androidx.compose.runtime.Composable | |
| import co.touchlab.kermit.Logger | |
| import kotlinx.cinterop.ExperimentalForeignApi | |
| import kotlinx.cinterop.cstr | |
| import kotlinx.cinterop.memScoped | |
| import kotlinx.cinterop.reinterpret | |
| import kotlinx.coroutines.CancellationException | |
| import kotlinx.coroutines.suspendCancellableCoroutine |
| deploy: | |
| docker compose down -v && docker compose up -d |