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 FUNCTION search_columns( | |
needle text, | |
haystack_tables name[] default '{}', | |
haystack_schema name[] default '{public}' | |
) | |
RETURNS table(schemaname text, tablename text, columnname text, rowctid text) | |
AS $$ | |
begin | |
FOR schemaname,tablename,columnname IN | |
SELECT c.table_schema,c.table_name,c.column_name |
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
# executar no cmd ou PowerShell como administrador | |
Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_QWORD /d 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
# Após instalar o Linux, verifique qual é a partição do sistema EFI do Windows (exemplo: /dev/sda1) | |
sudo fdisk -l | |
# Crie uma pasta e monte a partição do sistema EFI do Windows nesta pasta | |
sudo mkdir /mnt/efi-windows | |
sudo mount /dev/sda1 /mnt/efi-windows |
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
qemu-img convert <disco_origem>.img -O qcow2 <disco_destino>.qcow2 |
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
tcpdump -i eth0 -s 65535 -w tcpdump.log |
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
Instalação de hotfix no Plone | |
A página a seguir lista todos os hotfixes disponíveis para cada versão | |
do Plone: https://plone.org/security/hotfixes | |
Basta seguir as instruções contidas nas páginas de cada hotfix. | |
Caso encontre o erro SSLV3_ALERT_HANDSHAKE_FAILURE ou | |
CERTIFICATE_VERIFY_FAILED ao executar o buildout e o download do produto | |
(hotfix) não seja concluído, é possível que o Plone esteja rodando com |
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 | |
permissao_existe number(4); | |
log_anterior_existe number(4); | |
responsavel_id number(8); | |
usuario_id number(8); | |
setor_id number(8); | |
tipo_permissao varchar(30 CHAR); | |
id_ccod_objeto varchar(18 CHAR); | |
motivo varchar(100 BYTE); | |
dataHoraAgora date; |
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
-- schema and data test | |
create table log_table | |
( id integer, | |
tipo varchar2(30), | |
usuario integer, | |
setor integer, | |
data_inclusao date, | |
data_exclusao date, | |
id_anterior integer, | |
status_atual integer |
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
Instalar os pacotes abaixo, antes de fazer o upload do arquivo no Plone: | |
sudo apt-get install wv | |
sudo apt-get install poppler-utils | |
Observação: o wv conseguiu indexar arquivos .doc no formato Word 97/2000/XP/2003 salvo pelo LibreOffice e arquivos .doc salvos no Word 2000. Mas não conseguiu indexar um arquivo salvo no Word 2003. |
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
<html> | |
<head> | |
<style> | |
div.container { | |
background:black; | |
width:500px; | |
height: 100px; | |
padding-top: 90px; | |
padding-bottom: 4px; |
NewerOlder