As configured in my dotfiles.
start new:
tmux
start new with session name:
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "github.com/mitchellh/go-homedir" | |
| "k8s.io/client-go/tools/clientcmd" | |
| ) |
| package main | |
| import ( | |
| "crypto/rand" | |
| "encoding/binary" | |
| "fmt" | |
| "github.com/coreos/go-oidc" | |
| "golang.org/x/oauth2" | |
| ) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| import java.math.BigDecimal; | |
| import java.math.RoundingMode; | |
| public class Main { | |
| public static void main(String... args) { | |
| int row = 322, position = 156; | |
| PyramidPressure pyramidPressure = new PyramidPressure(); | |
| BigDecimal value = pyramidPressure.getPressure(row, position); | |
| System.out.println("Result = " + value); |
| 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, |
| package example.micronaut; | |
| //tag::imports[] | |
| import io.micronaut.http.HttpResponse; | |
| import io.micronaut.http.MediaType; | |
| import io.micronaut.http.annotation.Consumes; | |
| import io.micronaut.http.annotation.Controller; | |
| import io.micronaut.http.annotation.Get; | |
| import io.micronaut.http.annotation.Post; | |
| import io.micronaut.http.multipart.CompletedFileUpload; |
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
| sudo launchctl stop com.openssh.sshd | |
| sudo launchctl start com.openssh.sshd |
Из статьи You're not actually building microservices
Итак, вы создаете микросервисы?
Взгляните на некоторые из этих симптомов и проставьте галочки, где вы согласны: