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
find . -type f | xargs perl -pi -e 's/CTeEvento/CTe/g;' | |
find . -type f -name '*.xml' | xargs perl -pi -e 's/retDistNFeEvento/retDistNFe/g;' |
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 os, math | |
import fileinput | |
class FileSplit(object): | |
MAX_BUFFER_SIZE = 102400 | |
def __init__(self, fileName, splitAmount): | |
self.fileName = fileName | |
self.splitAmount = splitAmount |
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 os, math | |
class FileSplit(object): | |
MAX_BUFFER_SIZE = 102400 | |
def __init__(self, fileName, splitAmount): | |
self.fileName = fileName | |
self.splitAmount = splitAmount | |
self.fileSize = None |
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 string import Template | |
nome_tabela = "DEC_AUTORIDADE_CERTIFICADORA" | |
campos = "COD_AUTORIDADE_CERTIFICADORA,DES_AUTORIDADE_CERTIFICADORA,NUM_SERIAL,DTA_INCLUSAO,USR_INCLUSAO,DTA_ALTERACAO,USR_ALTERACAO" | |
intervalo = 100 | |
nome_dblink = "DEC_HML08" | |
valores_insert = ''.join(['resultado.{0}, '.format(x) for x in campos.split(',')])[:-2] | |
t = Template(''' |
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 <AutoItConstants.au3> | |
#include <Misc.au3> | |
;While 1 | |
; If _IsPressed("01") Then | |
; $pos = MouseGetPos() | |
; ;MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) | |
; ToolTip("Mouse x,y:" & $pos[0] & "," & $pos[1]) | |
; EndIf | |
;WEnd |
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
Eliminar trecho da pesquisa: (?!trecho) | |
Exemplo: public(?!syncronized) static(.*) getInstance() | |
Pesquisar por todos que não são /swf: /PGPC/(?!swf)\w+ | |
Detectar comentarios: | |
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/|[ \t]*//.*) | |
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/) | |
([ \t]*//.*) | |
Detectar espaço: \s+ |
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
package br.com.sicoob.sisbr.pgpc.fachada; | |
import br.com.bancoob.excecao.BancoobException; | |
import io.github.classgraph.ClassGraph; | |
import io.github.classgraph.ClassInfo; | |
import io.github.classgraph.ScanResult; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.PrintStream; |
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
for f in *.java; do printf '<class>br.com.sicoob.sisbr.pgpc.persistencia.riscooperacional.entidades.%s</class>\n' "${f%.java}"; done | |
/PGPC/(?!swf)\w+ | |
\s+<option name="additionalConfigFilePath" .* | |
integracao(.*)Delegate | |
integracao$1ServicoEJB | |
sed -i '/additionalConfigFilePath/d' .\pgpc-flex.iml |
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
sed -i '/additionalConfigFilePath/d' .\pgpc\pgpc-flex\pgpc-flex.iml |
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
@echo off | |
sed -i '/additionalConfigFilePath/d' .\pgpc\pgpc-flex\pgpc-flex.iml | |
cd C:\SisbrIDE\workspace\pgpc\pgpc-ear\pgpc-ear-backoffice\target | |
7za x -aoa pgpc-ear-backoffice.ear -opgpc_ear | |
cd pgpc_ear | |
xcopy /y C:\SisbrIDE\workspace\pgpc\pgpc-ear\pgpc-ear-backoffice\target\pgpc_ear\pgpc-negocio-3.0.0.0-SNAPSHOT.jar C:\SisbrIDE\workspace\pgpc-ejb-teste\lib\ | |
xcopy /y C:\SisbrIDE\workspace\pgpc\pgpc-ear\pgpc-ear-backoffice\target\pgpc_ear\pgpc-integracao-3.0.0.0-SNAPSHOT.jar C:\SisbrIDE\workspace\pgpc-ejb-teste\lib\ |
NewerOlder