Skip to content

Instantly share code, notes, and snippets.

View florinel-chis's full-sized avatar

Florinel Chis florinel-chis

  • Magendoo
  • Bucharest, Romania
View GitHub Profile
@florinel-chis
florinel-chis / peer-feedback.html
Created September 13, 2023 15:14
Team Member Evaluation - aimed at Software Engineers and DevOps Engineers. It is a tool to help you evaluate your team members and provide them with feedback. It is not meant to be a replacement for regular 1:1s and other feedback mechanisms. It is meant to be used as a starting point for a conversation.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Team Member Evaluation</title>
<style>
body {
padding: 10%;
<?php
use Magento\Framework\App\Bootstrap;
// Initialize Magento
require __DIR__ . '/app/bootstrap.php';
$bootstrap = Bootstrap::create(BP, $_SERVER);
$objectManager = $bootstrap->getObjectManager();
// Get resource connection
$resource = $objectManager->get(\Magento\Framework\App\ResourceConnection::class);
<?php
use Magento\Framework\App\Bootstrap;
// Validate input parameters
if ($argc < 3) {
die("Usage: php remove_attributes.php <attribute_set_id> <attribute_code1> [attribute_code2] ...\n");
}
$attributeSetId = (int)$argv[1];
$attributeCodes = array_slice($argv, 2);
@florinel-chis
florinel-chis / llama-compile.sh
Last active February 10, 2025 14:27
llama compile on cpu
sudo apt install libcurl4-openssl-dev
mkdir build
cd build/
CXX=g++-10 cmake -DLLAMA_NATIVE=OFF -DLLAMA_AVX=OFF -DLLAMA_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DLLAMA_ACCELERATE=OFF -DLLAMA_METAL=OFF -DLLAMA_CUBLAS=OFF -DLLAMA_CURL=ON ..
make -j4