This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tools": [ | |
{ | |
"type": "function", | |
"function": { | |
"name": "codebase_search", | |
"description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.", | |
"parameters": { | |
"type": "object", | |
"properties": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# An alternative to "links", run this script after starting or stopping any | |
# container. It's a hack to update the host machine (vagrant) /etc/hosts with | |
# the current active docker containers and tell dnsmasq to refresh. | |
# | |
# Then start each machine with "-dns ${DOCKER_HOST_IP}", e.g. | |
# $ docker run -d -name mycontainer1 -dns 10.0.3.1 MYPRODUCT | |
# You can't seem to set the DNS during "docker build". | |
# | |
# Diagnostic command to run in host or while logged into containers: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* I have only tested this on Chrome but it | |
prints nicely to A4 size */ | |
@media print { | |
body { | |
width: 210mm; | |
height: 297mm; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> | |
<title>capture microphone audio into buffer</title> | |
</head> | |
<body> | |
<audio id="player" controls></audio> | |
<input | |
type="text" | |
id="username" |