This file contains hidden or 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 | |
TYPE DEF_REGISTRO IS RECORD (CODIGO INT, DESCRICAO VARCHAR2(100)); | |
TYPE DEF_TABELA IS TABLE OF DEF_REGISTRO; | |
TABELA DEF_TABELA := DEF_TABELA(); | |
BEGIN | |
TABELA.EXTEND(1); | |
TABELA(TABELA.LAST).CODIGO := 1; | |
TABELA(TABELA.LAST).DESCRICAO := 'UM'; | |
TABELA.EXTEND(1); |
This file contains hidden or 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
Section "Device" | |
Identifier "Generic Video Card" | |
Boardname "sis" | |
Busid "PCI:1:0:0" | |
Driver "vesa" | |
Screen 0 | |
Option "UseFBDev" "true" | |
Option "DPMS" | |
Option "NoAccel" | |
Option "ShadowFB" |
This file contains hidden or 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
## [root@host]# cat procurar.sh | |
#! /bin/bash | |
tail -1000 /var/log/secure \ | |
| sed -n -e '/Failed/p' \ | |
| sed -e 's/.\+from //' -e 's/ port [0-9].\+//' \ | |
| awk '{Ip[$1]++;} END {for (var in Ip) if (Ip[var] > 10) print var;}' \ | |
| xargs -I "{}" /root/bloquear/tratar_ip.sh "{}" | |
This file contains hidden or 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
use strict; | |
use warnings; | |
use feature 'say'; | |
use Data::Dumper; | |
use File::Slurp; | |
use Email::Simple; | |
sub message_text { | |
message_seek (@_, 'plain'); | |
} |
This file contains hidden or 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
use strict; | |
use warnings; | |
use feature 'say'; | |
use Carp; | |
use Data::Dumper; | |
use Socket; | |
use Net::SMTP::Server; | |
use Net::SMTP::Server::Client; |
This file contains hidden or 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
#! /urs/bin/perl | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use DateTime; | |
open my $arquivo, '<', 'C:/Documents and Settings/fabio.soares/Desktop/Observações.txt' | |
or die 'Erro ao abrir o arquivo de dados: $!'; |
This file contains hidden or 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 | |
BASE_DIR=/root/dns | |
DADOS=$BASE_DIR/tmp/retorno.html | |
ATUAL=$BASE_DIR/atual.txt | |
LOG=$BASE_DIR/log/atualizacao-`date +%F`.log | |
SITES=$BASE_DIR/sites.txt | |
AFRAID='http://freedns.afraid.org/dynamic/update.php?<%---- hash here ------%>' | |
function buscar() |
This file contains hidden or 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
/* eject.c | |
** Copyright Paul Dwerryhouse, 1997-2004 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <limits.h> |
This file contains hidden or 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
#! /usr/bin/bash | |
#echo 'Obtendo senha do ddg...'; | |
#senha=`wget -q --no-check-certificate -O - \ | |
# https://duckduckgo.com/?q=password+10 | \ | |
# sed -e 's/.*class="zero_click_answer">//' -e 's/ .*//'`; | |
echo 'Obtendo senha do /dev/urandom'; | |
senha=`cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 10`; | |
This file contains hidden or 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
/* criar programa para ler arquivo entrada.txt com as informações: "estado;cidade" | |
e gravar saida.txt com "estado;qtd_cidade" ordeando do estado com mais cidades para | |
o com menos cidades */ | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; |
OlderNewer