Skip to content

Instantly share code, notes, and snippets.

View felixalguzman's full-sized avatar
🎯
Focusing

Félix Alejandro Guzmán felixalguzman

🎯
Focusing
View GitHub Profile
@felixalguzman
felixalguzman / Demo.groovy
Last active April 2, 2025 18:05
Get stats from a grails project with a script
includeTargets << grailsScript("_GrailsInit")
target(demo: "Code statistics analyzer") {
def showAll = argsMap.containsKey('all')
def sortOrder = argsMap.s ?: 'desc'
println "Starting code analysis... ${showAll ? ' with all' : ''}"
println ""
def dirs = [
@felixalguzman
felixalguzman / add_audio.bat
Created August 1, 2024 02:08
add a audio file named 01_es to 01.mp4
@echo off
for /l %%i in (1, 1, 46) do (
setlocal EnableDelayedExpansion
set num=%%i
if %%i lss 10 set num=0%%i
"mkvmerge.exe" -o "!num!.mkv" "!num!.mp4" --language 0:spa "!num!_es.mp4"
endlocal
)
pause
@felixalguzman
felixalguzman / docker-compose.yaml
Created December 13, 2023 00:28
Mysql with phpMyAdmin docker compose
version: "3"
services:
# Database
db:
platform: linux/x86_64
image: mysql
volumes:
- db_data:/var/lib/mysql
restart: always
git submodule init
git submodule update
git submodule foreach 'git fetch origin; git checkout $(git rev-parse --abbrev-ref HEAD); git reset --hard origin/$(git rev-parse --abbrev-ref HEAD); git submodule update --recursive; git clean -dfx'
@felixalguzman
felixalguzman / main.dart
Created October 8, 2020 20:13
demo tiles flutter
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@felixalguzman
felixalguzman / haproxy.cfg
Created December 11, 2018 14:39
Configuración de haproxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
@felixalguzman
felixalguzman / cloudSettings
Last active June 20, 2018 22:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-06-19T03:01:10.978Z","extensionVersion":"v2.9.2"}

Keybase proof

I hereby claim:

  • I am felixalguzman on github.
  • I am felixal (https://keybase.io/felixal) on keybase.
  • I have a public key whose fingerprint is DB9D FEE2 281D E1C8 B4A1 8EC2 AF3F 4FE3 E7FF 4419

To claim this, I am signing this object: