Skip to content

Instantly share code, notes, and snippets.

View asterion's full-sized avatar
🌴
On vacation

Marcos Matamala Fernández asterion

🌴
On vacation
View GitHub Profile
@asterion
asterion / nginx.conf
Created December 31, 2024 14:36
Nginx Laravel PHP FPM
# Nginx global configuration
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@asterion
asterion / Dockerfile
Last active December 31, 2024 14:38
Dockerfile Laravel PHP CLI 8.1
FROM php:8.1-cli
# Instalar extensiones y dependencias necesarias
RUN apt-get update && apt-get install -y \
libzip-dev \
unzip \
git \
libonig-dev \
libpng-dev \
libjpeg-dev \
@asterion
asterion / Dockerfile
Created December 31, 2024 14:34
Dockerfile Laravel PHP 8.1
# Usar la imagen base de PHP 8.1 con FPM
FROM php:8.1-fpm
# Instalar extensiones y dependencias necesarias
RUN apt-get update && apt-get install -y \
libzip-dev \
unzip \
git \
libonig-dev \
libpng-dev \
@asterion
asterion / docker-compose.yaml
Created December 31, 2024 14:33
Docker Compose For Laravel PHP 8.1
services:
php-fpm:
container_name: php-fpm
ports:
- "9000:9000"
volumes:
- ./:/var/www/html
- ./logs/php:/var/log/php
environment:
- APP_ENV=local
@asterion
asterion / software.sh
Created June 27, 2021 23:27
software para desktop
#!/bin/bash
sudo apt install -y tree bc vim htop curl wget ubuntu-restricted-extras rar unrar p7zip-full p7zip-rar ubuntu-gnome-desktop gnome-session gdm3 chrome-gnome-shell terminator docker docker-compose git php-cli php-curl rsync gnome-tweaks
sudo snap install vlc
sudo update-alternatives --config editor
git config --global color.ui true
git config --global color.diff.meta "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.status.added "green bold"
git config --global color.status.changed "yellow"
@asterion
asterion / torpedo_php.md
Last active April 25, 2021 13:43
Torpedo PHP

Definir uso de memoria para ejecutar php en línea de comando

php -d memory_limit=1024M
@asterion
asterion / composer.md
Created February 19, 2021 11:33
Composer

Composer --ignore-platform-reqs

composer install --ignore-platform-reqs
@asterion
asterion / rabbitmq.md
Created February 15, 2021 11:41
Rabbitmq torpedo

Crear usuarios

rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@asterion
asterion / SSL.md
Last active February 15, 2021 11:48
SSL

Inpeccionar SSL

openssl s_client -connect <url>:443

Leer información desde un archivo crt

openssl x509 -text -noout -in certificate.crt
@asterion
asterion / magento.md
Last active April 18, 2022 15:07
Magento

Magento en modo mantenimiento

bin/magento maintenance:enable
bin/magento c:c
bin/magento c:f
bin/magento maintenance:disable