Skip to content

Instantly share code, notes, and snippets.

@caspian311
caspian311 / client.py
Created January 30, 2013 19:36
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
class Client():
def __init__(self):
bus = dbus.SessionBus()
service = bus.get_object('com.example.service', "/com/example/service")
self._message = service.get_dbus_method('get_message', 'com.example.service.Message')
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')
@caspian311
caspian311 / build.sh
Created September 25, 2012 12:34
self-extracting shell script
#!/bin/bash -ex
tar zcvf app.tgz ./app
cp installer-script-only.sh installer.sh
cat app.tgz >> installer.sh
@caspian311
caspian311 / non-rails-cucumber-howto.txt
Created July 11, 2011 16:48
How to setup cucumber for non-rails web apps
-------------------------------------------------------------------------------
RVM Install
-------------------------------------------------------------------------------
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
$ source .bash_profile