Skip to content

Instantly share code, notes, and snippets.

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

Daniel Garcia danielgarciabsb

🏠
Working from home
  • Brazil
View GitHub Profile
@danielgarciabsb
danielgarciabsb / SOLARIS_REPLACE.sh
Last active March 17, 2021 02:48
SOLARIS replace str in file
find . -type f | xargs perl -pi -e 's/CTeEvento/CTe/g;'
find . -type f -name '*.xml' | xargs perl -pi -e 's/retDistNFeEvento/retDistNFe/g;'
import os, math
import fileinput
class FileSplit(object):
MAX_BUFFER_SIZE = 102400
def __init__(self, fileName, splitAmount):
self.fileName = fileName
self.splitAmount = splitAmount
import os, math
class FileSplit(object):
MAX_BUFFER_SIZE = 102400
def __init__(self, fileName, splitAmount):
self.fileName = fileName
self.splitAmount = splitAmount
self.fileSize = None
#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
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+
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;
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
sed -i '/additionalConfigFilePath/d' .\pgpc\pgpc-flex\pgpc-flex.iml
@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\