Skip to content

Instantly share code, notes, and snippets.

View viniciusmelocodes's full-sized avatar
:octocat:
Serving customers with high quality projects

Vinícius Melo viniciusmelocodes

:octocat:
Serving customers with high quality projects
  • Vinícius Melo
  • Brazil
View GitHub Profile
@viniciusmelocodes
viniciusmelocodes / password-input.tsx
Created April 7, 2024 01:59 — forked from mjbalcueva/password-input.tsx
shadcn ui custom password input
"use client"
import { forwardRef, useState } from "react"
import { EyeIcon, EyeOffIcon } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Input, InputProps } from "@/components/ui/input"
import { cn } from "@/lib/utils"
const PasswordInput = forwardRef<HTMLInputElement, InputProps>(
({ className, ...props }, ref) => {
@viniciusmelocodes
viniciusmelocodes / php-docker-ext
Created July 28, 2023 16:06 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
@viniciusmelocodes
viniciusmelocodes / .docker\Dockerfile
Created July 26, 2023 13:55 — forked from DanRibbens/.docker\Dockerfile
docker-compose & dockerfile for PHP 7.4, Nginx, PostgreSQL
FROM php:7.4-fpm
# Copy composer.lock and composer.json
COPY ../composer.lock composer.json /var/www/
# Set working directory
WORKDIR /var/www
# Install dependencies
RUN apt-get update && apt-get install -y \
@viniciusmelocodes
viniciusmelocodes / mysql-docker.sh
Created January 25, 2023 04:05 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@viniciusmelocodes
viniciusmelocodes / XpSerials.txt
Created March 29, 2022 19:03 — forked from denizssch/XpSerials.txt
Windows XP ALL Serial Keys :) (For testing purpose [Ex: VM or PenTest])
FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8
Windows XP PRO Corporate serial number S/N: Key: MQPWW-PGVKX-YPMKG-8DH3G-KC8PW
windows xp home edition serial number S/N: 034634-262024-171505-828316-729010-413531-800424-400442
Windows XP 64 serial number S/N: B2RBK-7KPT9-4JP6X-QQFWM-PJD6G
Windows XP serial number S/N: K6C2K-KY62K-DQR84-RD4QV-QB74Q
Windows XP Professional 64-bit Corporate Edition 5.2.3790.1830 serial number S/N: VCFQD-V9FX9-46WVH-K3CD4-4J3JM
Microsoft Windows XP Professional SP2 serial number S/N: YY8F2-3CKVQ-RKTRG-6JMDR-9DTG6
Windows XP Professional Service Pack 1 sp1 serial number S/N: F46YY - 2R8VQ - R8GMY - 926VK - 6BQ73
Windows XP Pro serial number S/N: KBWR7-76BD8-J7MDQ-KKG&C-V9Q2J
@viniciusmelocodes
viniciusmelocodes / install_oci8_ubuntu20_php7.4.md
Created February 2, 2022 05:14 — forked from enlinea777/install_oci8_ubuntu20_php7.4.md
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
@viniciusmelocodes
viniciusmelocodes / install_oci8_ubuntu20_04_php7.4_oracle_11g.md
Last active February 2, 2022 05:18 — forked from eSkiSo/install_oci8_ubuntu20_php7.4.md
Install OCI8 (Oracle) in Ubuntu 20.04 with PHP 7.4 (Oracle 11G)
@viniciusmelocodes
viniciusmelocodes / Powershell change wallpaper
Created July 15, 2021 02:07 — forked from s7ephen/Powershell change wallpaper
How to change the desktop wallpaper from powershell.
set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value accipiter.png
uses
ComObj, ActiveX, JwaWinbase, JwaWtsApi32;
{$R *.DFM}
procedure ServiceController(CtrlCode: DWORD); stdcall;
begin
ServiceExample.Controller(CtrlCode);
end;
@viniciusmelocodes
viniciusmelocodes / README.md
Created June 21, 2021 18:25 — forked from leomp12/README.md
E-Com Plus - Carregando images de produtos via Storage API

E-Com Plus - Carregando images de produtos via Storage API

Recomendamos que as imagens dos produtos sejam carregadas para a Storage API, onde serão normalizadas em tamanhos que comuns para o Storefront, otimizadas para WebP e também salvas em PNG/JPEG para utilização em dispositivos que não suportam o formato WebP.

Source code da Storage API

Upload