Skip to content

Instantly share code, notes, and snippets.

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)
#!/usr/bin/env python3
'''
Usage:
./rustle.py <input_file> <rustle_range> <frame_count> <output_file>
'''
@postman0
postman0 / Main.hs
Created November 16, 2015 23:21
haskell xep client
{-# 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)