Skip to content

Instantly share code, notes, and snippets.

View bl33d1's full-sized avatar
🎯
Focusing

bb bl33d1

🎯
Focusing
View GitHub Profile
@bl33d1
bl33d1 / gist:8dcac58e83a018230833751dc8af10fe
Created August 19, 2025 13:14
Stop frappe instance bash code/file
#!/bin/bash
# Save the script: Save the code above into a file named bench-stop.sh in your Frappe bench directory.
# Make it executable: Open your terminal, navigate to your bench directory, and run the command chmod +x bench-stop.sh.
# Run the script: Whenever you need to stop the bench processes, simply execute the script from your bench directory by running ./bench-stop.sh
# Stop all processes started by "bench start"
// To run this code you need to install the following dependencies:
// npm install @google/genai mime
// npm install -D @types/node
import express from 'express';
import {
GoogleGenAI,
} from '@google/genai';
const app = express();
app.use(express.json());