Skip to content

Instantly share code, notes, and snippets.

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

RAFAEL S GUIMARÃES ozzpy

🏠
Working from home
View GitHub Profile
#!/bin/bash
IMAGE=$1
CNAME=$2
PORT=$3
function buildTraefik {
cat << EOF > ~/up.sh
#!/bin/bash
docker image rm ${IMAGE}
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
@ozzpy
ozzpy / datatables_pt_br.json
Created February 8, 2023 20:50
datatables_pt_br.json
{
"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",
@ozzpy
ozzpy / docker-compose.yml
Created January 26, 2023 20:37 — forked from pyrou/docker-compose.yml
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
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"
@ozzpy
ozzpy / mysq-tiburcio
Last active January 17, 2023 23:08
mysql-tiburcio
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 ;
@ozzpy
ozzpy / Ubuntu 18.04 - nginx1.4 - php7.2 : wordpress
Last active January 17, 2023 18:21
Ubuntu 18.04 - nginx1.4 - php7.2 : wordpress
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 / {
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
@ozzpy
ozzpy / Invizzo_Bematech.php
Created January 18, 2018 15:05
EXEMPLO PHP - Bematech 4200 TH - NAO FISCAL - USB - octoBema - MP2032.DLL - WINDOWS - pt_BR
<?php
class Invizzo_Bematech
{
private $_registro = "310DBDAC-85FF-4008-82A8-E22A09F9460B";
private $_impressora = 7;
private $_porta = "USB";
private $_texto;
private $_texto_barcode;
@ozzpy
ozzpy / flutter_version
Created May 18, 2022 20:01
flutter version
dart pub global activate fvm
fvm install <version> 2.8.1
fvm list
fvm use <version> --force
@ozzpy
ozzpy / ionic.pagination.ts
Created January 26, 2022 20:47
ionic pagination example
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';