Skip to content

Instantly share code, notes, and snippets.

View colombinis's full-sized avatar

Sebastian A. Colombini colombinis

View GitHub Profile
@colombinis
colombinis / 4.1.chatmode.md
Created July 1, 2025 23:06 — forked from burkeholland/4.1.chatmode.md
4.1 Beast Mode v2
description
4.1 Beast Mode

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

https://getcomposer.org/
https://phpstan.org/
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
https://github.com/rectorphp/rector
https://pestphp.com/ / https://phpunit.de/index.html
@colombinis
colombinis / prd.md
Created April 13, 2025 15:15 — forked from burkeholland/prd.md
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
@colombinis
colombinis / answer1
Created September 21, 2022 22:12
PHP Test
class Producto{
const OUT_STOCK = "Out of Stock";
protected $quantity;
function __construct($quantity=10)
{
$this->quantity = $quantity;
}
function iDecreaseQuantity()
@colombinis
colombinis / magento-2-layout-handless
Created September 8, 2020 23:33
magento 2 get all layout for specific page
<?php
echo var_dump($this->getLayout()->getUpdate()->getHandles());
die();
?>
ej colocarlo en un .phtml que se este renderizando
@colombinis
colombinis / gist:c89a8ac1f414d6f2e39c02a3e4013b34
Created June 29, 2020 12:07
codility - encontrar mayor secuencia de 0 que inicien y finalizen con 1
let contar=false;
let contador=0;
let ultima=0;
"00001100100010000".split("").forEach((item)=>{
if(item == "1" && !contar){
contar=true;
contador=0;
}else if(item == "1" && contar) {
if(ultima<contador){
ultima =contador;
@colombinis
colombinis / kasuva_deploy.sh
Created June 11, 2020 12:32
kasuva - minimal deploy script manually
#!/bin/bash
APP="/var/www/prod.thesite.com"
TIMESTAMP=$(date +%Y%m%d%s)
RELEASE=$APP/releases/$TIMESTAMP
REPO=$APP/repo
echo "Cambia a la carpeta Repo"
cd $REPO/
echo "Actualiza git con branch master"
@colombinis
colombinis / gist:f73f53493466c326691c71c49ce7b7f9
Created January 20, 2020 13:49
log html output magento email send
To view/log HTMl email ouput
add a line to log it
add about line 392 in the file -> app/code/core/Mage/Core/Model/Email/Template.php
Mage::log("----ini cuerpo email---- \n". $text . " \n----Fin cuerpo email---- \n");
..............more details in git diff
diff --git a/app/code/core/Mage/Core/Model/Email/Template.php b/app/code/core/Mage/Core/Model/Email/Template.php
index 9c28d4572..7ebf79122 100644
--- a/app/code/core/Mage/Core/Model/Email/Template.php
@colombinis
colombinis / magento-cms_page_404
Created August 15, 2019 11:21
magento cms page 404
da error por problemas con paginas de stores que no existen...para "limpiar" hay que ejecutar
DELETE FROM cms_page_store WHERE store_id NOT IN (SELECT store_id FROM core_store)
----
fuente
https://magento.stackexchange.com/questions/79362/magento-admin-panel-gives-404-when-trying-to-enter-cms-pages
@colombinis
colombinis / my-change-php-to
Created March 22, 2019 07:18
Sirve para cambiar a una version de php, actualizar variables de entorno y restart apache
#!/bin/bash
function showPHP(){
echo "Version actual de php"
echo "---------------------"
php -v
}