Skip to content

Instantly share code, notes, and snippets.

View rustymyers's full-sized avatar
🤓
Working from home

Rusty Myers rustymyers

🤓
Working from home
View GitHub Profile
#!python3
#--------------------------------------------------------------------------------------------------
#-- Download Star Wars Images
#--------------------------------------------------------------------------------------------------
# Program : getURLImages.py
# To Complie : n/a
#
# Purpose : Download images from a web page.
# Speifically https://www.starwars.com/news/star-wars-backgrounds
#
#!/usr/bin/python3
"""#------------------------------------------------------------------------------------------------
#-- Movie Tag Updater for Radarr
#--------------------------------------------------------------------------------------------------
# Program : Radarr_tagarr
# To Complie : n/a
#
# Purpose : Add tags and profiles to radarr movies. Tags are retreived from Radarr.
# Say Y to add a tag. N to skip a tag. N for all tags will remove all tags.
#
#!/usr/bin/python
import os
import urllib2
import base64
import socket
import logging
import ConfigParser
import xml.etree.ElementTree as ET
from flask import Flask, request, render_template, session, redirect, url_for, escape
#!/usr/bin/python
#--------------------------------------------------------------------------------------------------
#-- NAME
#--------------------------------------------------------------------------------------------------
# Program : NAME
# To Complie : n/a
#
# Purpose :
#
# Called By :
action parameter query "AUTOCAD17_SERIAL_NUMBER" with description "Autodesk AutoCAD 2017 Serial Number:" and with default value ""
action parameter query "LICENSE_SERVER17" with description "Autodesk AutoCAD 2017 License Server (FQDN):" and with default value ""
action parameter query "LICENSE_SERVER_PORT17" with description "Autodesk AutoCAD 2017 License Server Port:" and with default value ""
continue if {parameter "AUTOCAD17_SERIAL_NUMBER" is not "" AND parameter "LICENSE_SERVER17" is not "" AND parameter "LICENSE_SERVER_PORT17" is not ""}
// Installer Configuration File
createfile until END_OF_FILE
{parameter "AUTOCAD17_SERIAL_NUMBER"}
#!/bin/bash
#1.4
#--------------------------------------------------------------------------------------------------
#-- psuDeleteHomeDirs
#--------------------------------------------------------------------------------------------------
# Program : psuDeleteHomeDirs
# To Complie : n/a
#
# Purpose : Delete home directories
#
#!/usr/bin/python
#--------------------------------------------------------------------------------------------------
#-- Series Tag Updater for Sonarr
#--------------------------------------------------------------------------------------------------
# Program : SonarrTagarr
# To Complie : n/a
#
# Purpose : Add tags to Sonarr series. Tags are retreived from Sonarr.
# Say Y to add a tag. N to skip a tag. N for all tags will remove all tags.
#
#!/usr/bin/python3
"""
#------------------------------------------------------------------------------------------------
#-- Movie Tag Updater for Radarr
#--------------------------------------------------------------------------------------------------
# Program : Radarr_tagarr
# To Complie : n/a
#
# Purpose : Add tags and profiles to radarr movies. Tags are retreived from Radarr.
# Say Y to add a tag. N to skip a tag. N for all tags will remove all tags.
#!/usr/bin/python
# import ldap as l
from flask import Flask, g, request, session, redirect, url_for
from flask_simpleldap import LDAP
app = Flask(__name__)
app.secret_key = "welfhwdlhwdlfhwelfhwlehfwlehfelwehflwefwlehflwefhlwefhlewjfhwelfjhweflhweflhwel"
app.debug = True
# ldap config
app.config['LDAP_HOST'] = 'DOMAIN.EXAMPLE.COM'
#!/usr/bin/python
# coding=utf-8
from flask import Flask, request, Response
from functools import wraps
from flask.ext.ldap import LDAP
app = Flask(__name__)
ldap = LDAP(app)
app.debug = True