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 | |
require 'vendor/autoload.php'; | |
use \mikehaertl\pdftk\Pdf; | |
$pdf = new Pdf; | |
$files = [ | |
'files/2484_27132950_1.pdf', |
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
/** | |
Eu preciso pegar as minhas compras e jogar no excel. Para resolver isso | |
eu criei o Pegador de compras da Nubank | |
Entre no site do nubank com seu usuário e senha e acesse a | |
página de detalhamento de sua fatura. | |
Em seguida abra o console do Chrome no seu navegador e cole esse | |
código abaixo |
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
ml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<add key="JobServer3Camadas" value="true" /> | |
<add key="Host" value="172.10.1.2" /> | |
<add key="Port" value="8050" /> | |
<add key="UpdateServer" value="172.10.1.2:8050"/> | |
<add key="EnableCompression" value="false" /> | |
<add key="FileServerPath" value="\\SRV-TOTVS\totvs-storage" /> | |
<add key="ActionsPath" value="C:\totvs\CorporeRM\RM.Net;C:\totvs\CorporeRM\Corpore.Net\Bin" /> |
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 | |
tipo=$1 | |
if [ -z $tipo ] | |
then | |
echo "Parâmetro obrigatório info ou o tipo de operacao [all, idle]" | |
exit 1; |
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
function videozap(){ | |
f="para-zap-$(basename -- $1)" | |
ffmpeg -i $1 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p ./$f | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
create or replace PROCEDURE ZERARVALORESORCAMENTO(ANO VARCHAR2) IS | |
ID_PERIODO NUMBER; | |
BEGIN | |
/** | |
Autores: ALfredo Braga / Paulo Moraes | |
Data : 05/11/2014 | |
Atualmente o RM gerencia os itens de Orçamento de maneira peculiar. |
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
declare | |
cursor c1 is | |
SELECT DISTINCT P.IDLANCAMENTO, | |
P.IDPARTIDA, | |
M.IDMOV, | |
M.TIPO, | |
M.CODCONTA AS CONTA_MOV, | |
CPRD.CODCONTA AS CONTA_PRD, | |
M.VALOR AS VALOR_CONTABIL, | |
PRD.CODCONTAGER AS CONTA_GERENCIAL_PRD, |
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
<!DOCTYPE html> | |
<html> | |
<meta charset="UTF8" /> | |
<head> | |
<title>Login</title> | |
</head> | |
<body> | |
<?php | |
require 'vendor/autoload.php'; |
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 | |
#Esse simples script realiza o ZIP dos arquivos de uma determinada pasta e | |
#em seguida os envia via rsync para um outro servidor. | |
#É necessário que em sua maquina você tenha instalado o rysnc | |
#É necessário também a criação de uma chave ssh para que não seja necessário a digitação de senha | |
echo "Iniciando compressão de arquivos da pasta de uploads"; | |
zip -9 -r /root/files-backup/backup-arquivos-site-`date +"%d_%m_%Y"`.zip /var/www/html/site/public/files; |
NewerOlder