Skip to content

Instantly share code, notes, and snippets.

View donald95's full-sized avatar

Donald José Munguía Guadamuz donald95

View GitHub Profile
"""
Connexion to SQL Server 2019
"""
import sys
import json
import pyodbc
from rapidfuzz import distance
@donald95
donald95 / ProcessController.php
Last active November 9, 2024 00:22
Execute command using Process class in Laravel and Symfony
<?php
public function processMatchSearch(Request $request): JsonResponse
{
$command = 'python3';
$scriptPath = base_path() . '/scripts/research_matching_script.py';
$parameterOne = $request->input('title');
$parameterTwo = Auth::id();
$process = new Process([