Skip to content

Instantly share code, notes, and snippets.

View ssplatt's full-sized avatar

Brett Taylor ssplatt

  • Picwell
  • Philadelphia, PA
View GitHub Profile
@ssplatt
ssplatt / pyTorrentFeedDownloader.py
Created October 5, 2015 02:21
add torrent to transmission from rss feed and sort into subdirectory based on file name
#!/usr/bin/env python
import feedparser, subprocess, urllib2, re, os, libtorrent
out_dir_base = ''
logfile = ''
rss=''
feed = feedparser.parse(rss)
log = open( logfile, 'r+' )
log_cont = log.read()
@ssplatt
ssplatt / nflapi.rb
Created November 6, 2016 19:14
NFL API wrapper
class NFLApi
include HTTParty
#wrapper for nfl.com player stats
base_uri 'http://api.fantasy.nfl.com/v1'
def initialize()
end
def get_players_stats(options={})
#player stats
@ssplatt
ssplatt / superalgos-docker-intro.md
Last active August 3, 2025 06:23
An introduction to running Superalgos in Docker. Some Docker best practices included as well.

Superalgos Docker Basics

Introduction

This walkthrough is broken up into to parts: a quick-start guide to running Superalgos with Docker and a deeper, more theoretical dive into containers with the hopes of explaining some of the design decisions.

Superalgos, at its core, is a web application which also means it can be deployed inside a container like many other web applications. One of the leading platforms for operating containers is Docker. Docker can run on many different operatng systems and compute platforms. The containers provide an easy, fast, repeatable, and secure way to deploy and distribute applications. While it doesn't take much experience to run containers or Docker, there are some basics that any user should learn in order to use the technology effectively.

Before getting started, be aware that Docker is not the originally intended method of running the [Superalgos](https://github.com/Superalgos/S

@ssplatt
ssplatt / Dockerfile
Last active August 3, 2025 06:23
Superalgos Docker Development Environment
FROM debian:latest
WORKDIR /app
COPY docker-entrypoint.sh /
RUN apt-get update \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y curl git bash zsh python3 \
&& curl -fsSL https://deb.nodesource.com/setup_17.x | bash - \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs gcc g++ make yarn \
&& chmod a+x /docker-entrypoint.sh
CMD [ "/docker-entrypoint.sh" ]
@ssplatt
ssplatt / docker-compose.yml
Last active June 6, 2025 13:59
docker - prometheus with snmp_exporter, node_exporter, and cadvisor
version: "3"
services:
prometheus:
image: prom/prometheus
volumes:
- /opt/docker-persist/prometheus/data:/prometheus-data
ports:
- 9090:9090
restart: always
command: --config.file=/prometheus-data/prometheus.yml
@ssplatt
ssplatt / packer-vmware-vmx.log
Created July 17, 2024 17:07
packer vmware vmx log
2024/07/17 15:22:51 Starting build run: vmware-vmx.box
2024/07/17 15:22:51 Running builder: vmware-vmx
2024/07/17 15:22:51 [INFO] (telemetry) Starting builder vmware-vmx.box
2024/07/17 15:22:51 packer-plugin-vmware_v1.0.11_x5.0_linux_amd64 plugin: 2024/07/17 15:22:51 VMware app path: /usr/bin/vmware
2024/07/17 15:22:51 packer-plugin-vmware_v1.0.11_x5.0_linux_amd64 plugin: 2024/07/17 15:22:51 vmrun path: /usr/bin/vmrun
2024/07/17 15:22:51 packer-plugin-vmware_v1.0.11_x5.0_linux_amd64 plugin: 2024/07/17 15:22:51 vdisk-manager path: /usr/bin/vmware-vdiskmanager
2024/07/17 15:22:51 packer-plugin-vmware_v1.0.11_x5.0_linux_amd64 plugin: 2024/07/17 15:22:51 Testing against vmware driver *common.Workstation10Driver, Success: false
2024/07/17 15:22:51 packer-plugin-vmware_v1.0.11_x5.0_linux_amd64 plugin: 2024/07/17 15:22:51 skipping *common.Workstation10Driver because it failed with the following error Workstation does not appear to be licensed. Please license it.
2024/07/17 15:22:51 packer-plugin-vmware_v1.0.11_x5.0_

Retweeted

  • @onlyacello
  • @aprakasa3
  • @Fenita79269111
  • @arezyadi
  • @moechyarul
  • @rio85851
  • @bct215
  • @NovarisAji

Keybase proof

I hereby claim:

  • I am ssplatt on github.
  • I am bretttaylor (https://keybase.io/bretttaylor) on keybase.
  • I have a public key ASBNEkHP2WdKwCg5-kQAvWawWhI6ZrIL-Tz2bnV4DUEAZQo

To claim this, I am signing this object:

@ssplatt
ssplatt / docker-compose.yml
Created September 27, 2017 02:06
docker - owncloud with letsencrypt, mariadb, and redis
owncloud:
image: owncloud
links:
- mariadb:mysql
- redis:redis
ports:
- 8081:80
volumes:
- /opt/docker-persist/owncloud/apps:/var/www/html/apps
- /opt/docker-persist/owncloud/config:/var/www/html/config
@ssplatt
ssplatt / elk.json
Last active September 9, 2020 21:18
ELK stack template for Zenoss Control Center
{
"ID": "",
"Name": "ELK Stack",
"Description": "Elasticsearch, Logstash, and Kibana",
"ConfigFiles": null,
"Services": [
{
"Name": "ELK Stack",
"Command": "",
"Description": "Elasticsearch, Logstash, and Kibana",