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 oauth2 as oauth | |
import urlparse | |
import time | |
#Kimlik dogrulama yapacagimiz linkedin adresi | |
authorize_url = 'https://api.linkedin.com/uas/oauth/authorize' | |
#Burada LinkedIn'den aldigimiz keylerimizi yaziyoruz. Bu key'leri yukaridaki linkden nasil aldigimizi yazdim. | |
consumer = oauth.Consumer(key="**********", secret="***********") | |
authToken="*********-*****-****-*******-*************" |
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: utf-8 -*- | |
import urllib2 | |
import sys, re, os | |
from google import search | |
#Get keywords from args | |
if len(sys.argv) < 3: | |
print "Usage:\n python googlecmd.py <keywords> <keywords> ..." | |
exit() |
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 sys, getopt | |
import paramiko | |
class sshHandler: | |
def __init__(self, ip, userName, password): | |
self.ip = ip | |
self.userName = userName | |
self.password = password | |
self.connectHostWithSsh() |
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
/*************************************/ | |
// Program Name : Tic Tac Toe | |
// Version : 1.0.5 | |
// Start : 17.06.2010 | |
// Update : 20.01.2011 | |
// Author : egcodes (www.egcodes.blogspot.com) | |
/*************************************/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
from datetime import datetime | |
import time,os | |
pageNo = 1 | |
while pageNo < 10: | |
print "PageNo: %d"%pageNo | |
page = urllib2.urlopen("http://www.zone-h.org/archive/page=%d"%pageNo, timeout=10).read() | |
soup = BeautifulSoup(page) |
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, time | |
import pyscreenshot as ImageGrab | |
while True: | |
screen = ImageGrab.grab() | |
dark = 0 | |
bright = 0 | |
for i in screen.getdata(): | |
if i[0] > 150 and i[1] > 150 and i[2] > 150: |
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 urllib2 | |
for a in range(1, 256): | |
for b in range(1, 256): | |
for c in range(1, 256): | |
for d in range(1, 256): | |
ip = "%d.%d.%d.%d"%(a,b,c,d) | |
buf = "" | |
print 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
import array | |
class ReadFileUsingBit: | |
def __init__(self): | |
fileName = "file.txt" | |
buffer = "" | |
for b in self.readBitByBit(open(fileName, 'r')): | |
buffer += str(b) |
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
package egcodes; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
/** | |
* @author egcodes | |
*/ |
OlderNewer