Skip to content

Instantly share code, notes, and snippets.

@jborralho
jborralho / export-kubeconfig-from-aks
Created August 17, 2021 17:00 — forked from dcasati/export-kubeconfig-from-aks
Export KUBECONFIG from AKS
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss
@jborralho
jborralho / publish.cs
Created May 16, 2017 09:45
publish order
pubnub.Publish()
.Message($"{{\"OrderId\":\"{this.tbOrderID1.Text}\",\"Source\":{this.nupSource.Value},\"Body\":\"{this.tbBody.Text}\"}}")
.Channel($"{this.tbRestaurantID.Text}.NewPrintJob")
.Async(new PNPublishResultExt(
(result, status) =>
{
// Check whether request successfully completed or not.
if (status.Error)
{
@jborralho
jborralho / asdf.java
Created October 14, 2015 14:54
Wait a minute
if (result.getCode().equals("10")) {
log.info("Hammer Time! Sleeping one minute, waiting for the request to be processed by external entity");
Thread.sleep(60000);
}