Skip to content

Instantly share code, notes, and snippets.

View gbelot2003's full-sized avatar
🎃
Working

Gerardo Belot gbelot2003

🎃
Working
View GitHub Profile
@gbelot2003
gbelot2003 / sh
Created August 18, 2019 22:54
extraer filas filtradas de un cvs
#!/bin/bash
ruta="/home/gerardo/Descargas/xvideos"
ruta2="/home/gerardo/Descargas/limpias"
read -p "Enter Your File Number: " fileNumber
grep "teen" < $ruta"/"xvideo_part"$fileNumber" | grep "creampie" > $ruta2"/creampie."$fileNumber
@gbelot2003
gbelot2003 / docker-compose.yaml
Last active November 30, 2019 05:09
compose for wordpress
version: "3.0"
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@gbelot2003
gbelot2003 / WordController.php
Created March 9, 2020 15:38
Ejemplo de usuo de PHPWord con y sin plantillas
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WordController extends Controller
{
/**
* Generamos un archivo de word
@gbelot2003
gbelot2003 / ssh
Created August 8, 2020 03:29
configuracion vsftpd ubuntu
listen=YES
listen_ipv6=NO
write_enable=YES
local_umask=022
chroot_local_user=YES
seccomp_sandbox=NO
allow_writeable_chroot=YES
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO
@gbelot2003
gbelot2003 / init.sh
Created February 23, 2023 06:59
simple sh to init typescript and nodejs with jest
#!/bin/bash
npm init -y
mkdir src
mkdir test
#git clone https://gist.github.com/f69ac30736183bafeb56903b818d9f78.git docker
npm i typescript
npm i -D jest