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
$dotnet new console | |
$dotnet add package Microsoft.SemanticKernel | |
$dotnet add package Microsoft.Extensions.Logging | |
$dotnet add package Microsoft.Extensions.Logging.Console | |
$dotnet format hello.csproj |
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
// 1. Install | |
$pip install aider-chat | |
// 2. Config LLM provider เช่น OpenAI | |
$export OPENAI_API_KEY=<you api key> | |
// 3. Start aider | |
$aider | |
No git repo found, create one to track GPT's changes (recommended)? y |
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
// Install on Mac | |
$brew install ingress2gateway | |
// Test | |
$ingress2gateway | |
Convert Ingress manifests to Gateway API manifests | |
Usage: | |
ingress2gateway [command] |
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
user nginx; | |
worker_processes auto; | |
error_log /dev/stderr warn; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 100000; | |
events { | |
worker_connections 102400; |
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
patrolWidgetTest('signs up', (PatrolTester $) async { | |
await $.pumpWidgetAndSettle(AwesomeApp()); | |
await $(#emailTextField).enterText('[email protected]'); | |
await $(#nameTextField).enterText('Charlie'); | |
await $(#passwordTextField).enterText('ny4ncat'); | |
await $(#termsCheckbox).tap(); | |
await $(#signUpButton).tap(); | |
await $('Welcome, Charlie!').waitUntilVisible(); |
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
$bun -v | |
1.1.25 | |
$bun init | |
$bun run index.ts | |
Worker 387 started | |
Worker 386 started | |
Worker 389 started | |
Worker 392 started | |
Worker 395 started |
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
$hey -n 50 -c 50 -m GET http://localhost:8000/topic/1/comments | |
Summary: | |
Total: 20.0044 secs | |
Slowest: 0.0000 secs | |
Fastest: 0.0000 secs | |
Average: NaN secs | |
Requests/sec: 2.4994 | |
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
from airflow.datasets import DatasetAlias | |
@task(outlets=[DatasetAlias("my-task-outputs")]) | |
def my_task_with_outlet_events(*, outlet_events): | |
outlet_events["my-task-outputs"].add(Dataset("s3://bucket/my-task")) |
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
/** | |
* @type {import("puppeteer").Configuration} | |
*/ | |
module.exports = { | |
// Download Chrome (default `skipDownload: false`). | |
chrome: { | |
skipDownload: false, | |
}, | |
// Download Firefox (default `skipDownload: true`). | |
firefox: { |
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
$curl -LO https://dependencytrack.org/docker-compose.yml | |
$docker-compose up -d | |
$docker-compose logs --follow | |
2024-08-16 18:41:21 dtrack-apiserver-1 | 2024-08-16 11:41:21,462 INFO [NistMirrorTask] Initiating download of https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-2016.meta | |
2024-08-16 18:41:22 dtrack-apiserver-1 | 2024-08-16 11:41:22,310 INFO [NistMirrorTask] Downloading... | |
2024-08-16 18:41:22 dtrack-apiserver-1 | 2024-08-16 11:41:22,310 INFO [NistMirrorTask] Initiating download of https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-2015.json.gz | |
2024-08-16 18:41:22 dtrack-apiserver-1 | 2024-08-16 11:41:22,996 INFO [NistMirrorTask] Downloading... |