Skip to content

Instantly share code, notes, and snippets.

View danielloader's full-sized avatar

Daniel Loader danielloader

  • 03:35 (UTC +01:00)
View GitHub Profile
#!/bin/bash
#env > /docker/media/log
fullpath="$sonarr_series_path"
rootpath=$1
bwlimit=$2
amzepath=$(echo "$fullpath" | sed "s@$rootpath@@")
#amzepath=$(printf '%q\n' "$sedpath")
version: '2'
services:
quasselcore:
environment:
- PGID=999
- PUID=999
image: 'linuxserver/quassel-core:latest'
ports:
- '4242:4242'
FROM traefik
ADD traefik.toml .
EXPOSE 80
EXPOSE 8080
EXPOSE 443
@danielloader
danielloader / docker-compose.yml
Last active September 21, 2019 12:35
docker-compose.yml
version: '3'
services:
traefik:
image: traefik
ports:
- 80:80
- 8080:8080 # optional for the status board, don't expose to internet
- 443:443
volumes:
@danielloader
danielloader / cloud-init
Created September 21, 2019 12:21
cloud-init
#cloud-config
repo_update: true
repo_upgrade: all
write_files:
- encoding: b64
owner: root
content: |
"${docker_compose_file}"
path: "/tmp/docker-compose.yml"
import object_finder
import unittest
class Test(unittest.TestCase):
def test_technical_skills_test_1(self):
result = object_finder.process_dict(
{"a": {"b": {"c": "d"}}}, "a/b/c"
)
self.assertEqual(result, "d")
import sys
import argparse
import urllib.request
import urllib.parse
import json
from collections.abc import Mapping
from pprint import pprint
import os.path
global dict_endpoints
This file has been truncated, but you can view the full file.
google.com
www.google.com
microsoft.com
data.microsoft.com
netflix.com
events.data.microsoft.com
cloud.netflix.com
prod.cloud.netflix.com
ftl.netflix.com
prod.ftl.netflix.com
This file has been truncated, but you can view the full file.
google.com,A
www.google.com,A
microsoft.com,A
data.microsoft.com,A
netflix.com,A
events.data.microsoft.com,A
cloud.netflix.com,A
prod.cloud.netflix.com,A
ftl.netflix.com,A
prod.ftl.netflix.com,A