Skip to content

Instantly share code, notes, and snippets.

View xioustic's full-sized avatar

Christian Ferrier xioustic

View GitHub Profile
@xioustic
xioustic / README.md
Last active June 29, 2018 21:25
Benchmarking FFMpeg Piped to VLC for Periscope Streams (HLS) on Windows

What is This

I wanted to pipe ffmpeg output to VLC on Windows which took a little while to figure out. ffmpeg cannot detect what format to use when piping, so I went through some obvious options but it was unclear what was best. So I wrote an extremely naive benchmarking script that would run a common stream for two minutes and then take the CPU/Memory usage data from tasklist /v before killing the two processes.

System Info

system

Proc: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz  3.39GHz
#!/bin/bash
# requires 'sox' package for 'play'
# alarm parameters
ALARM_DURATION=.8
SINE_LOW=300
SINE_HIGH=3000
# target IP to watch
// this script is meant to be pasted into a MyAnimeList Anime page console
// it will accumulate the total number of recommendations for each recommendation
// it will copy this to clipboard to be pasted into another page
// then paste the script again to accumulate that page's recommendations
// and so on...
if (typeof totals === 'undefined') totals = {}
Array.from(document.querySelectorAll('.fs10'))
.map(i=>i.parentNode)
.map(e => {
@xioustic
xioustic / sort_views_per_day.js
Created April 5, 2019 19:40
Stardew Valley Forum Sort By Views per Day
(() => {
let listItemsElem = document.querySelector('.discussionListItems')
let listItems = [...listItemsElem.querySelectorAll('.discussionListItem')]
listItems = listItems.map(listItem => {
let elems = {}
elems.listItem = listItem
elems.date = listItem.querySelector('.DateTime')
elems.replies = listItem.querySelector('.stats .major dd')
elems.views = listItem.querySelector('.stats .minor dd')
"""
This tool calculates hashes for ISO files using 7z's hashing capabilities.
Optionally it prompts the user to verify that the hash is valid (usually by checking Google).
TODO:
- Gather info from user on the ISO file
- Distribution, Version, Architecture, URL Source(s), Hashes (Computed), Notes (Specifically, How Was Verified?)
[s] skip
[l] mark legacy
[d] set Distro
[v] set Version