This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:5.6-apache | |
# Install modules | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
php5-dev \ | |
libmcrypt-dev \ | |
&& docker-php-ext-install mcrypt mbstring zip pdo_mysql | |
# Install composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
#include<locale.h> | |
main () { | |
setlocale(LC_ALL, "Portuguese"); | |
int i, j, | |
controleJ, | |
somaDiagonalPrincipal = 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<conio.h> | |
#include<stdio.h> | |
#include<locale.h> | |
main () { | |
setlocale(LC_ALL, "Portuguese"); | |
int qtdeDelegacoes = 5, qtdeAtletas = 10; | |
char delegacao[5][100]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exibir informações do Docker | |
docker info | |
Listar Todas as Docker Images | |
docker images -a | |
Listar Todos os Docker Containers que estão em execução | |
docker ps | |
Listar Todos os Docker Containers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rodar Queues do Laravel em Hospedagem compartilhada | |
//É necessário criar uma método em um controller para executar a queue | |
//Estou chamando a tarefa e dizendo para ser executada somente uma vez | |
public function queue() | |
{ | |
Artisan::call('queue:restart', []); | |
Artisan::call('queue:work', [ | |
'--timeout' => 60, | |
'--memory' => 150, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-cache search php7.0- | less #Lista pacotes disponíveis para instalação | |
sudo nano /etc/apache2/mods-enabled/dir.conf #Modificar a prioridade de exibição de arquivos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
//Dependências | |
"devDependencies": { | |
"gulp": "^3.9.1", | |
"gulp-image": "^2.9.0", | |
"gulp-image-resize": "^0.12.0", | |
"gulp-zip": "^4.0.0" | |
} | |
*/ |