Skip to content

Instantly share code, notes, and snippets.

View jefisu's full-sized avatar

Jeferson Coutinho jefisu

  • Guarulhos
View GitHub Profile
@lightonphiri
lightonphiri / bash-install_google_fonts_on_ubuntu.md
Last active May 10, 2026 22:56
Install Google Fonts on Ubuntu

Install Google Fonts

Download desired fonts

https://fonts.google.com/?selection.family=Open+Sans

Install Google Fonts on Ubuntu

cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip

@mfd
mfd / 06.png
Last active June 8, 2026 19:26
Gilroy font
06.png
@lovubuntu
lovubuntu / Sha256.kt
Created November 24, 2017 15:58
function to generate Sha-256 in Kotlin
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) })
}
}
@lusingander
lusingander / test.kt
Last active July 1, 2025 19:37
Kotlin + JUnit5 + Nested classes
fun value(str: String): Int {
println(str)
return 0
}
fun test(str: String) {
println("【Executed Test: $str】")
}
class Test1 {
@EugeneTheDev
EugeneTheDev / DotsLoaders.kt
Created March 18, 2021 23:15
Dots loading animations with Jetpack Compose
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
@stevdza-san
stevdza-san / LoadingAnimation.kt
Last active February 22, 2026 11:45
Loading Animation with Jetpack Compose
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>
@rodrigomartind
rodrigomartind / ImageVectorAnimationStepByStep.MD
Last active January 30, 2023 01:50
Animating ImageVector in JetpackCompose

Step by step of ImageVector animation in Jetpack Compose

Step 1

screen-recording-1671473917341.mp4

Step 1

screen-recording-1671473945880.mp4

Step 3

screen-recording-1671473974142.mp4
@Nek-12
Nek-12 / AppleCredentialLauncher.native.kt
Last active June 9, 2025 22:54
How to implement Apple Sign in in Kotlin Multiplatform
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
@maykbrito
maykbrito / Makefile
Created April 23, 2025 23:36
n8n-docker-youtube
deploy:
docker compose down -v && docker compose up -d