Skip to content

Instantly share code, notes, and snippets.

View fischerdr's full-sized avatar
:octocat:

David R. Fischer fischerdr

:octocat:
View GitHub Profile
@fischerdr
fischerdr / distrobox_fedora_playwright.md
Created June 6, 2025 14:56 — forked from pskopek/distrobox_fedora_playwright.md
Playwright compatible distrobox setup on Fedora 41

Setup on Fedora 41 (or other not supported Linux distro)

Playwright doesn't support Fedora distribution. Following is a description how to run the tests using Ubuntu 22.04 image using distrobox which is fairy supported on various Linux distributions.

Install distrobox and podman packages

sudo dnf install distrobox podman
@fischerdr
fischerdr / pyvenvex.py
Created July 13, 2024 00:34 — forked from vsajip/pyvenvex.py
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve
@fischerdr
fischerdr / ansible-summary.md
Created October 17, 2018 15:15 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@fischerdr
fischerdr / python-paged-ldap-snippet-2.4.py
Created October 16, 2018 21:21 — forked from mattfahrner/python-paged-ldap-snippet-2.4.py
This snippet allows you to do a Python LDAP search with paged controls. The latest version now supports Python "ldap" 2.4. Many thanks to Ilya Rumyantsev for doing the 2.4 legwork.
#! /usr/bin/python
import sys
import ldap
from ldap.controls import SimplePagedResultsControl
from distutils.version import LooseVersion
# Check if we're using the Python "ldap" 2.4 or greater API
LDAP24API = LooseVersion(ldap.__version__) >= LooseVersion('2.4')
@fischerdr
fischerdr / tmux-cheatsheet.markdown
Created October 15, 2018 15:16 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@fischerdr
fischerdr / undercloud-playbook.yaml
Created August 21, 2018 14:56 — forked from nuriel77/undercloud-playbook.yaml
Ansible playbook to initialize new undercloud for tripleo
#
# Ansible playbook to prepare the undercloud machine.
# Will preform all steps until custom steps are to be taken --
# which are: providing a custom undercloud.conf and running
# openstack install undercloud command and so on...
# Root SSH access to the remote machine has to be configured.
# Edit vars as necessary.
#
# If this is the first time you are using Ansible on a host,
@fischerdr
fischerdr / ovs-dump-flows.py
Created July 23, 2018 15:23 — forked from djoreilly/ovs-dump-flows.py
Make ovs-ofctl dump-flows more readable. Remove stats, sort by table and priority, replace port numbers with port names.
#!/usr/bin/python
import sys
import re
import subprocess
if len(sys.argv) != 2:
print "bridge name needed"
sys.exit()
@fischerdr
fischerdr / packer_ansible_qemu_fedora.sh
Created November 6, 2017 22:21 — forked from ruzickap/packer_ansible_qemu_fedora.sh
Install Packer with WinRM communicator / Ansible / Qemu and enable Packer's Winrm communicator in Fedora
dnf install -y ansible qemu-img qemu-kvm wget unzip
cd /tmp
wget https://releases.hashicorp.com/packer/1.1.1/packer_1.1.1_linux_amd64.zip
unzip packer*.zip
# Use packerio as a binary name, because packer binary already exists in fedora : /usr/sbin/packer as part of cracklib-dicts package
mv packer /usr/local/bin/packerio
# Install WinRM communicator for Packer (https://www.packer.io/docs/provisioners/ansible.html#winrm-communicator)