Skip to content

Instantly share code, notes, and snippets.

View jlojosnegros's full-sized avatar

Jose Luis Ojosnegros jlojosnegros

View GitHub Profile
@jlojosnegros
jlojosnegros / main.md
Last active September 13, 2022 08:45
Swtiching contexts with Git

Switching Development Contexts with Git

Context

On my daily work I have to switch context while in the middle of a modification many times, or I just have to work on two different versions in parallel. Working with git there are many ways to save your work and come back later, but I have found all of them too cumbersome in the process to resume work.

I do not need this, I already have stash to save my work

@jlojosnegros
jlojosnegros / printJson.go
Created February 28, 2022 11:30
Print K8s Object as JSON
func printJson(tag string, elem interface{}) error {
jobj, err := json.MarshalIndent(elem, "", " ")
if err != nil {
return err
}
fmt.Printf("\n%s:\n%s\n", tag, string(jobj))
return nil
}
package dummy;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.sync.RedisCommands;
import io.micronaut.context.ApplicationContext;
import io.micronaut.http.client.HttpClient;
import io.micronaut.runtime.server.EmbeddedServer;
import io.micronaut.validation.Validated;
import lombok.Builder;