This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true; do echo -e "HTTP/1.1 200 OK\n\n$($1)" | nc -l -k -p 8080 -q 1; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -X POST --unix-socket /var/run/docker.sock -H "Content-Type: application/json" "http:/v1.41/containers/create?name=pmm-temp" -d '{ | |
"Image": "meisnate12/plex-meta-manager", | |
"Cmd": ["--overlays", "--run", "-ig", "--ignore-schedules", "--no-missing"], | |
"HostConfig": { | |
"Binds": ["/root/docker/etc/plexmetamanager:/config"], | |
"AutoRemove": true | |
} | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from nsub import log_my, savetofile | |
from common import * | |
import requests | |
import re | |
try: | |
import urllib.request | |
except: | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/docker/daemon.json <- where to save a file, remove that line after that | |
{ | |
"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"] | |
} |
OlderNewer