This file contains hidden or 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
from __future__ import print_function | |
from pprint import pprint as print | |
import pip | |
def get_all_package_dependencies(): | |
"""Return dictionary of installed packages to list of package dependencies.""" | |
return { | |
dist.key: [(r.key, r.specs) for r in dist.requires()] | |
for dist in pip.get_installed_distributions() | |
} |
This file contains hidden or 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
#!/bin/bash | |
vol_perc=$(amixer get Master | egrep -o '[0-9]+%' | head -n 1) | |
mute=$(amixer get Master | egrep -o '\[off\]' | head -n 1) | |
amixer -q set Master 100% unmute | |
mplayer buzzer.ogg | |
amixer -q set Master $vol_perc $(if [ ! -z $mute ]; then echo 'mute'; fi) |
This file contains hidden or 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
#!/bin/sh | |
# The user that will run the server | |
CS_USER=hlds | |
# Leave this alone. | |
NAME=srcds | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin |
This file contains hidden or 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 python2 | |
from sqlalchemy import create_engine | |
from knowledge.model import Fact, Entity, DBSession, init_model, metadata | |
def inject_knowledge(): | |
knowledge = DBSession | |
monster = Entity(u'Monster') | |
fairy = Entity(u'Fairy') | |
rjbean = Entity(u'rjbean') | |
monster[u'color'] = u'Green' |
This file contains hidden or 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
@-moz-document domain('wiki.sugarlabs.org') { | |
a { | |
cursor: pointer !important; | |
} | |
} |
NewerOlder