Skip to content

Instantly share code, notes, and snippets.

View cvoltz's full-sized avatar

Christopher Voltz cvoltz

View GitHub Profile
@cvoltz
cvoltz / Dockerfile
Last active May 31, 2022 21:46
Running Ansible module tests in a container
# © Copyright 2022 Hewlett Packard Enterprise Development LP
# All rights reserved.
#
# Creates the Docker image used for testing Ansible modules.
FROM rockylinux:8.5
RUN \
dnf module reset -y python36 && \
dnf module enable -y python39 && \
@cvoltz
cvoltz / dropbox.patch
Created August 9, 2019 14:54
Patch to dropbox.py to get the correct PID when running Dropbox via flatpak
--- dropbox.py
+++ dropbox.py
@@ -134,11 +134,12 @@
FatalVisibleError("Platform not supported")
def is_dropbox_running():
- pidfile = os.path.expanduser("~/.dropbox/dropbox.pid")
-
try:
- with open(pidfile, "r") as f: