This file contains hidden or 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 string | |
| import random | |
| def gen_key(parts=4, chars_per_part=8): | |
| parts_list = [] | |
| chars = string.ascii_uppercase + string.digits | |
| for _ in range(parts): | |
| parts_list.append("".join(random.choice(chars) for _ in range(chars_per_part))) | 
  
    
      This file contains hidden or 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 asyncio | |
| from sqlalchemy import Table, Column, String, Integer | |
| from sqlalchemy.orm import declarative_base | |
| from sqlalchemy.schema import CreateTable | |
| from sqlalchemy.ext.asyncio import create_async_engine | |
| from sqlalchemy.ext.asyncio import AsyncSession | |
| Base = declarative_base() | 
  
    
      This file contains hidden or 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 subprocess import Popen, PIPE | |
| def docker_checker(): | |
| watchlist = { | |
| 'jackett':[ | |
| 'docker','run', '-d', | |
| '--name=jackett', | |
| '-e','PUID=1000', | |
| '-e','PGID=100', | |
| '-e','TZ=America/Chicago', | 
  
    
      This file contains hidden or 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 json | |
| import os | |
| card_sets = {"Base":"base.json", "Heroes United": "hu.json", "Forever Evil": "fe.json", "Crisis 1": "crisis1.json"} | |
| selected_sets = [] | |
| base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| json_dir = os.path.join(base_dir, 'json') | |
| selected_cards = [] | |
| selected_heroes = [] | |
| selected_villains = [] | 
  
    
      This file contains hidden or 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 re | |
| o = open('logsample.txt','r') | |
| ###apache access log parser | |
| accessmatch = re.compile('(?P<accesslog>(?P<ipaddress>[\d{1,3}\.?]+)( \- \- )?\[(?P<dateaccess>\d{1,2}\/\D{3}\/\d{4}):(?P<timeaccess>[\d{2}:?]+\s-\d+)\]\s(?P<msg>\"(?P<method>[A-Z]+)\s(?P<accesslocation>\S+\/?)\s(?P<version>\D+[\d+.?]+)\"\s(?P<code>\d+)\s(?P<size>\d+))\n)') | |
| ###apache error log parser | |
| errormatch = re.compile('(?P<errorlog>\[(?P<dateerror>\d{1,2}\/\D{3}\/\d{4}|(?P<dayofweek>[A-Za-z]{3})\s(?P<month>[A-Za-z]{3})\s(?P<day>\d+)\s(?P<timeerror>[\d{2}:?]+[\s\-\d+]?)\s(?P<year>\d{4}))\]\s\[(?P<errortype>[a-z]+)\]\s\[?(?P<client>(?P<clienttype>[A-Za-z]+)\s?\W?(?P<clientversion>[\d.?]+)\s?)?\]?\s?(?P<message>[\)\(\-\/\\\~\`\"\\:\-\,\.\w\s?]+))') | |
| errors = [] | |
| access = [] | 
  
    
      This file contains hidden or 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 sys import exit | |
| from random import randint | |
| class Scene(object): | |
| def enter(self): | |
| print("This scene is not yet configured.") | |
| class Engine(object): | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/bin/bash | |
| time=$(date +"%H") | |
| day=$(date +"%a") | |
| echo $time | |
| echo $day | |
| if [ "$day" == "Fri" ] || [ "$day" == "Sat" ] | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ((\w+)://)?(www\.)?(?P<domian>[\w\-\.]+)(:(\d+))?(/.*)? |