Skip to content

Instantly share code, notes, and snippets.

View mcarlton00's full-sized avatar

mcarlton00

  • Ivy Tech Community College
View GitHub Profile
@mcarlton00
mcarlton00 / Jellyfin-api-auth-example.py
Last active April 3, 2024 21:35
Example for authenticating to Jellyfin API from Python
import requests
# Define connection details
server_url = 'http://192.168.0.200:8096'
username = 'User'
password = 'Password'
# Build json payload with auth data
auth_data = {
'username': username,
@mcarlton00
mcarlton00 / jellyfin-kodi-repository.sh
Created April 28, 2019 03:38
Creating Addon Repo for jellyfin-kodi
#!/usr/bin/env bash
# Handles creating a kodi repository for the Jellyfin addon.
# There's 2 main parts involved to a kodi repository:
# A zipped addon for easy installation and a web server
# used for distributing the actual addons in the repo.
# IMPORTANT NOTES:
# 1. The create_repository.py script requires gitpython to
# be installed. It checks for this before doing anything else.
@mcarlton00
mcarlton00 / lastpass-aws-zsh
Created April 26, 2019 12:53
Export AWS Credentials to your local environment from Lastpass
###############################################
# Assumes you have AWS API credentials saved in the "notes" section of a LastPass entry
# Notes:
# AWS_ACCESS_KEY_ID=$KEY_ID
# AWS_SECRET_ACCESS_KEY=$KEY
# AWS_DEFAULT_REGION=us-east-1
#
# Optionally will include the Lastpass entry name in your zsh prompt
###############################################
@mcarlton00
mcarlton00 / keybase.md
Created March 28, 2018 03:04
Proving identity on keybase

Keybase proof

I hereby claim:

  • I am mcarlton00 on github.
  • I am mcarlton00 (https://keybase.io/mcarlton00) on keybase.
  • I have a public key ASDTMY2hEg9wAw_K80jK1bflUkcuOunH2NEC5tCzoZHVQAo

To claim this, I am signing this object: