Skip to content

Instantly share code, notes, and snippets.

View kbzone's full-sized avatar
🖱️

Cabello, Hector Guillermo kbzone

🖱️
View GitHub Profile
@MrPunyapal
MrPunyapal / 1 Types.md
Last active March 22, 2025 23:42
Types In PHP

Atomic Types (Built-in and Scalar)

// Built-in types
$variable = null;             // null type

// Scalar types
$boolVar = true;              // bool type
$intVar = 42;                 // int type
$floatVar = 3.14;             // float type
@hotsaucejake
hotsaucejake / FasterRefreshDatabase.php
Created June 17, 2023 12:05
Checksum Faster Refresh Database Trait for Laravel Tests
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\RefreshDatabaseState;
use Symfony\Component\Finder\Finder;
/**
<?php
//Enums/ContactType.php
namespace App\Enums;
use App\Enums\Traits\LocalizedEnum;
enum ContactType: string
{
use LocalizedEnum;
@ksassnowski
ksassnowski / useDatepicker.ts
Created January 15, 2022 16:09
Datepicker Framework, I guess
import {computed, ref} from "vue";
import {
addMonths, addYears,
eachDayOfInterval,
endOfISOWeek,
getYear,
getDate,
isSameMonth,
startOfISOWeek,
startOfMonth,
@BenCavens
BenCavens / DatabaseQueueMonitorCommand.php
Created August 2, 2021 08:28
Laravel queue monitoring on shared hosting
<?php
namespace App\Queue;
use Carbon\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class DatabaseQueueMonitorCommand extends Command
{
@Pen-y-Fan
Pen-y-Fan / Test Driven Development (TDD) Learning Plan.md
Last active March 31, 2025 11:17
Test Driven Development (TDD)

Learning Plan for Test Driven Development (TDD)

These learning resources primarily focus on Test Driven Development (TDD).

  • There is an emphasis on learning using PHP, Laravel and PHPUnit.
  • All these resources are free (at the time of writing)
@noelboss
noelboss / git-deployment.md
Last active April 1, 2025 16:56
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@angrycoffeemonster
angrycoffeemonster / Sublime Text 3 Build 3103 License Key - CRACK
Created April 18, 2016 02:13
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@ssebastianj
ssebastianj / api.md
Last active November 13, 2018 04:25
¿Cuándo Pasa Resistencia? API Reverse Engineering

¿Cuándo Pasa Resistencia?

API

1. Identificador de usuario

El identificador de usuario userId a utilizar en las peticiones está en función del tipo de línea de colectivo que se desea consultar (urbana o interurbana).

Línea UserId
Urbana 0d7c6b60-7b7f-4833-ace7-e633dc1a33c9
Interurbana 30d72c97-568b-4dcb-b239-13c0a318348c