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
mpc --no-status --wait update && | |
mpc --no-status crop && | |
mpc --no-status add '' | |
mpc --no-status random on && | |
mpc --no-status crossfade 10 && | |
mpc --no-status consume on && | |
mpc play && | |
killall mpc |
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
import os | |
import shutil | |
import subprocess | |
path = "/some/path" | |
destpath = "/some/other/path" | |
to_match = "Maybe an Artist name" | |
filenames = next(os.walk(path))[2] |
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
I have this in settings.py: | |
OMNIBUS_CONNECTION_FACTORY = 'server.views.connection_factory' | |
OMNIBUS_AUTHENTICATOR_FACTORY = 'omnibus.factories.userauthenticator_factory' | |
I have this in views.py | |
def connection_factory(auth_class, pubsub): | |
class GeneratedConnection(websocket_connection_factory(auth_class, pubsub)): |
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
I have this in views.py | |
def connection_factory(auth_class, pubsub): | |
class GeneratedConnection(websocket_connection_factory(auth_class, pubsub)): | |
def open_connection(self): | |
log(self.authenticator) | |
return super(GeneratedConnection, self).open_connection() | |
def close_connection(self): |
NewerOlder