Skip to content

Instantly share code, notes, and snippets.

Ryan Lerch ryanlerch

Block or report user

Report or block ryanlerch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bodhi-openshift.yaml
kind: Template
name: bodhi-template
- apiVersion: v1
kind: Service
app: bodhi
View bodhi-Vagrantfile
# -*- 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
View gist:2ae7746c926fa661696d
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 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
View gist:0f275bfacd91d666cb19
#!/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 / generate-gif-from-webm
Created May 1, 2014
Generates an Animated GIF from a webm
View generate-gif-from-webm
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"/ &
echo "Generating GIF..."
convert -delay 5 /tmp/"$1"/*.png /tmp/"$1"/animation.gif
ryanlerch /
Last active Nov 1, 2017
## 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 / gist:8808189
Last active Aug 29, 2015
corebird 0.6 release notes
View gist:8808189

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.

You can’t perform that action at this time.