Skip to content

Instantly share code, notes, and snippets.

@badri
badri / vms.md
Last active June 22, 2022 07:18
Lab VMs access
local base64 = require "ngx.base64"
local httpc = require("resty.http").new()
local ngx_print = ngx.print
local base64_encode = base64.encode_base64url
local proxy_opts = {}
-- remove below 2 lines if not using proxy auth
local auth_header = "Basic " .. base64_encode("holosix:xN186VaYjrCGepJI")
proxy_opts.http_proxy_authorization = auth_header
local base64 = require "ngx.base64"
local httpc = require("resty.http").new()
local base64_encode = base64.encode_base64url
local proxy_opts = {}
local auth_header = "Basic " .. base64_encode("holosix:xN186VaYjrCGepJI")
proxy_opts.http_proxy_authorization = auth_header
proxy_opts.http_proxy = "http://squid.kong-dp.svc.cluster.local:3128"
local res, err = httpc:request_uri("http://httpbin.kong-dp.svc.cluster.local:8000/uuid", {
local base64 = require "ngx.base64"
local httpc = require("resty.http").new()
local base64_encode = base64.encode_base64url
local proxy_opts = {}
local auth_header = "Basic " .. base64_encode("holosix:xN186VaYjrCGepJI")
proxy_opts.http_proxy_authorization = auth_header
proxy_opts.http_proxy_authorization = auth_header
proxy_opts.http_proxy = "http://squid.kong-dp.svc.cluster.local:3128"
proxy_opts.http_proxy = "http://squid.kong-dp.svc.cluster.local:3128"
@badri
badri / buildpack.yml
Last active August 25, 2020 18:01
Drupal buildpack with npm and node engine
---
php:
version: 7.4.*
webserver: nginx
webdirectory: web
nodejs:
version: ~10
$ oc get nodes --show-labels
NAME STATUS ROLES AGE VERSION LABELS
console.plain-breeze-26d0.shapeblock.cloud Ready master 1h v1.11.0+d4cacc0 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/hostname=console.plain-breeze-26d0.shapeblock.cloud,node-role.kubernetes.io/master=true
infra.plain-breeze-26d0.shapeblock.cloud Ready infra 1h v1.11.0+d4cacc0 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/hostname=infra.plain-breeze-26d0.shapeblock.cloud,node-role.kubernetes.io/infra=true
node-01.plain-breeze-26d0.shapeblock.cloud Ready compute 1h v1.11.0+d4cacc0 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/hostname=node-01.plain-breeze-26d0.shapeblock.cloud,node-role.kubernetes.io/compute=true
$ oc get pods -n openebs
NAME READY STATUS RESTARTS AGE
maya-apiser
diff --git a/.gitignore b/.gitignore
index f2fb0bf..854dfd6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ Thumbs.db
/glazed_builder/glazed_frontend.min.js
/glazed_builder/glazed_param_types.js
/glazed_builder/glazed_param_types.min.js
+*~
diff --git a/src/Controller/AjaxController.php b/src/Controller/AjaxController.php
oc describe pod mariadb-1-wjgcz
Name: mariadb-1-wjgcz
Namespace: testing
Priority: 0
PriorityClassName: <none>
Node: node-03/207.154.234.114
Start Time: Mon, 29 Apr 2019 02:26:00 +0000
Labels: deployment=mariadb-1
deploymentconfig=mariadb
name=mariadb
TASK [openshift_node : Copy node container image to ostree storage] ******************************************************************************
Tuesday 23 April 2019 20:35:02 +0000 (0:00:10.160) 0:08:04.493 *********
FAILED - RETRYING: Copy node container image to ostree storage (3 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (3 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (2 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (3 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (2 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (1 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (1 retries left).
FAILED - RETRYING: Copy node container image to ostree storage (2 retries left).
PLAY [Fail openshift_kubelet_name_override for new hosts] ****************************************************************************************
TASK [Fail when openshift_kubelet_name_override is defined] **************************************************************************************
Tuesday 23 April 2019 14:44:48 -0400 (0:00:00.067) 0:00:00.067 *********
skipping: [console.demo-1.shapeblock.cloud]
skipping: [node-01.demo-1.shapeblock.cloud]
skipping: [node-02.demo-1.shapeblock.cloud]
PLAY [Initialization Checkpoint Start] ***********************************************************************************************************