Skip to content

Instantly share code, notes, and snippets.

View evilhero's full-sized avatar

evilhero

  • Thunder Bay, ON Canada
View GitHub Profile
@evilhero
evilhero / cmtagmylar.py
Created January 3, 2021 20:14
Mylar2: fix for Post-Processing throwing a cryptography error and screwing up the resulting filename.
# This script was taken almost entirely from Manders2600 Script with the use of the awesome ComicTagger.
# modified very slightly so Mylar just passes it the IssueID for it to do it's magic.
import os, errno
import sys
import re
import glob
import shlex
import platform
@evilhero
evilhero / auth32p.py
Created February 4, 2019 21:00
Fix for 32P CF/Logon/Search issues due to security patching (this is still in testing phase)...
import urllib2
import json
import re
import time
import math
import datetime
import os
import requests
from bs4 import BeautifulSoup
from cookielib import LWPCookieJar
@evilhero
evilhero / PostProcessor.py
Last active February 2, 2019 05:03
PostProcessor.py test - added better date/volume checks to story-arc post-processing runs
# This file is part of Mylar.
#
# Mylar is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Mylar is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# This file is part of Mylar.
# -*- coding: utf-8 -*-
#
# Mylar is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Mylar is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@evilhero
evilhero / helpers.py
Created June 29, 2018 15:12
additional logging for pp-queue problems
# This file is part of Mylar.
# -*- coding: utf-8 -*-
#
# Mylar is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Mylar is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@evilhero
evilhero / authtest.py
Last active March 5, 2018 02:41
stand-alone logon test for 32p
import urllib2
import lib.requests as requests
import pickle
import string
import math
import sys
import re
import time
from cookielib import LWPCookieJar
from decimal import Decimal, ROUND_UP
@evilhero
evilhero / auth32p.py
Created March 4, 2018 16:39
attempted fix for 32p authentication problems with saving empty cookie session files
import urllib2
import re
import time
import math
import datetime
import os
import requests
from bs4 import BeautifulSoup
from cookielib import LWPCookieJar
import cfscrape
@evilhero
evilhero / auth.py
Created January 16, 2018 16:53
reverse proxy with forms
import cherrypy
from cherrypy.lib.static import serve_file
from cgi import escape
import urllib
import mylar
SESSION_KEY = '_cp_username'
def check_credentials(username, password):
"""Verifies credentials for username and password.
@evilhero
evilhero / mylar.default
Last active December 27, 2018 00:26
systemd configuration for Mylar...
## This is an example config file for use with running as a daemon on ubuntu.
## ( you can just make a blank file with the required lines as well )
##
## Edit & Copy this file to /etc/default/mylar
## Otherwise default mylar options are used (all default options are stated below)
##
### ADD THE REQUIRED OPTIONS ON INDIVIDUAL LINES BELOW THE 'END OF' ..(ie. MYLAR_USER=evil)
###
## .:[CONFIG OPTIONS]:.
##
@evilhero
evilhero / rtorrent.py
Created August 22, 2017 20:03
Fix for having blank username/password for rtorrent client (replace mylar/torrent/clients/rtorrent.py with this gist)
import os
import re
from urlparse import urlparse
from lib.rtorrent import RTorrent
import mylar
from mylar import logger, helpers
class TorrentClient(object):