Skip to content

Instantly share code, notes, and snippets.

View bhimsur's full-sized avatar
🌐
Working from dimana saja

bhimsur dimana saja bhimsur

🌐
Working from dimana saja
View GitHub Profile
@bhimsur
bhimsur / ArgoCD.md
Last active October 1, 2024 10:50
Installing ArgoCD on Minikube

Installing ArgoCD

  1. We will start with launching minikube cluster.
minikube start --driver=docker
  1. Create a namespace for argocd
kubectl create namespace argocd
  1. Apply ArgoCD manifest installation file from ArgoCD github repository
#!/bin/bash
cd $1
tag_repo() {
git tag -a "$1" -m "$2"
}
push_tag() {
git ls-remote -q --exit-code $1
if [[ $? == 0 ]]; then
{
"createdAt":"2022-08-21 05:32:43"
}
{
"createdAt":1661077840811
}
public MyJsonResponse {
@MyCustomDate
private Date createdAt;
}
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.annotation.JsonFormat;
@JacksonAnnotationsInside
@Retention(RetentionPolicy.RUNTIME)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
public @interface MyCustomDate {}
const data = { username: 'example' };
fetch('https://example.com/profile', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(data),
})
.then(response => response.json())
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));