Skip to content

Instantly share code, notes, and snippets.

View aguinaldotupy's full-sized avatar

Aguinaldo Tupy aguinaldotupy

  • São Paulo - Brasil
View GitHub Profile
<template>
<div class="col-sm-12 col-md-7">
<nav>
<ul class="pagination pagination-rounded">
<li class="page-item">
<a class="page-link" href="javascript: void(0);" aria-label="Previous" @click.prevent="pageChanged(1)">
<span aria-hidden="true">«</span>
<span class="sr-only">Previous</span>
</a>
</li>
<template>
<div class="col-12">
<div class="row">
<div class="col-12">
<table :class="classTable" cellspacing='0' width='100%'>
<thead>
<tr>
<th v-for="col in columnsComputed" @click="sort(col['data'])">{{ col['name'] }}
<span v-if="col['data'] === current_sort">
<i class="" :class="[current_sort_dir === 'asc' ? 'fe-arrow-up' : 'fe-arrow-down']" />
@aguinaldotupy
aguinaldotupy / your-site.conf
Created April 14, 2020 10:04
configuration server nginx
server {
listen 80;
listen [::]:80;
root path/site;
index index.php index.html index.htm index.nginx-debian.html;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
@aguinaldotupy
aguinaldotupy / banks.json
Created July 17, 2020 21:48 — forked from GlauberF/banks.json
Bancos brasileiros em json
Tipo da Conta Corrente (CB Conta Bancária, CX Caixinha, CC Cartão de Crédito ou CV Carteira Virtual)
{
"pagina": 1,
"total_de_paginas": 1,
"registros": 207,
"total_de_registros": 207,
"fin_banco_cadastro": [
{
"codigo": "001",
<template>
<li class="dropdown notification-list topbar-dropdown">
<a class="nav-link dropdown-toggle waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
<i class="fe-bell noti-icon"></i>
<span :class="labelNumberNotification" class="badge rounded-circle noti-icon-badge" v-cloak>{{ unreadNotifCount }}</span>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-lg">
<template v-if="unreadNotifCount > 0">
<!-- item-->
<div class="dropdown-item noti-title">
@aguinaldotupy
aguinaldotupy / phpstorm
Created August 17, 2020 14:16
Open file (flare ignition - laravel) with phpstorm
arg=${1}
pattern=".*file(:\/\/|\=)(.*)&line=(.*)"
# Get the file path.
lineFile=$(echo "${arg}" | sed -r "s/${pattern}/\2/")
file=$(echo "${lineFile}" | sed 's/\%2F/\//g')
# Get the line number.
line=$(echo "${arg}" | sed -r "s/${pattern}/\3/")
@aguinaldotupy
aguinaldotupy / ReadCsv.php
Created August 31, 2020 16:27
Read csv file
public function csvToArray($file)
{
$data = [];
$rows = array_map('str_getcsv', file($file));
$header = array_shift($rows);
foreach ($rows as $row) {
$data[] = array_combine($header, $row);
}
@aguinaldotupy
aguinaldotupy / default
Created October 17, 2020 15:46 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}
@echo off
:======================================================================================================================================================
:Thanks to abbodi1406 for SppExtComObjPatcher-kms\2-Activate-Local.cmd, which used as base in this script
:Thanks to rpo for the Great and Continued help in improving this script.
:Thanks to AR_Alex for the ideas and suggestions.
:======================================================================================================================================================
::===========================================================================
fsutil dirty query %systemdrive% >nul 2>&1 || (