aly / output.txt
0 likes
0 forks
2 files
Last active
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 / textadventure_sample.py
0 likes
0 forks
1 files
Last active
I'd like to make a text adventure library some day
| 1 | """Welcome to py-textadventure! |
| 2 | |
| 3 | This is a library intended to make writing text adventures really simple. |
| 4 | |
| 5 | Below is a sample text adventure that mirrors the first few areas of Zork with a couple small changes. |
| 6 | |
| 7 | I hope you enjoy using this library!""" |
| 8 | |
| 9 | from textadventure import Room, Object, Item |
| 10 | import random |
aly / lightcycle.py
0 likes
0 forks
1 files
Last active
A script to solve the Light Cycle module in Keep Talking
| 1 | from string import ascii_uppercase, digits |
| 2 | |
| 3 | matrix = [ |
| 4 | ['5/B', 'B/R', 'M/G', 'Y/5', '4/1', 'R/W', '6/4', '1/6', '2/3', '3/M', 'G/Y', 'W/2'], #A |
| 5 | ['2/R', '6/M', '4/3', '5/B', 'R/5', 'Y/2', '1/G', 'M/Y', 'W/6', '3/4', 'B/W', 'G/1'], #B |
| 6 | ['M/Y', '2/4', 'Y/R', '3/5', 'W/2', 'G/B', '1/W', 'R/3', '5/G', '4/6', 'B/M', '6/1'], #C |
| 7 | ['5/6', '6/3', '1/4', 'M/2', 'R/Y', '2/M', 'W/R', 'B/G', 'Y/W', '3/B', 'G/1', '4/5'], #D |
| 8 | ['B/R', 'W/2', '2/3', '1/4', 'M/B', '5/6', 'Y/W', 'R/M', 'G/Y', '6/G', '3/5', '4/1'], #E |
| 9 | ['R/Y', '2/G', '1/M', 'Y/5', '5/R', 'W/B', '6/3', 'B/1', 'M/4', 'G/6', '3/2', '4/W'], #F |
| 10 | ['Y/1', '5/4', '2/W', 'R/Y', '1/R', 'B/3', '6/G', 'G/6', 'M/B', 'W/5', '4/2', '3/M'], #G |
aly / yt-pl-remove.js
0 likes
0 forks
1 files
Last active
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 / song2video.py
0 likes
0 forks
1 files
Last active
A script to generate videos from a directory of songs
| 1 | #!/usr/bin/env python3 |
| 2 | # A script to generate videos for MP3s |
| 3 | from moviepy.editor import * |
| 4 | import numpy as np |
| 5 | from PIL import Image |
| 6 | from glob import glob |
| 7 | from mutagen.mp3 import MP3 |
| 8 | from io import BytesIO |
| 9 | |
| 10 | #points |
aly / howl-fm_download.js
0 likes
0 forks
2 files
Last active
howl.fm playlist downloader. I just don't like paywalls, sorry
| 1 | a = document.getElementsByTagName("a"); |
| 2 | out = ""; |
| 3 | for (var i=0;i<a.length;i++) { |
| 4 | if (a[i].hasAttribute("data-stream-url")) { |
| 5 | out = out + " '" + a[i].getAttribute("data-stream-url") + "'" |
| 6 | } |
| 7 | }; |
| 8 | prompt("urls:", out) |
| 9 | //then use that with something like wget. you'll get a bunch of long filenames. use the below script to fix the filenames |
aly / localport.js
0 likes
0 forks
2 files
Last active
A bookmarklet to redirect to a web service running on the lan interface
| 1 | // I wanted a bookmarklet to take me to the local instance of Plex running on my desktop, so Chromecast would function correctly |
| 2 | // (if I used localhost it wouldn't send the correct uri) |
| 3 | // For this I had to get the local ethernet interface IP |
| 4 | // I initiate a connection to 0.0.0.0, then use the data on the connection object to get the interface IP used for that connection |
| 5 | // May not work on the most popular web browser |
| 6 | var path = prompt("Enter uri (e.g http://{}:32400/web)"); |
| 7 | // var path = "http://{}:32400/web"; |
| 8 | var RTCPeerConnection = window.webkitRTCPeerConnection || window.mozRTCPeerConnection; |
| 9 | RTCPeerConnection && function() { |
| 10 | function c(ip) { |