danger/u/
This thread is permanently archived
asdf
##Trial Janitor:Lain##

| adsf

##Janitor:Lain##

| asdf

##Dev:Lain##

| fdsaf


| dfasdf


| ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⡀⠀⢀⣀⠀⠀⠀⠀⠀⢀⡀
⠀⠀⠀⠀⠀⠀⣀⣀⡀⠀⠀⠀⢀⡠⠔⠒⠉⠁⠀⠀⠀⠀⠀⠀⠀⡇⢀⣠⣴⣾⠟⢱
⠀⠀⠀⠀⠀⡌⠈⠻⣿⣿⣦⣆⠁⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠤⢤⣽⣿⣿⣟⠡⢤⡘
⠀⠀⠀⠀⢰⠠⣒⠉⠙⢿⣿⡿⠷⣀⣠⠴⢤⣀⠀⠀⠈⠁⡀⡴⠿⢿⣿⠋⠀⣔⠁⠇
⠀⢀⡠⠔⡎⠀⢠⣃⣠⠞⠁⠀⠀⠀⠀⠀⡄⠀⠉⠑⠒⡉⠈⠀⠀⠀⠈⠑⠶⡭⠼⡄
⢠⠃⠀⠀⠇


| ⠀⢀⠞⠁⠀⢠⠀⢠⠚⠉⡹⢳⠀⠀⠀⠀⡷⡏⠉⠙⢢⡀⠀⠀⠘⢟⠁
⢸⠀⠀⠀⢸⢠⠃⠀⠀⠀⡎⠀⠀⠀⣼⣁⠘⡀⠀⠀⠀⡇⡈⢢⣀⡀⠁⠀⠀⠀⠈⢆
⡜⠀⠀⠀⢀⠇⠀⠀⠀⢸⠀⢀⡴⠋⢉⠉⠳⣵⡀⠀⠀⣯⠞⢉⡉⠹⣆⠀⠀⠀⠀⠘⡆
⠈⠐⡎⠑⠟⠀⠀⠀⠀⡏⠀⡊⠀⠀⠀⣵⡀⠉⠑⣄⠀⠃⠀⠀⢈⣦⠹⡀⠀⢰⢦⡀⡇
⠀⢰⠀⠀⡀⠀⠀⠀⠀⡇⢠⣧⣤⣤⣾⣿⣷⠀⠀⠀⠁⣦⣤⣴⣾⣿⡆⡇⠀⢸⠀⠙⠇
⠀⢸⣦⣀⡇⠀⠀


| ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⡀⠀⢀⣀⠀⠀⠀⠀⠀⢀⡀
⠀⠀⠀⠀⠀⠀⣀⣀⡀⠀⠀⠀⢀⡠⠔⠒⠉⠁⠀⠀⠀⠀⠀⠀⠀⡇⢀⣠⣴⣾⠟⢱
⠀⠀⠀⠀⠀⡌⠈⠻⣿⣿⣦⣆⠁⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠤⢤⣽⣿⣿⣟⠡⢤⡘
⠀⠀⠀⠀⢰⠠⣒⠉⠙⢿⣿⡿⠷⣀⣠⠴⢤⣀⠀⠀⠈⠁⡀⡴⠿⢿⣿⠋⠀⣔⠁⠇
⠀⢀⡠⠔⡎⠀⢠⣃⣠⠞⠁⠀⠀⠀⠀⠀⡄⠀⠉⠑⠒⡉⠈⠀⠀⠀⠈⠑⠶⡭⠼⡄
⢠⠃⠀⠀⠇


| ⠀⢀⠞⠁⠀⢠⠀⢠⠚⠉⡹⢳⠀⠀⠀⠀⡷⡏⠉⠙⢢⡀⠀⠀⠘⢟⠁
⢸⠀⠀⠀⢸⢠⠃⠀⠀⠀⡎⠀⠀⠀⣼⣁⠘⡀⠀⠀⠀⡇⡈⢢⣀⡀⠁⠀⠀⠀⠈⢆
⡜⠀⠀⠀⢀⠇⠀⠀⠀⢸⠀⢀⡴⠋⢉⠉⠳⣵⡀⠀⠀⣯⠞⢉⡉⠹⣆⠀⠀⠀⠀⠘⡆
⠈⠐⡎⠑⠟⠀⠀⠀⠀⡏⠀⡊⠀⠀⠀⣵⡀⠉⠑⣄⠀⠃⠀⠀⢈⣦⠹⡀⠀⢰⢦⡀⡇
⠀⢰⠀⠀⡀⠀⠀⠀⠀⡇⢠⣧⣤⣤⣾⣿⣷⠀⠀⠀⠁⣦⣤⣴⣾⣿⡆⡇⠀⢸⠀⠙⠇
⠀⢸⣦⣀⡇⠀⠀


| ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⡀⠀⢀⣀⠀⠀⠀⠀⠀⢀⡀
⠀⠀⠀⠀⠀⠀⣀⣀⡀⠀⠀⠀⢀⡠⠔⠒⠉⠁⠀⠀⠀⠀⠀⠀⠀⡇⢀⣠⣴⣾⠟⢱
⠀⠀⠀⠀⠀⡌⠈⠻⣿⣿⣦⣆⠁⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠤⢤⣽⣿⣿⣟⠡⢤⡘
⠀⠀⠀⠀⢰⠠⣒⠉⠙⢿⣿⡿⠷⣀⣠⠴⢤⣀⠀⠀⠈⠁⡀⡴⠿⢿⣿⠋⠀⣔⠁⠇
⠀⢀⡠⠔


| ⡎⠀⢠⣃⣠⠞⠁⠀⠀⠀⠀⠀⡄⠀⠉⠑⠒⡉⠈⠀⠀⠀⠈⠑⠶⡭⠼⡄
⢠⠃⠀⠀⠇⠀⢀⠞⠁⠀⢠⠀⢠⠚⠉⡹⢳⠀⠀⠀⠀⡷⡏⠉⠙⢢⡀⠀⠀⠘⢟⠁
⢸⠀⠀⠀⢸⢠⠃⠀⠀⠀⡎⠀⠀⠀⣼⣁⠘⡀⠀⠀⠀⡇⡈⢢⣀⡀⠁⠀⠀⠀⠈⢆
⡜⠀⠀⠀⢀⠇⠀⠀⠀⢸⠀⢀⡴⠋⢉⠉⠳⣵⡀⠀⠀⣯⠞⢉⡉⠹⣆⠀⠀⠀⠀⠘⡆
⠈⠐⡎⠑⠟⠀⠀


| ⠀⠀⡏⠀⡊⠀⠀⠀⣵⡀⠉⠑⣄⠀⠃⠀⠀⢈⣦⠹⡀⠀⢰⢦⡀⡇
⠀⢰⠀⠀⡀⠀⠀⠀⠀⡇⢠⣧⣤⣤⣾⣿⣷⠀⠀⠀⠁⣦⣤⣴⣾⣿⡆⡇⠀⢸⠀⠙⠇
⠀⢸⣦⣀⡇⠀⠀⠀⠀⡇⢸⣿⣿⣿⣿⡿⣿⠀⠀⠀⠀⣿⣿⣿⣿⣿⡇⡇⠀⢸
⠀⢸⣿⣿⣧⠀⠀⠀⠀⡇⠈⠳⠈⠛⠋⠐⠃⠀⠀⠀⠤⠛⠈⠛⠉⠜⠀⢇⡀⡼
⠀⠀⢿⣿⣿⣆⠀⠀⠀⢸⠀⠀⠀


| ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⡀⠀⢀⣀⠀⠀⠀⠀⠀⢀⡀
⠀⠀⠀⠀⠀⠀⣀⣀⡀⠀⠀⠀⢀⡠⠔⠒⠉⠁⠀⠀⠀⠀⠀⠀⠀⡇⢀⣠⣴⣾⠟⢱
⠀⠀⠀⠀⠀⡌⠈⠻⣿⣿⣦⣆⠁⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠤⢤⣽⣿⣿⣟⠡⢤⡘
⠀⠀⠀⠀⢰⠠⣒⠉⠙⢿⣿⡿⠷⣀⣠⠴⢤⣀⠀⠀⠈⠁⡀⡴⠿⢿⣿⠋⠀⣔⠁⠇
⠀⢀⡠⠔⡎⠀⢠⣃⣠⠞⠁⠀⠀⠀⠀⠀⡄⠀⠉⠑⠒⡉⠈⠀⠀⠀⠈⠑⠶⡭⠼⡄
⢠⠃⠀⠀⠇


| ⠀⢀⠞⠁⠀⢠⠀⢠⠚⠉⡹⢳⠀⠀⠀⠀⡷⡏⠉⠙⢢⡀⠀⠀⠘⢟⠁
⢸⠀⠀⠀⢸⢠⠃⠀⠀⠀⡎⠀⠀⠀⣼⣁⠘⡀⠀⠀⠀⡇⡈⢢⣀⡀⠁⠀⠀⠀⠈⢆
⡜⠀⠀⠀⢀⠇⠀⠀⠀⢸⠀⢀⡴⠋⢉⠉⠳⣵⡀⠀⠀⣯⠞⢉⡉⠹⣆⠀⠀⠀⠀⠘⡆
⠈⠐⡎⠑⠟⠀⠀⠀⠀⡏⠀⡊⠀⠀⠀⣵⡀⠉⠑⣄⠀⠃⠀⠀⢈⣦⠹⡀⠀⢰⢦⡀⡇
⠀⢰⠀⠀⡀⠀⠀⠀⠀⡇⢠⣧⣤⣤⣾⣿⣷⠀⠀⠀⠁⣦⣤⣴⣾⣿⡆⡇⠀⢸⠀⠙⠇
⠀⢸⣦⣀⡇⠀⠀


| import awoo

def sep_chunks(f, size=500):
chunks = []

chnk = f.read(size)

while chnk:
chunks.append(chnk)
chnk = f.read(size)

return chunks

def main(argv):
if len(argv) < 4:
print 'Usage: python %s [awoo board] [awoo thread] [file]' % argv[0]
exit(1)

