dlv errors out
$ ~/go/bin/dlv debug ./fdbgrok
could not launch process: stub exited while waiting for connection: exit status 0
go env
https://makandracards.com/makandra/1402-vim-scroll-up-down-keeping-your-cursor-in-its-row
C+E : scroll-up.
C+Y : scroll-down.
C+U : Move viewport Up.
C+D : Move viewport Down.
zz, z. : middle
# useful key shortcuts in bash readline or zle | |
"^X^V" vi-cmd-mode | |
"^X^U" undo | |
"^X^B" vi-match-bracket | |
"^X^E" edit-command-line | |
"^X^F" vi-find-next-char | |
"^X^J" vi-join | |
"^X^K" kill-buffer | |
"^@" set-mark-command | |
"^X^X" exchange-point-and-mark |
#Static Builds | |
## Creata disk | |
qemu-img create -f qcow2 server1.img 10G | |
## Install the OS onto the disk | |
qemu-system-x86_64 -M accel=hvf --cpu host -hda server1.img -cdrom ubuntu-18.04.2-live-server-amd64.iso -boot d -m 2048 | |
## Boot the server | |
qemu-system-x86_64 -M accel=hvf --cpu host server1.img -m 2048 |
#!/usr/bin/env python | |
import dask.bag as db | |
import json | |
from boto3.dynamodb.types import TypeDeserializer | |
def load_json(data): | |
doc = json.loads(data) | |
items = doc['Items'] | |
d = TypeDeserializer() |
#!/bin/bash | |
// 2>/dev/null; OPTS="-cp $(cat cp.txt)" | |
// 2>/dev/null; exec groovy $OPTS "$0" "$@"; exit $? | |
import software.amazon.awssdk.regions.Region; | |
import software.amazon.awssdk.services.s3.*; | |
import software.amazon.awssdk.services.s3.model.*; | |
((ch.qos.logback.classic.Logger) org.slf4j.LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME)).setLevel(ch.qos.logback.classic.Level.WARN) |
# see - https://stackoverflow.com/questions/36938064/how-do-i-debug-resttemplate-using-logback-in-spring-boot | |
logging.level.reactor.ipc.netty.channel.ContextHandler=debug | |
logging.level.reactor.ipc.netty.http.client.HttpClient=debug |
Install 3scale self managed API gateway (openresty) in Mac OS-X
brew update
brew install pcre openssl
wget http://openresty.org/download/ngx_openresty-1.9.7.2.tar.gz
tar xzvf ngx_openresty-1.9.7.2.tar.gz
cd ngx_openresty-1.9.7.2
NOTES:
To connect from outside the K8s cluster:
HOST=$(kubectl get nodes --namespace default -o jsonpath='{.items[0].status.addresses[0].address}')
PORT=$(kubectl get svc --namespace default api-kong-admin -o jsonpath='{.spec.ports[0].nodePort}')