Skip to content

Instantly share code, notes, and snippets.

View stdevPavelmc's full-sized avatar

Pavel Milanes (CO7WT) stdevPavelmc

View GitHub Profile
@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: pavelmc@gmail.com
# Title: tar extraction with progress bar
import io
import os
import tarfile
@stdevPavelmc
stdevPavelmc / opiprime-skywire-fix.sh
Created November 13, 2018 13:11
Fix the issue #80 (https://github.com/skycoin/skywire/issues/80) in skycoin/skywire repo
#!/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.