Skip to content

Instantly share code, notes, and snippets.

📊 LANGSMITH.md

Overview

LangSmith (by LangChain) and LangFuse are powerful observability and analytics tools for LLM workflows. You can use them to track, analyze, and improve model performance — and even synthesize better training data using real user interactions.

This guide covers:

  • How to connect LangSmith or LangFuse
  • How to log successful Q&A pairs
  • How to use logged data for fine-tuning or RAG
  • Sample integration script
Writing an essay is like building a house—you need a solid foundation, a clear structure, and some style to make it your own. Here’s a simple step-by-step guide to help you write a good one:
1. Understand the Assignment
What kind of essay is it? (Argumentative, descriptive, narrative, expository?)
What’s the topic or question?
Are there specific guidelines (length, format, sources)?
2. Choose a Clear Topic
@rjchicago
rjchicago / check_ssl_expiry.sh
Created April 22, 2025 15:30
Check the SSL expiration for a given site using openssl..
check_ssl_expiry() {
local SERVER="$1"
if [[ -z "$SERVER" ]]; then
echo "Usage: check_ssl_expiry <server>"
return 1
fi
local EXPIRY_DATE
EXPIRY_DATE=$(echo | openssl s_client -servername "$SERVER" -connect "$SERVER:443" 2>/dev/null \
| openssl x509 -noout -enddate \
@Tofel
Tofel / config.json444060327
Created April 22, 2025 15:30
Workflow configuration
{"feed_id":"0x018e16c39e0003200000000000000000","url":"","consumer_address":"0x9A9f2CCfdE556A7E9Ff0848998Aa4a0CFD8863AE","write_target_name":"write_geth-testnet@1.0.0","balance_reader_address":"0x68B1D87F95878fE05B998F19b66F4baba5De1aed","read_target_name":"read-contract-evm-1337@1.0.0","funded_address":"0x6b37EB5F4AA570eA72e6aDBCd73E9D011D12b92d","expected_fund_amount":"42"}
@Tofel
Tofel / binary.wasm.br.b64
Created April 22, 2025 15:30
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
@boegelbot
boegelbot / easybuild_test_report_22773_easybuilders_preasybuild-easyconfigs_20253022-UTC-15-30-00.md
Created April 22, 2025 15:30
EasyBuild test report for easybuilders/easybuild-easyconfigs PR(s) #22773
@boegelbot
boegelbot / AFNI-25.1.01-foss-2024a_partial.log
Created April 22, 2025 15:30
(partial) EasyBuild log for failed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TEzL
@choco-bot
choco-bot / FilesSnapshot.xml
Created April 22, 2025 15:29
pcw-tutor v6.0.0 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\pcw-tutor\pcw-tutor.nupkg" checksum="48685ABAF5941CE7906EA4C6F0680706" />
<file path="C:\ProgramData\chocolatey\lib\pcw-tutor\pcw-tutor.nuspec" checksum="0E1EA18E65278F4489BF7A260DA011C2" />
<file path="C:\ProgramData\chocolatey\lib\pcw-tutor\tools\chocolateyinstall.ahk" checksum="70E5E1C137F438AC81271B4C390358BD" />
<file path="C:\ProgramData\chocolatey\lib\pcw-tutor\tools\chocolateyinstall.ps1" checksum="719C78BED9ED455D05337AA2B2E5E525" />
<file path="C:\ProgramData\chocolatey\lib\pcw-tutor\tools\chocolateyuninstall.ahk" checksum="EC9891AF5430429FA44E9701FEE7CCEA" />
<file path="C:\ProgramData\chocolatey\lib\pcw-tutor\tools\chocolateyuninstall.ps1" checksum="1DF303D712B7554F1AC61FE2E89E1B3B" />
</files>
import sys
import pygame
from collections import deque
from heapq import heappush, heappop
import random
# Initialiser Pygame
pygame.init()
# Définir les dimensions de la fenêtre
@0xHamy
0xHamy / cyber_threat_intel_course.md
Created April 22, 2025 15:29
A structure for an upcoming threat hunting course by Cyber Mounties Canada and 0xHamy (Hamed Kohi).

Course Title: Threat Hunting Bootcamp - From Forums to Frontlines

Subtitle: Build a Cyber Threat Intelligence Pipeline with Scraping, AI, and Real-Time Alerts
Target Audience: Intermediate learners with basic coding (Python preferred) and curiosity about cybersecurity (and a lot of other things not listed) Prereqs: Python basics, willingness to get Exercise
Duration: 80 hours Languages: English | French | Spanish | German | Portuguese
Format: Text & images Cost: Free

This course will be on cyber threat intelligence by scraping data from a simulated hacking forum.