Skip to content

Instantly share code, notes, and snippets.

@elebow
elebow / socat-share-vim.md
Last active March 13, 2020 00:29
Use socat(1) and dtach(1) to share a single vim session among multiple remote hosts. Great for pair programming.
  1. Install socat and dtach on all hosts, and openssl on at least one host. And vim on the server!

  2. Generate two self-signed keypairs. You can accept all default values.

    for h in server client; do
    openssl req -newkey rsa:2048 -nodes -keyout $h-key.pem -x509 -days 365 -out $h-cert.pem
    done
@JonnyWong16
JonnyWong16 / sync_playlists_to_users.py
Last active April 20, 2024 12:14
Sync Plex playlists to shared users.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi
from plexapi.exceptions import NotFound
from plexapi.server import PlexServer