aly / output.txt

0 likes
0 forks
2 files
Last active 1505425999
A script for getting connection statistics from a Vivid Wireless-supplied Huawei B315s-607. Other models may have a similar feature.
1 $ python3 usage.py
2 Current Connect Time: 23:52:44
3 Current Upload: 930.35MB
4 Current Download: 30.65GB
5 Current Download Rate: 610.00KB/s
6 Current Upload Rate: 6.35MB/s
7 Total Upload: 934.36MB
8 Total Download: 30.67GB
9 Total Connect Time: 01:26:02

aly / yt-pl-remove.js

0 likes
0 forks
1 files
Last active 1497420850
Bookmarklet to remove all videos from a Youtube playlist with a single click. Note: Doesn't work in one go! You'll have to refresh the page and keep clicking until all the videos are gone, or remove the remainder by hand.
1 javascript:for (val of document.getElementsByClassName("pl-video-edit-remove")) { val.click() }

aly / radio.py

0 likes
0 forks
2 files
Last active 1493980561
Generates a shuffled playlist of files in a subdirectory, pops the first item from the playlist, then re-generates a new playlist when the current one is run down. Intended for use with ices
1 #!/usr/bin/env python2
2 from __future__ import print_function
3 import sys
4 from glob import glob
5 from random import shuffle
6 import os.path
7
8 def playdir(directory):
9 def get_playlist():
10 playlist = glob("{}/*.ogg".format(directory))