Skip to content

Instantly share code, notes, and snippets.

View AmaranthLIS's full-sized avatar

Igor Lu AmaranthLIS

View GitHub Profile
@AmaranthLIS
AmaranthLIS / restart-ssh
Created October 18, 2021 13:47 — forked from influx6/restart-ssh.bash
Restart SSH on Mac Terminal (High Sierra)
sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd
@AmaranthLIS
AmaranthLIS / git-pushing-multiple.rst
Created December 1, 2020 20:37 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@AmaranthLIS
AmaranthLIS / ContactPhonesTest.kt
Created November 19, 2020 22:07 — forked from mustafo/ContactPhonesTest.kt
The right way to use one to many relationship in jdbi with kotlin
import org.jdbi.v3.core.kotlin.KotlinMapper
import org.jdbi.v3.core.mapper.RowMapperFactory
import org.junit.jupiter.api.Test
import tj.alif.core.app.db.RepositoryTest
import org.jdbi.v3.core.result.RowView
data class Contact (
val id: Int,
val name: String,