text stringlengths 1 93.6k |
|---|
myopener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cjar))
|
user_agent = 'Mozilla/4.0 (compatible, MSIE 5.5; Windows NT)'
|
headers = {'User-Agent': user_agent}
|
myvalues = [ ('name', myname), ('message', mymsg), ('code', myidcode), ('shout', submitvalue) ]
|
fencode = urllib.urlencode(myvalues)
|
rqdata = urllib2.Request('http://'+realhost+'.shoutmix.com/?'+options.smuser+"=process", fencode, headers)
|
respdata = urllib2.urlopen(rqdata).read()
|
print "string sent"
|
def getClientCode():
|
request = urllib2.Request('http://'+realhost+'.shoutmix.com/?'+options.smuser)
|
response = urllib2.urlopen(request)
|
rspinfo = response.readlines()
|
for line in rspinfo:
|
mymd5code = re.findall("[a-f0-9]"*32,line)[1]
|
return mymd5code
|
print "+-----------------------------------------+"
|
print "| S h o u t M i X _ Tool v0.2 |"
|
print "| |"
|
print "| low1z / forum.darkc0de.com |"
|
print "+-----------------------------------------+\n"
|
parser = OptionParser()
|
parser.add_option("-l", dest='readLatest',action='store_true', default=False, help="Fetch Latest Shout Entries")
|
parser.add_option("-a", dest='readALL',action='store_true', default=False, help="List all Shout Entries")
|
parser.add_option("-p", dest='postShout',action='store_true', default=False, help="Post Shout")
|
parser.add_option("-r", dest='autoRefresh',action='store_true', default=False, help="Auto Refresh Latest")
|
parser.add_option("-s",type='string', dest='smuser',action='store', help="Shoutmix Username")
|
(options, args) = parser.parse_args()
|
if options.readLatest == True:
|
if options.smuser != None:
|
readLatest('1')
|
else:
|
print "-s option is nessesary, it tells the script which shoutmix to query, exiting!"
|
sys.exit(0)
|
if options.readALL == True and options.smuser != None:
|
maxview = raw_input('How Far will we query from here? :')
|
for x in range(0,int(maxview)):
|
readLatest(str(x))
|
if options.postShout == True:
|
postmsg()
|
sys.exit(0)
|
if options.autoRefresh == True:
|
if options.smuser != None:
|
autorf = 1
|
while autorf == 1:
|
readLatest('1')
|
time.sleep(60)
|
os.system(clearscreen)
|
else:
|
print "-s option is nessesary, it tells the script which shoutmix to query, exiting!"
|
sys.exit(0)
|
# <FILESEP>
|
import os
|
import scipy.misc
|
import numpy as np
|
import time
|
from glob import glob
|
#from utils import *
|
#import tensorflow as tf
|
from ops import *
|
from mobilenet.mobilenet_v2_FR import mobilenet_v2_FR_sz224
|
def discriminator(image, is_reuse=False, is_training = True):
|
df_dim = 32
|
d_bn0_0 = batch_norm(name='d_k_bn0_0')
|
d_bn0_1 = batch_norm(name='d_k_bn0_1')
|
d_bn0_2 = batch_norm(name='d_k_bn0_2')
|
d_bn1_0 = batch_norm(name='d_k_bn1_0')
|
d_bn1_1 = batch_norm(name='d_k_bn1_1')
|
d_bn1_2 = batch_norm(name='d_k_bn1_2')
|
d_bn1_3 = batch_norm(name='d_k_bn1_3')
|
d_bn2_0 = batch_norm(name='d_k_bn2_0')
|
d_bn2_1 = batch_norm(name='d_k_bn2_1')
|
d_bn2_2 = batch_norm(name='d_k_bn2_2')
|
d_bn3_0 = batch_norm(name='d_k_bn3_0')
|
d_bn3_1 = batch_norm(name='d_k_bn3_1')
|
d_bn3_2 = batch_norm(name='d_k_bn3_2')
|
d_bn3_3 = batch_norm(name='d_k_bn3_3')
|
d_bn4_0 = batch_norm(name='d_k_bn4_0')
|
d_bn4_1 = batch_norm(name='d_k_bn4_1')
|
d_bn4_2 = batch_norm(name='d_k_bn4_2')
|
d_bn5 = batch_norm(name='d_k_bn5')
|
s16 = int(96/16)
|
k0_0 = image
|
k0_1 = elu(d_bn0_1(conv2d(k0_0, df_dim*1, d_h=1, d_w =1, name='d_k01_conv', reuse = is_reuse), train=is_training, reuse = is_reuse), name='d_k01_prelu')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.