Skip to content

Instantly share code, notes, and snippets.

View jpaulolxm's full-sized avatar
💭
alfagestor.com.br

João Paulo Dos S. Rodrigues jpaulolxm

💭
alfagestor.com.br
View GitHub Profile
@jpaulolxm
jpaulolxm / docker-swarm-remove-node-in-down.sh
Last active February 19, 2025 01:54 — forked from sxiii/remove.sh
Docker Swarm - Remove all Down nodes automatically
#!/bin/bash
# Requirements: linux, docker, grep, awk
# This script removes all "Down" (off) nodes from Docker Swarm
# Useful to clean stuff from time to time, if you have auto-joining nodes for example
sudo docker node rm $(sudo docker node ls | grep Down | awk -F" " '{ print $1 }')
@jpaulolxm
jpaulolxm / php-redis-custom-flags.sh
Created December 16, 2022 16:01 — forked from mingalevme/php-redis-custom-flags.sh
Installing PHP Redis extension inside PHP-Alpine-based Docker container
NPROC=$(getconf _NPROCESSORS_ONLN)
mkdir -p /usr/src/php/ext
cd /usr/src/php/ext
pecl bundle redis
docker-php-ext-configure redis --enable-redis-igbinary --enable-redis-lzf
docker-php-ext-install -j${NPROC} redis
cd -
@jpaulolxm
jpaulolxm / docker-php-ext-install.md
Created May 6, 2020 21:19 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
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/ 
@jpaulolxm
jpaulolxm / CONFIG.md
Created January 27, 2020 20:43
Apache: Como configurar um VirtualHost com proxy reverso

Apache: Como configurar um VirtualHost com proxy reverso

Instala biblioteca do Apache

sudo apt-get install libapache2-mod-proxy-html

Habilita os módulos no Apache

@jpaulolxm
jpaulolxm / laravel_horizon.md
Created October 21, 2019 19:35 — forked from ankurk91/laravel_horizon.md
Laravel Horizon, redis-server, supervisord on Ubuntu server

Laravel Horizon, redis-server, supervisord on Ubuntu 16/18 server

Laravel 6.0, Horizon 3.x, Redis 5.x

Parepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like - http://yourapp.com/horizon
  • For now it should show status as inactive on dashbaord

Install redis-server

@jpaulolxm
jpaulolxm / xampp_php7_xdebug.md
Created May 24, 2019 20:12 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

@jpaulolxm
jpaulolxm / Office_kms
Created December 22, 2018 19:41 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
Pré-Requisitos (Esse How to foi testado na versão dos S.O citados abaixo)
Ubuntu 16.04.X LTS x64 ou Debian 8.X
Bacula 7.4.X
Postgresql 9.X
>>> Atualizar o sistema operacional
# apt-get update
# apt-get upgrade