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 | |
| import pickle | |
| import os | |
| import subprocess | |
| DELUGE_STATE_PATH = os.path.expandvars("$HOME/.config/deluge/state/") | |
| if __name__ == "__main__": | |
| with open(os.path.join(DELUGE_STATE_PATH, "torrents.state"), 'rb') as f: | |
| tms = pickle.load(f) |
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 python3 | |
| ''' | |
| Usage: | |
| ./rustle.py <input_file> <rustle_range> <frame_count> <output_file> | |
| ''' |
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
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import Control.Monad | |
| import Data.Maybe | |
| import Data.Either | |
| import GHC.Generics | |
| import Network.Socket hiding (send, sendTo, recv, recvFrom) |