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
View GitHub Profile
@viniciusmelocodes
viniciusmelocodes / runFillMemoryAndLock4CoresOfProcessorBy1Minute.sh
Last active April 7, 2024 02:08
Loop Shell Script Fill Memory RAM and Lock 4 Cores of Processor by 1 minute
#!/bin/bash
for (( i=1; i<=9999; i++ )) # Irá rodar 9999 vezes
do
seq 4 | xargs -P0 -n1 timeout 60 yes > /dev/null # Segura 4 núcleos do processador em 100% por 1 minuto
cat <(head -c 500m /dev/zero) <(sleep 60) | tail # Segura 500 MB de memória RAM por 1 minuto
sleep 60 # 1 minuto esperando começar novamente
done
@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 / rclone_crontab.sh
Created July 6, 2022 01:39
Mount RClone with Google Drive
0 0 * * * /usr/bin/rclone mount --daemon --allow-non-empty {name_remote_rclone}: /home/user/googledrive/
hideexec.exe copy_file.cmd
https://code.kliu.org/misc/hideexec/
copy /Y "C:\file.jpg" "\\pc01\teste"
echo on
cls
echo �Validando Licen�a para 180 Dias...�
CD\
C:
cd C:\users\administrator
slmgr.vbs -rearm
:end
@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