This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Send UPnP message | |
# | |
# @param 1 - host:port/query (optional when UPNP_URL is set) | |
# @param 2 - service#action (optional when UPNP_ACTION is set) | |
# @param 3 - message arguments in XML format (optional) | |
upnp_send() | |
{ | |
# prefer arguments over presets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
import re,os,gtk,gio,magic | |
def geticon(filename): | |
m = magic.open(magic.MAGIC_MIME) | |
m.load() | |
mime = m.file(filename).split(";")[0] | |
mime = gio.content_type_get_icon(mime).get_names() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
MSN ApplicationId patcher for pidgin/bitlbee/whatever | |
(because you're too lazy to rebuild the whole thing.) | |
Usage examples: | |
python patch.py /usr/sbin/bitlbee | |
python patch.py /usr/lib/purple-2/libmsn.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd"> | |
<!-- | |
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more | |
information on creating and using config.xml configration files. | |
--> | |
<server> | |
<ui enabled="yes" show-tooltips="yes"> | |
<accounts enabled="no" session-timeout="30"> | |
<account user="mediatomb" password="mediatomb"/> |
NewerOlder