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 | |
IMAGE=$1 | |
CNAME=$2 | |
PORT=$3 | |
function buildTraefik { | |
cat << EOF > ~/up.sh | |
#!/bin/bash | |
docker image rm ${IMAGE} |
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
LANGUAGE=en_US.utf8 | |
LC_ALL=en_US.utf8 | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LC_TIME=en_US.UTF-8 | |
LC_MONETARY=en_US.UTF-8 | |
LC_CTYPE=en_US.UTF-8 | |
LC_ADDRESS=en_US.UTF-8 | |
LC_TELEPHONE=en_US.UTF-8 | |
LC_NAME=en_US.UTF-8 |
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
{ | |
"emptyTable": "Nenhum registro encontrado", | |
"info": "Mostrando de _START_ até _END_ de _TOTAL_ registros", | |
"infoFiltered": "(Filtrados de _MAX_ registros)", | |
"infoThousands": ".", | |
"loadingRecords": "Carregando...", | |
"zeroRecords": "Nenhum registro encontrado", | |
"search": "Pesquisar", | |
"paginate": { | |
"next": "Próximo", |
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
version: '3' | |
services: | |
traefik: | |
restart: unless-stopped | |
image: traefik:v2.0.2 | |
ports: | |
- "80:80" | |
- "443:443" | |
labels: | |
- "traefik.http.services.traefik.loadbalancer.server.port=8080" |
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
sudo apt install mysql-server -y | |
select * from mysql.user; | |
select host, user, password from mysql.user; | |
CREATE USER 'tiburcio'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
ALTER USER 'tiburcio'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'tiburcio'; | |
GRANT ALL PRIVILEGES ON *.* TO 'tiburcio'@'localhost' WITH GRANT OPTION; | |
CREATE SCHEMA IF NOT EXISTS `sistema` DEFAULT CHARACTER SET utf8mb4 ; |
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
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/html; | |
index index.php index.html index.htm; | |
server_name example.com www.example.com; | |
client_max_body_size 500M; | |
location / { |
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
php -v | |
pecl version | |
sudo apt-get install php7.4-dev -y | |
sudo apt-get install php-pear | |
sudo apt-get -y install gcc make autoconf libc-dev pkg-config -y | |
sudo pecl channel-update pecl.php.net | |
sudo apt-get -y install libmcrypt-dev | |
sudo pecl install mcrypt-1.0.3 # 7.4 | |
# php 7.4 |
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
<?php | |
class Invizzo_Bematech | |
{ | |
private $_registro = "310DBDAC-85FF-4008-82A8-E22A09F9460B"; | |
private $_impressora = 7; | |
private $_porta = "USB"; | |
private $_texto; | |
private $_texto_barcode; |
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
dart pub global activate fvm | |
fvm install <version> 2.8.1 | |
fvm list | |
fvm use <version> --force |
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
import {AfterViewInit, Component, OnDestroy, OnInit, ViewChild} from '@angular/core'; | |
import {ActivatedRoute, Router} from '@angular/router'; | |
import {FuncsHelperService} from '../_core/_services/funcs-helper.service'; | |
import {AuthenticationService} from '../_core/_services/authentication.service'; | |
import {PostsService} from '../_core/_services/posts.service'; | |
import {PostsModel} from '../_core/_models/posts.model'; | |
import {ImagesModel} from '../_core/_models/images.model'; | |
import {IonInfiniteScroll, IonSlides} from '@ionic/angular'; | |
import {SeeLaterService} from '../_core/_services/see-later.service'; | |
import {UsersService} from '../_core/_services/users.service'; |
NewerOlder