Skip to content

Instantly share code, notes, and snippets.

View ryanlerch's full-sized avatar

Ryan Lerch ryanlerch

View GitHub Profile
@ryanlerch
ryanlerch / sample messages.txt
Created July 30, 2021 09:07
samplemessages
http://datagrepper.test:5000/id?id=2a5cdf5c-e831-4af0-8523-108935b44a96&is_raw=true&size=extra-large
{
"i": 0,
"msg_id": "2a5cdf5c-e831-4af0-8523-108935b44a96",
"topic": "org.release-monitoring.stg.anitya.project.version.update",
"timestamp": 1627617763.0,
"certificate": null,
"signature": null,
"username": null,
"crypto": null,
#!/usr/bin/env python3
"""
Check post-receive hook.
This script checks if the post-receive hook in place is a symlink to
the desired post-receive hook defined below in the TARGET variable.
"""
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Read Certmap Rules
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Read Certmap Rules
2020-06-05T09:37:49Z DEBUG Updating managed permissions for certprofile
2020-06-05T09:37:49Z DEBUG Legacy permission Delete Certificate Profile not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Delete Certificate Profile
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Delete Certificate Profile
2020-06-05T09:37:49Z DEBUG Legacy permission Import Certificate Profile not found
2020-06-05T09:37:49Z DEBUG Updating managed permission: System: Import Certificate Profile
2020-06-05T09:37:49Z DEBUG No changes to permission: System: Import Certificate Profile
2020-06-05T09:37:49Z DEBUG Legacy permission Modify Certificate Profile not found
This file has been truncated, but you can view the full file.
2020-06-05T09:37:27Z DEBUG Logging to /var/log/ipaupgrade.log
2020-06-05T09:37:27Z DEBUG ipa-server-upgrade was invoked with arguments [] and options: {'verbose': False, 'quiet': False, 'log_file': None, 'force': False, 'skip_version_check': False}
2020-06-05T09:37:27Z DEBUG IPA version 4.8.6-1.fc31
2020-06-05T09:37:27Z DEBUG importing all plugin modules in ipaserver.plugins...
2020-06-05T09:37:27Z DEBUG importing plugin module ipaserver.plugins.aci
2020-06-05T09:37:27Z DEBUG importing plugin module ipaserver.plugins.automember
2020-06-05T09:37:27Z DEBUG importing plugin module ipaserver.plugins.automount
2020-06-05T09:37:27Z DEBUG importing plugin module ipaserver.plugins.baseldap
2020-06-05T09:37:27Z DEBUG ipaserver.plugins.baseldap is not a valid plugin module
2020-06-05T09:37:27Z DEBUG importing plugin module ipaserver.plugins.baseruserfas
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: bodhi-template
objects:
- apiVersion: v1
kind: Service
metadata:
labels:
app: bodhi
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@ryanlerch
ryanlerch / gist:2ae7746c926fa661696d
Created March 2, 2016 21:48
log for fas issue#146
2016-03-03 07:44:20,070 INFO [waitress:21776][sqlalchemy.engine.base.Engine][_cursor_execute:1192] SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2016-03-03 07:44:20,070 INFO [waitress:21776][sqlalchemy.engine.base.Engine][_cursor_execute:1193] ()
2016-03-03 07:44:20,070 INFO [waitress:21776][sqlalchemy.engine.base.Engine][_cursor_execute:1192] SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2016-03-03 07:44:20,070 INFO [waitress:21776][sqlalchemy.engine.base.Engine][_cursor_execute:1193] ()
2016-03-03 07:44:20,071 INFO [waitress:21776][sqlalchemy.engine.base.Engine][_begin_impl:646] BEGIN (implicit)
2016-03-03 07:44:20,073 INFO [waitress:21776][sqlalchemy.engine.base.Engine][_execute_context:1097] SELECT people.id AS people_id, people.username AS people_username, people.password AS people_password, people.fullname AS people_fullname, people.ircnick AS people_ircnick, people.avatar AS people_avatar, people.avatar_id AS people_avatar_id, people.introduction AS people_introduction
#!/usr/bin/env python
"""
DBus Scripting API: Python Demo 1 (testShapes)
"""
import dbus
def testShapes (doc):
doc.rectangle (0, 0, 100, 100)
doc.ellipse (100, 100, 100, 100)
@ryanlerch
ryanlerch / generate-gif-from-webm
Created May 1, 2014 14:47
Generates an Animated GIF from a webm
#!/bin/bash
echo "$1"
mkdir /tmp/"$1"/
gst-launch-1.0 filesrc location="$1" ! decodebin ! videoconvert ! pngenc ! multifilesink location="/tmp/$1/%04d.png"
echo "Trim files manually, and press enter to generate the GIF"
nautilus /tmp/"$1"/ &
read
echo "Generating GIF..."
convert -delay 5 /tmp/"$1"/*.png /tmp/"$1"/animation.gif
@ryanlerch
ryanlerch / screencaster.py
Last active November 1, 2017 11:35
screencaster.py
## Run the script, select the area you want to screencast, then stop the script by closing the window.
## The video should output into ~/Videos/pants.webm
from gi.repository import Gtk, Gdk
import dbus
import signal
import subprocess
class MyWindow(Gtk.Window):