Skip to content

Instantly share code, notes, and snippets.

View peczenyj's full-sized avatar
💻
coding

Tiago Peczenyj peczenyj

💻
coding
View GitHub Profile
@peczenyj
peczenyj / a.pl
Created November 4, 2013 11:12
Teste comparando Moose (virtual memory size 50204 kb) e Moo (virtual memory size 31364 kb) através do modulo Memory::Usage
use strict;
use warnings;
use feature 'say';
use Memory::Usage;
my $mu = Memory::Usage->new();
$mu->record('starting work');
package Foo;
@peczenyj
peczenyj / gist:7237916
Created October 30, 2013 18:49
youtube.com error message
500 Internal Server Error
Sorry, something went wrong.
A team of highly trained monkeys has been dispatched to deal with this situation.
If you see them, show them this information:
CkGlKqTxgvnj8qwrZk2-uUhfJUJZhAosQVThK4q_qqNuQeg-FKXqX_F-fLj9
5VnDkqOpPuBSVRl6xQNiyLB5ZOHQvchhR_Cctoy_KxCqhpKgkHj7WGRBLmsD
QH2RXP4uFBgF_bJIJBahOASIe_xmDe405Uyt8-5hEEARgb34CGysBBIdxHmI
@peczenyj
peczenyj / gist:6046886
Last active December 20, 2015 01:09
Isto é deveria sanitizar o seu imput
Crianças, aprendam:
Se vcs colocarem isto nos comentarios do site da ISTO É
<script>
$(document).ready(function(){
$('#materiaTopo').html('Mal feito isso aqui hein?');
$('#divCompleta').html('<img src="http://www.acunetix.com/wp-content/uploads/2012/10/PTMFOG0000001530.png" />');
alert('Eu sou terrivel... ');
});
@peczenyj
peczenyj / phishing.txt
Created July 11, 2013 13:44
phishing vindo da locaweb
Delivered-To: xxxxxxxxxxxx@gmail.com
Received: by 10.58.137.71 with SMTP id qg7csp68503veb;
Wed, 10 Jul 2013 23:25:33 -0700 (PDT)
X-Received: by 10.236.159.196 with SMTP id s44mr19975519yhk.105.1373523933104;
Wed, 10 Jul 2013 23:25:33 -0700 (PDT)
Return-Path: <q@thaianagent.com>
Received: from shared-hm3562.email.locaweb.com.br (hm3562-138.email.locaweb.com.br. [186.202.21.138])
by mx.google.com with ESMTP id p9si16461605yho.314.2013.07.10.23.25.32
for <xxxxxxxxxxxx@gmail.com>;
@peczenyj
peczenyj / email.original.txt
Created June 13, 2013 16:47
malware que utiliza locaweb, amazon s3 e muito mais.
Delivered-To: xxxxxxxxxx@gmail.com
Received: by 10.58.86.195 with SMTP id r3csp27923vez;
Thu, 13 Jun 2013 09:24:12 -0700 (PDT)
X-Received: by 10.236.7.164 with SMTP id 24mr1158812yhp.192.1371140651823;
Thu, 13 Jun 2013 09:24:11 -0700 (PDT)
Return-Path: <51b94f0a38a58264550024da@systemofvc.newssender.com.br>
Received: from hm2256-10.locaweb.com.br (hm2256-10.locaweb.com.br. [187.45.217.76])
by mx.google.com with ESMTP id x64si28623839yhm.60.2013.06.13.09.24.10
for <xxxxxxxxxx@gmail.com>;
Thu, 13 Jun 2013 09:24:11 -0700 (PDT)
@peczenyj
peczenyj / lelek.pl
Created June 7, 2013 13:26
simple lelek generator
use strict;
use warnings;
package LekLek;
use Convert::BaseN;
use Const::Fast;
use Moo;
const my @leks => qw(lek leK lEk Lek lEK LeK LEk LEK);
const my %octals => map { $leks[$_] => $_ } 0..7;
@peczenyj
peczenyj / https.txt
Created April 19, 2013 12:55
just a test...
HTTP Support
BR
1- Globo & G1
$ curl -A firefox -vs https://www.globo.com
* About to connect() to www.globo.com port 443 (#0)
* Trying 186.192.82.163...
* Operation timed out
@peczenyj
peczenyj / chat.pl
Created March 10, 2013 04:44
Exemplo de sala de chat utilizando IO Não bloqueante para o equinocio do SPPM 2013
use strict;
use warnings;
use POSIX;
use IO::Socket::INET;
use IO::Select;
use feature 'say';
use constant TIMEOUT => 0.5;
my $server = IO::Socket::INET->new(
@peczenyj
peczenyj / output.txt
Last active December 13, 2015 19:58
why my bb does no work?
1..3
ok 1 - should be 1
not ok 2 - should be 2
# Failed test 'should be 2'
# at untitled line 8.
# got: undef
# expected: '2'
# Looks like you failed 1 test of 3.
ok 3 - should be 3
@peczenyj
peczenyj / starwars.traceroute.txt
Created February 9, 2013 17:13
the starwars traceroute to 216.81.59.173
$ traceroute 216.81.59.173
traceroute to 216.81.59.173 (216.81.59.173), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 1.599 ms 0.899 ms 0.693 ms
2 * * *
3 201.17.0.24 (201.17.0.24) 13.554 ms 15.223 ms *
4 201.17.0.11 (201.17.0.11) 14.616 ms 14.337 ms 12.423 ms
5 embratel-t0-5-0-0-tacc01.rjo.embratel.net.br (200.209.203.37) 11.323 ms 10.444 ms 9.883 ms
6 ebt-t0-12-2-0-tcore01.rjoen.embratel.net.br (200.244.40.162) 121.094 ms 129.549 ms 124.419 ms
7 ebt-bundle-pos1223-intl03.mianap.embratel.net.br (200.230.220.58) 123.225 ms 123.339 ms 135.035 ms
8 ae7.mia10.ip4.tinet.net (199.168.63.185) 138.100 ms 137.263 ms 140.316 ms