Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mborho on github.
* I am mbo (https://keybase.io/mbo) on keybase.
* I have a public key whose fingerprint is 76A0 1B14 89D6 BE6C DD44 BD06 47C6 23E3 521A 083D
To claim this, I am signing this object:
#!/usr/bin/env python
import asyncio
import logging
from queue import Queue, Empty
from sleekxmpp import ClientXMPP
from sleekxmpp.xmlstream import scheduler
from sleekxmpp.exceptions import IqError, IqTimeout
# logging
logging.basicConfig(level=logging.INFO,
@mborho
mborho / gist:5991048
Last active December 19, 2015 17:28
notes - trying to install in a docker container
http://launchpadlibrarian.net/109844073/open-iscsi_2.0.873-3ubuntu1_amd64.deb
http://launchpadlibrarian.net/119939981/open-iscsi-utils_2.0.873-3ubuntu5_all.deb
https://www.nesono.com/node/368
echo 'deb http://archive.ubuntu.com/ubuntu precise main universe multiverse' > /etc/apt/sources.list
# Slight hack needed to get MySQL to start
@mborho
mborho / gist:5353920
Last active April 21, 2017 13:43
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@mborho
mborho / gist:3440626
Created August 23, 2012 19:29
delegate component com.nokia.extras MoreIndicator
Component {
id: listsDelegate
Rectangle {
width:parent.width
height: childrenRect.height+10
// border.color: "darkgrey" //lightgrey"
color: "black"
Column {
id:rowColumn
width:parent.width-30
@mborho
mborho / gist:2601766
Created May 5, 2012 11:42
qcs wrapper
function worker(msg) {
console.log('###### WORKER #######');
console.log(msg.MessageId+' #### ');
console.log(msg.Body);
msg.del(function(error) {
// Message deletion never results in an error. If a message is successfully
// deleted, it will simply never appear in the queue again.
console.log('Message deleted!');
// _receive(cb);
@mborho
mborho / gist:1695535
Created January 28, 2012 19:37
package.json test
{
"author": "Martin Borho <martin@borho.net> (http://borho.net)",
"name": "silozippr",
"description": "SiloZippr aims to be a push-based realtime newsreader.",
"version": "0.1.0",
"homepage": "https://github.com/mborho/silozippr",
"repository": {
"type": "git",
"url": "git://github.com/mborho/silozippr.git"
},