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 <cstdlib> | |
#include <iostream> | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
using namespace std; | |
int main(int argc, char **argv) { |
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 <stdio.h> | |
#include <stdlib.h> | |
char* removeAcento(char *string){ | |
int i=0; | |
int resultado = 0; | |
while(string[i] != '\0'){ | |
if(!((string[i] < 97 || string[i] > 122) && (string[i] < 65 || string[i] > 90))) { | |
resultado++; | |
} |
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
def SplitIterator(s,separator): | |
s = list(s) | |
c = 0 | |
l = len(separator) | |
separator = list(separator) | |
last_token = [] | |
while s[c:]: | |
if s[c:c+l] == separator: | |
a = "".join(last_token) | |
last_token = [] |
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
My Server: | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 100000 requests | |
Completed 200000 requests | |
Completed 300000 requests | |
Completed 400000 requests |
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, os.path | |
def ren(path): | |
files = os.listdir(path) | |
for f in files: | |
if f in (".",".."): | |
continue | |
f = os.path.join(path,f) | |
if os.path.isdir(f): | |
ren(f) | |
else: |
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
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests | |
Completed 500 requests |
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
fernando@ubuntu:/etc$ ab -n 10000 -c 25 http://127.0.0.1/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 1000 requests | |
Completed 2000 requests | |
Completed 3000 requests | |
Completed 4000 requests |
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
# -*- coding: cp1252 -*- | |
import time | |
ns = range(1,6) | |
ns.reverse() | |
for n in ns: | |
print "%d patinho%s foram passear"%(n,["","s"][n!=1]) | |
print "além das montanhas para brincar" | |
print "a mamãe gritou" | |
for x in range(1,5): | |
print "quá!" |
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
1) Para cutucar automaticamente quem lhe cutuca, acesse a página https://www.facebook.com/pokes pelo Google Chrome e tecle CTRL+SHIFT+I | |
2) Será aberto um terminal para você digitar o que quiser. Clique em "Console" e cole o seguinte código: setInterval(function(){var els = document.querySelectorAll("a.uiIconText[ajaxify*='\\/ajax\\/pokes']");for(var c=0;c<els.length;c++){var el = els[c];var e = document.createEvent("MouseEvent");e.initMouseEvent("click",true,true);el.dispatchEvent(e)}},1000) | |
3) Dê ENTER e deixe a aba aberta..Pronto! Agora quem lhe cutucar será re-cutucado em 1 segundo. :) | |
4) Agradeça ao http://facebook.com/fjorgemota/, ou não, depois desses importantíssimos procedimentos de utilidade PÚBLICA. |
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
<table border="0" width="100%"> | |
<!-- Primeira linnha indica o nome das colunas --> | |
<th> | |
<td>Coluna 1</td> | |
<td>Coluna 2</td> | |
<td>Coluna 3</td> | |
</th> | |
<!-- Proximas linhas somente conteudo --> | |
<tr> | |
<td> |
OlderNewer