Moved to repo: https://github.com/Red5d/docker-autocompose
Also available in PyPi: https://pypi.python.org/pypi/docker-autocompose
pip install docker-autocompose
| """ | |
| json2toon — Convert JSON data to TOON (Token-Oriented Object Notation) format. | |
| TOON is a compact, human-readable encoding of the JSON data model that | |
| minimizes tokens for LLM prompts. It combines YAML-like indentation for | |
| nested objects with CSV-like tabular layout for uniform arrays. | |
| Spec: https://github.com/toon-format/spec/blob/main/SPEC.md (v3.0) | |
| """ |
| # /usr/bin/env python | |
| # | |
| # Author: Red5d | |
| # | |
| # Description: Extract and run OCR on subtitles from a PGS-format .sup file. | |
| # | |
| # Example Usage: python sup2srt.py bd_subtitles.sup bd_subtitles.srt | |
| # | |
| # Dependencies: | |
| # - pytesseract |
| version: "3" | |
| services: | |
| homeassistant: | |
| image: homeassistant/home-assistant | |
| ports: | |
| - "8123:8123" | |
| - "3218:3218" | |
| volumes: | |
| - /opt/docker/home-assistant:/config | |
| - /etc/localtime:/etc/localtime:ro |
Moved to repo: https://github.com/Red5d/docker-autocompose
Also available in PyPi: https://pypi.python.org/pypi/docker-autocompose
pip install docker-autocompose
| #! /usr/bin/env python | |
| # Example: python ghfeed-updates.py vinta/awesome-python | |
| import sys, re, requests | |
| repo = sys.argv[1] | |
| token="<personal GitHub token here>" | |
| if token == "<personal GitHub token here>": | |
| print "Add your personal GitHub token to the 'token=' line in the script." |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from docker import Client | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf8') | |
| c = Client(base_url='unix://var/run/docker.sock') |
| #! /usr/bin/env python | |
| # Author: Red5d | |
| # Client tool for the http://memegen.link/ service. | |
| # Run with no parameters for help. | |
| import json, sys, urllib | |
| if len(sys.argv) < 2: |
| #! /usr/bin/env python | |
| # Author: Red5d | |
| # Date: 8/11/2014 | |
| # | |
| # Description: Ansible module to manage the PBIS config. | |
| # | |
| # Examples: | |
| # | |
| # Get all current PBIS config settings and put them into the pbis_output variable: |
I hereby claim:
To claim this, I am signing this object:
| #! /bin/bash | |
| # Author: Red5d | |
| # Commands adapted from: https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority | |
| if [ $(which openssl) -eq "" ];then | |
| echo "Can't find openssl command. Exiting..." | |
| exit 1 | |
| fi |