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 "stdlib.h" | |
#include "stdio.h" | |
int main(){ | |
int x=0,y; | |
while(x<=20){ | |
printf("Digite um numero\n"); |
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
<?php | |
$compressed = array( | |
".0" => "Hacha Split Archive File", | |
".000" => "DoubleSpace Compressed File", | |
".7z" => "7-Zip Compressed File", | |
".7z.001" => "7-Zip Split Archive Part 1 File", | |
".7z.002" => "7-Zip Split Archive Part 2 File", | |
".a00" => "ALZip Second Split Archive File", | |
".a01" => "ALZip Third Split Archive File", |
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
00:00:00 XEROX CORPORATION | |
00:00:01 XEROX CORPORATION | |
00:00:02 XEROX CORPORATION | |
00:00:03 XEROX CORPORATION | |
00:00:04 XEROX CORPORATION | |
00:00:05 XEROX CORPORATION | |
00:00:06 XEROX CORPORATION | |
00:00:07 XEROX CORPORATION | |
00:00:08 XEROX CORPORATION | |
00:00:09 XEROX CORPORATION |
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
#!/usr/bin/env/python | |
# -*- coding: utf-8 -*- | |
import re | |
from subprocess import check_output as ck | |
get_ifaces = ck(['/sbin/ifconfig'], shell=1).split() | |
if_ips = [] | |
for item in [re.sub('addr:','',item) for item in get_ifaces if re.match(r'eth[0-9](:[0-9])?|addr:[0-9]',item)]: |
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
"***************************************************************************** | |
"" NeoBundle core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif |
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
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import time | |
import requests | |
import threading | |
import Tkinter | |
from BeautifulSoup import BeautifulSoup |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from urllib2 import urlopen | |
import xml.etree.ElementTree as etree | |
xmldoc = etree.fromstring(urlopen('http://www.speedtest.net/speedtest-config.php','r').read()) | |
print xmldoc.find('client').attrib['ip'] |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from urllib2 import urlopen | |
import xml.etree.ElementTree as etree | |
xmldoc = etree.fromstring(urlopen('http://www.speedtest.net/speedtest-config.php','r').read()) | |
print "ISP: {} / IP: {}".format(xmldoc.find('client').attrib['isp'],xmldoc.find('client').attrib['ip']) |
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
#/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import threading | |
import time | |
class process_one(threading.Thread): | |
def __init__(self, name, number): | |
threading.Thread.__init__(self) |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Documentação oficial https://developers.google.com/api-client-library/python/ | |
# Foi modificado o arquivo sample.py fornecido na pagina do client. | |
import os | |
import sys | |
import argparse | |
import httplib2 | |
from apiclient import discovery |