try:
with open(argv[3], 'r') as f:
chunks = sep_chunks(f)
board = argv[1]
thread = int(argv[2])

i = 1
sz = len(chunks)


|
print 'Chunks to post: %d' % sz

for chunk in chunks:
print 'Posting %d/%d chunks...' % (i, sz)
awoo.post_reply(board, thread, chunk)
i += 1
sleep(2)

f.close()
except awoo.AwooException as e:
print e.message
exit(2)
except ValueError:
print 'Invalid thread "%s".' % argv[2]
exit(3)
except IOError:
print 'Invalid file "%s".' % argv[3]
exi


| t(4)

print 'Successfully posted to thread /%s/%d.' % (board, thread)

if __name__ == '__main__':
from time import sleep
from sys import argv, exit

main(argv)


| import conn
from json import loads as jload

# httplib exceptions won't be caught

CLIENT_HEADERS = {
'Client': 'https://github.com/sugoiuguu/awoo-cli',
'User-Agent': 'https://github.com/sugoiuguu/awoo-cli',
}

class AwooException(Exception):
pass

def post_reply(board, parent, content):
if len(content) > 500:
raise AwooException('Post too long (over 500 characters).')

params = {
'content': content,
'board': board,
'parent': parent
}




| if conn.post('/reply', params, CLIENT_HEADERS).status != 200:
h = conn.cfg['host']
p = conn.cfg['port']
raise AwooException('Failed to post reply to %s:%d' % (h, p))

def new_thread(board, title, comment):
if len(comment) > 500 or len(title) > 500:
raise AwooException('Post too long (over 500 characters).')

params = {
'comment': comment,
'board': board,
'title': title
}

return conn.get_path(conn.post('/post', params, CLIE


| NT_HEADERS).getheader('Location'))

def thread_exists(thread_id):
rsp = conn.head('/api/v2/thread/%d/replies' % thread_id, CLIENT_HEADERS)
return rsp.status == 200

def get_boards():
return eval(conn.get('/api/v2/boards', CLIENT_HEADERS).read())

def get_board_description(board):
rsp = conn.get('/api/v2/board/%s/detail' % board, CLIENT_HEADERS)

if rsp.status != 200:
return None
else:
return jload(rsp.read())

def get_threads(board, page=0):
rsp = conn


| .get_with_params('/api/v2/board/%s' % board, {'page': page}, CLIENT_HEADERS)

if rsp.status != 200:
return None
else:
return jload(rsp.read())

def get_thread_replies(thread_id):
rsp = conn.get('/api/v2/thread/%d/replies' % thread_id, CLIENT_HEADERS)

if rsp.status != 200:
return None
else:
return jload(rsp.read())

def get_thread_metadata(thread_id):
rsp = conn.get('/api/v2/thread/%d/metadata' % thread_id, CLIENT_HEADERS)

if rsp.statu


| import conn
from json import loads as jload

# httplib exceptions won't be caught

CLIENT_HEADERS = {
'Client': 'https://github.com/sugoiuguu/awoo-cli',
'User-Agent': 'https://github.com/sugoiuguu/awoo-cli',
}

class AwooException(Exception):
pass

def post_reply(board, parent, content):
if len(content) > 500:
raise AwooException('Post too long (over 500 characters).')

params = {
'content': content,
'board': board,
'parent': parent
}




| if conn.post('/reply', params, CLIENT_HEADERS).status != 200:
h = conn.cfg['host']
p = conn.cfg['port']
raise AwooException('Failed to post reply to %s:%d' % (h, p))

def new_thread(board, title, comment):
if len(comment) > 500 or len(title) > 500:
raise AwooException('Post too long (over 500 characters).')

params = {
'comment': comment,
'board': board,
'title': title
}

return conn.get_path(conn.post('/post', params, CLIE


| NT_HEADERS).getheader('Location'))

def thread_exists(thread_id):
rsp = conn.head('/api/v2/thread/%d/replies' % thread_id, CLIENT_HEADERS)
return rsp.status == 200

def get_boards():
return eval(conn.get('/api/v2/boards', CLIENT_HEADERS).read())

def get_board_description(board):
rsp = conn.get('/api/v2/board/%s/detail' % board, CLIENT_HEADERS)

if rsp.status != 200:
return None
else:
return jload(rsp.read())

def get_threads(board, page=0):
rsp = conn


| .get_with_params('/api/v2/board/%s' % board, {'page': page}, CLIENT_HEADERS)

if rsp.status != 200:
return None
else:
return jload(rsp.read())

def get_thread_replies(thread_id):
rsp = conn.get('/api/v2/thread/%d/replies' % thread_id, CLIENT_HEADERS)

if rsp.status != 200:
return None
else:
return jload(rsp.read())

def get_thread_metadata(thread_id):
rsp = conn.get('/api/v2/thread/%d/metadata' % thread_id, CLIENT_HEADERS)

if rsp.statu


| aasd


| aasd


| aasd


| aasd

Total number of posts: 28, last modified on: Sun Jan 1 00:00:00 1506438490

This thread is permanently archived