python3 -m json.tool
awk '{printf "%s\n", $0}' <./license.txt
| #!/usr/bin/env python3 | |
| import sys | |
| import iterm2 | |
| async def main(connection): | |
| w = await iterm2.Window.async_create(connection) | |
| await w.async_activate() # Not sufficient to always raise the window |
| #!/usr/bin/env python3 | |
| import sys | |
| import iterm2 | |
| async def main(connection): | |
| w = await iterm2.Window.async_create(connection) | |
| await w.async_activate() # Not sufficient to always raise the window |
| #!/usr/bin/env python3 | |
| import json | |
| import iterm2 | |
| async def get_most_profiles(c): | |
| all = await iterm2.PartialProfile.async_query(c) | |
| return [p for p in all if p.all_properties["Name"] != "Hotkey Window"] |
| apiVersion: app.redislabs.com/v1 | |
| kind: RedisEnterpriseCluster | |
| metadata: | |
| name: rec1 | |
| spec: | |
| nodes: 3 | |
| uiServiceType: LoadBalancer # No tunneling to the UI needed | |
| redisEnterpriseNodeResources: | |
| limits: | |
| cpu: 4 # Assumes at least 6 cores/node |
export C_INCLUDE_PATH=/opt/homebrew/Cellar/librdkafka/1.8.2/include export LIBRARY_PATH=/opt/homebrew/Cellar/librdkafka/1.8.2/lib
DOCKER_BUILDKIT=0 docker build . BUILDKIT_PROGRESS=plain docker build .
EXPOSE vs ports
CMD and ENTRYPOINT
docker run -it --name=myubuntu ubuntu:latest bash
curl -u demo@redislabs.com:123456 -k https://localhost:9443/v1/bootstrap
curl -u demo@redislabs.com:123456 -k https://localhost:9443/v1/nodes
curl -sk -u demo@redislabs.com:f2ka3s7c https://localhost:9443/v1/modules | python -m json.tool
curl -sk -u demo@redislabs.com:f2ka3s7c https://localhost:9443/v1/bdbs/3 | python -m json.tool
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: redis-bank | |
| labels: | |
| app: redis-bank | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: |
| ## See https://github.com/RedisLabs/redis-enterprise-k8s-docs#installation-on-openshift | |
| oc new-project my-project | |
| oc apply -f openshift/scc.yaml | |
| oc adm policy add-scc-to-group redis-enterprise-scc system:serviceaccounts:my-project | |
| oc apply -f openshift.bundle.yaml | |
| oc apply -f openshift/rec_rhel.yaml |