Skip to content

Instantly share code, notes, and snippets.

View wilcorrea's full-sized avatar
🚀
// TODO: be life good

William Correa wilcorrea

🚀
// TODO: be life good
View GitHub Profile
<?php
declare(strict_types=1);
namespace App\Domain\Entity\Command;
use App\Domain\Enum\Type;
use Constructo\Support\Entity;
class EntityCommand extends Entity
# INHERIT: mkdocs.yml
site_name: "Docs"
site_description: "Docs description"
site_url: "https://github.com/<org>/<app>"
theme:
name: material
language: en
features:
#!/bin/bash
# Disable git pager
export GIT_PAGER=cat
untracked=$(git clean -d --dry-run)
changes=$(git status --short)
if [ -z "$untracked" ] && [ -z "$changes" ]; then
echo "Nothing to purge, working tree clean"
@wilcorrea
wilcorrea / php.sh
Created July 30, 2025 13:05
dockerized php
#!/bin/bash
ACTION="$1"
case ${ACTION} in
"stop")
docker stop php-cli
;;
"start")
docker run --rm --name php-cli -i -t -d \
@wilcorrea
wilcorrea / .zshrc
Last active January 29, 2025 21:51
How to configure oh-my-szh + p10k
# ...
plugins=(
git
git-extras
screen
sudo
history
docker
docker-compose
/* eslint-disable @typescript-eslint/no-explicit-any */
import { reactive } from 'vue'
type StoreMutation<StoreState> = (state: StoreState, ...args: any[]) => void
type StoreMutations<StoreState> = Record<string, StoreMutation<StoreState>>
type Store<StoreState> = {
state: StoreState
commit (mutation: string, ...args: any[]): void
gu () {
if [ -z "$1" ]; then
echo "Help"
echo " 0: '[email protected]'"
echo " 1: '[email protected]'"
else
case $1 in
0) account="[email protected]";;
1) account="[email protected]";;
@wilcorrea
wilcorrea / reset.bat
Created May 11, 2023 11:05
Reset Git setup on Windows
@echo off
git config --system --unset credential.helper
git config --global --unset credential.helper
git config --global credential.modalprompt false
git config --global init.defaultbranch main
git config --global pull.rebase true
set /p "email=Enter Email: "
git config --global user.email "%email%"
<?php
if (!function_exists('getClientAddress')) {
/**
* @return string|null
*/
function getClientAddress(): ?string
{
return $_SERVER['HTTP_CLIENT_IP']
.css-1dbjc4n.r-13awgt0.r-18u37iz.r-1w6e6rj,
[data-testid="unlike"] .css-901oao.css-16my406.r-1qd0xha.r-ad9z0x.r-bcqeeo.r-qvutc0,
[data-testid="like"] .css-901oao.css-16my406.r-1qd0xha.r-ad9z0x.r-bcqeeo.r-qvutc0,
.css-4rbku5.css-18t94o4.css-901oao.r-hkyrab.r-1loqt21.r-1qd0xha.r-a023e6.r-16dba41.r-ad9z0x.r-bcqeeo.r-qvutc0 {
display: none;
}
.r-z1a2ur {
background-color: rgb(255 255 255);
}