Skip to content

Instantly share code, notes, and snippets.

View mvvitorsilvati's full-sized avatar
🏠
Working from home

Vitor Silva mvvitorsilvati

🏠
Working from home
  • AIX SISTEMAS
  • Rio Verde/GO
View GitHub Profile
@mvvitorsilvati
mvvitorsilvati / php-docker-ext
Created April 25, 2022 15:04 — 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/

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@mvvitorsilvati
mvvitorsilvati / README.md
Created February 14, 2022 19:25 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp
@mvvitorsilvati
mvvitorsilvati / lista-de-nacionalidade.txt
Created December 1, 2021 10:52 — forked from lpirola/lista-de-nacionalidade.txt
Lista de países em português com suas respectivas nacionalidades
Antígua e Barbuda - Antiguano
Argentina - Argentino
Bahamas - Bahamense
Barbados - Barbadiano, barbadense
Belize - Belizenho
Bolívia - Boliviano
Brasil - Brasileiro
Chile - Chileno
Colômbia - Colombiano
Costa Rica - Costarriquenho
@mvvitorsilvati
mvvitorsilvati / cloudSettings
Last active October 8, 2021 10:06 — forked from bummzack/deploy-stages.php
Rsync Deployment setup à la bummzack
{"lastUpload":"2021-10-08T10:06:47.660Z","extensionVersion":"v3.4.3"}
@mvvitorsilvati
mvvitorsilvati / deploy.php
Created April 26, 2021 22:06 — forked from ab-budaev/deploy.php
Deployer config for laravel project
<?php
namespace Deployer;
require 'recipe/laravel.php';
// Configuration
set('ssh_type', 'native');
set('ssh_multiplexing', true);
set('git_tty', true); // [Optional] Allocate tty for git on first deployment
@mvvitorsilvati
mvvitorsilvati / deploy.php
Created April 26, 2021 22:05 — forked from mtwalsh/deploy.php
Deployer recipe for Laravel projects.
<?php
namespace Deployer;
require 'recipe/common.php';
// Project name
set('application', 'enovate.co.uk');
// Project repository
set('repository', 'git@githosting.com:enovatedesign/project.git');
<?php
require_once 'recipe/common.php';
// A deploy script for for deployer.org used at Jobinja.ir
// The script creates a folder for each one of your releases
// and makes them zero downtime deploys, this is tuned for laravel
// but the logic can be used for anything which needed transactional folder
// based changes.
// As some of the npm packages are banned in our server ISP we use
// a combination of shadowsocks and polipo(for reversing https and socks)
@mvvitorsilvati
mvvitorsilvati / deploy.php
Created April 26, 2021 22:04 — forked from ekandreas/deploy.php
Deploy example PHP Deployer
<?php
/*** step 1 ***/
date_default_timezone_set('Europe/Stockholm');
/*** step 2 ***/
include_once 'vendor/deployer/deployer/recipe/common.php';
/*** step 3 ***/
server( 'production', 'andreasek.se', 22 )
->env('deploy_path','/mnt/persist/www/aekab.se')
@mvvitorsilvati
mvvitorsilvati / deploy.php
Created April 26, 2021 22:04 — forked from tegaphilip/deploy.php
Deploying with Deployer PHP
<?php
// Note that you have to first install deployer (https://deployer.org/download)
// Then put this script at the root of your project
// To deploy to development, run `dep deploy development`
namespace Deployer;
require 'recipe/common.php';
// Servers