A quick how-to create and access secrets using the 1Password CLI:
brew install 1password-cliop vault create CLI| #!/bin/bash | |
| # Macro for finding the size of a container from any container registry,EG: mcr, gcp, or docker | |
| # Example use: | |
| # dockersize docker pull mcr.microsoft.com/devcontainers/universal:3 | |
| # linux/amd64 140.70M | |
| # linux/arm/v6 131.74M | |
| # linux/arm/v7 129.97M | |
| # linux/arm64/v8 132.15M |
| #!/bin/bash | |
| # 1. To run this script curl it locally: | |
| # curl https://gist.github.com/dtaivpp/c587d99a2cab441eba0314534ae87c86/raw -o opensearch-compose-bootstrap.sh | |
| # 2. Change it to be executable: | |
| # chmod +x opensearch-compose-generate.sh | |
| # 3. Run it: | |
| # ./opensearch-compose-generate.sh | |
| # | |
| # This will create: | |
| # - docker-compose.yml file for OpenSearch |
| services: | |
| opensearch: | |
| image: opensearchproject/opensearch:${OPENSEARCH_VERSION:-2.11.1} | |
| container_name: opensearch | |
| environment: | |
| discovery.type: single-node | |
| node.name: opensearch | |
| OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m" | |
| volumes: | |
| - opensearch-data:/usr/share/opensearch/data |
| # Download this file with: | |
| # curl -L https://gist.github.com/dtaivpp/a9b00957aa7d9cfe33e92aff8d50c835/raw/logging_demo.py -o logging_demo.py | |
| import logging | |
| # | |
| # Named loggers | |
| # | |
| logger = logging.getLogger(__name__) | |
| print(logger.name) |
| version = 2 | |
| [plugins] | |
| [plugins."io.containerd.grpc.v1.cri"] | |
| [plugins."io.containerd.grpc.v1.cri".containerd] | |
| default_runtime_name = "nvidia" | |
| [plugins."io.containerd.grpc.v1.cri".containerd.runtimes] | |
| [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia] | |
| privileged_without_host_devices = false | |
| runtime_engine = "" |
| usage: ghdorker [-h] [-v] [-s {repo,user,org}] [-d DORKS] [--debug] [-o OUTPUT_FILENAME] [--options INPUT_OPTION [INPUT_OPTION ...]] search | |
| Search github for github dorks | |
| positional arguments: | |
| search The repo, username, or organization you would like to search | |
| optional arguments: | |
| -h, --help show this help message and exit | |
| -v, --version show program's version number and exit |