Skip to content

Instantly share code, notes, and snippets.

View stdevPavelmc's full-sized avatar

Pavel Milanes (CO7WT) stdevPavelmc

View GitHub Profile
#!/bin/sh
######################################################################
# Convert Youtube AV1 video files, Gnome nautilus script
#
# You need ffmped, mencoder and aom video encoder/decoder for AV1 video
#
# Goal here is to convert it as fast as it can with so-so resolution
# and playable in any embedded device, specs follows
#
@stdevPavelmc
stdevPavelmc / extract.py
Created January 9, 2019 21:36
Python3 tarfile extraction with a pprogress callback function
#!/usr/bin/env python3
# A sample code to have a tarfile extraction handle a progress callback
# tarfile must handle gz, bz2 & xz files transparently
# Author: [email protected]
# Title: tar extraction with progress bar
import io
import os
import tarfile
#!/bin/bash
# ** Goal **
# Update the init script of the skywire services running on this pc to
# fix a bug (https://github.com/skycoin/skywire/issues/80)
#
# ** Why? **
# A few time ago the dev team changed the skywire code to make it more
# portable using dynamic paths (learning for the environment, that's
# the right way to doit) But the image was still configured in a static
# way and that break the nodes once you update the skywire code.