Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:
- CA certificate
- Server certificate
- Server key
- Client certificate
- Client key
| from contextlib import redirect_stdout | |
| import pandas as pd | |
| from langchain.chains import LLMChain | |
| from langchain.chat_models import ChatOpenAI | |
| from io import StringIO | |
| from langchain import PromptTemplate | |
| prompt_template = """ | |
| This is the head of the dataframe df {df_head}. | |
| This is the list of df column names {df_columns}. | 
| """This is an example of how to use async langchain with fastapi and return a streaming response. | |
| The latest version of Langchain has improved its compatibility with asynchronous FastAPI, | |
| making it easier to implement streaming functionality in your applications. | |
| """ | |
| import asyncio | |
| import os | |
| from typing import AsyncIterable, Awaitable | |
| import uvicorn | |
| from dotenv import load_dotenv | 
| export const chaosTestStrings = (): void => { | |
| const textNodes = getAllTextNodes(document.body); | |
| for (const node of textNodes) { | |
| const textNodeLength = node.textContent ? node.textContent.length : 0; | |
| if (node.textContent === null) { | |
| return; | |
| } | |
| if (node.parentElement instanceof Element) { | |
| if (node.parentElement.dataset.originalText === undefined) { | 
| -- Token Based API Access for Supabase | |
| -- | |
| -- How to configure Supabase (https://supabase.com/) to generate and accept API tokens. | |
| -- | |
| -- (c) 2022 Felix Zedén Yverås | |
| -- Provided under the MIT license (https://spdx.org/licenses/MIT.html) | |
| -- | |
| -- Disclaimer: This file is formatted using pg_format. I'm not happy with the result but | |
| -- prefer to follow a tool over going by personal taste. | |
| -- | 
| import requests | |
| import re | |
| class Twitter: | |
| def __init__(self): | |
| self.s = requests.Session() | |
| self.get_tokens() | |
| def get_tokens(self): | 
| ' terminator.vbs | |
| myCd = "~" | |
| If WScript.Arguments.Length > 0 Then | |
| myCd = "'$(wslpath -u '" & WScript.Arguments(0) & "')'" | |
| End If | |
| args = "bash" & " -c ""cd " & myCd & "; DISPLAY=:0 terminator""" | |
| WScript.CreateObject("Shell.Application").ShellExecute "C:\Windows\System32\wsl.exe", args, "", "open", 0 | 
| func createTable(svc *dynamodb.DynamoDB, tableName string) error { | |
| params := &dynamodb.CreateTableInput{ | |
| AttributeDefinitions: []*dynamodb.AttributeDefinition{ // Required | |
| { // Required | |
| AttributeName: aws.String("Key"), // Required | |
| AttributeType: aws.String("S"), // Required | |
| }, | |
| { // Required | |
| AttributeName: aws.String("SortKey"), // Required | |
| AttributeType: aws.String("S"), // Required | 
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| fzf-down() { | |
| fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
| } |