Skip to content

Instantly share code, notes, and snippets.

View ryanlerch's full-sized avatar

Ryan Lerch ryanlerch

View GitHub Profile
@ryanlerch
ryanlerch / gist:8808189
Last active August 29, 2015 13:56
corebird 0.6 release notes

Corebird is now updated to Version 0.6. This updated version provides the following bugfixes and enhancements.

  • Support for Twitter Lists is now in Corebird. To view and create lists, use the list view in the main window sidebar. To add a user to a list, use the drop-down menu in the top right of a user's profile (near the Follow / Unfollow button).

  • The corebird application icon and sidebar icons are new, updated and shiny.

  • The last tweet that was selected in a list of tweets (e.g. the Main timeline or Replies) is now remembered when switching back and forth between pages.

  • The user can now set the maximum inline media size by Megabytes. To change this setting, tweak the Maximum media size value in the Interface tab in the Corebird settings dialog.

@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):
@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
#!/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 / 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
# -*- 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
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: bodhi-template
objects:
- apiVersion: v1
kind: Service
metadata:
labels:
app: bodhi
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
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
#!/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.
"""