Skip to content

Instantly share code, notes, and snippets.

View sylvandb's full-sized avatar

sylvandb

  • Polymath Possibilities
  • wherever I be, there I am
View GitHub Profile
@sylvandb
sylvandb / debtree.py
Created June 18, 2020 18:47
debtree to show debian package dependencies, inspired by pactree
#!/usr/bin/env python3
# show deb package dependency tree
import subprocess
INDENT = " "
DPCONT = "│ "
DPMORE = "├─"
DPLAST = "└─"
#DPCONT = " "
Verifying my Blockstack ID is secured with the address 16AX5UjFQfyKJdYsEDkML8L7DDocHiqeJN https://explorer.blockstack.org/address/16AX5UjFQfyKJdYsEDkML8L7DDocHiqeJN
@sylvandb
sylvandb / eap-controller-pi.sh
Last active December 23, 2018 07:00
EAP Controller software on a raspberry pi. Full description: https://medium.com/@arthurgay/eap-controller-software-on-a-raspberry-pi-9e93ecd1672e.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run using sudo or as the root user."
exit 1
fi
echo "EAP Controller on Raspberry Pi"
echo "=============================="
echo "Author: Arthur Gay <[email protected]>"
@sylvandb
sylvandb / vidware
Created November 14, 2018 22:46
Raspberry Pi: Build / Compile ffmpeg and mpv to use hardware acceleration - RPi_Mike, https://www.raspberrypi.org/forums/viewtopic.php?t=199775
#!/bin/bash
# by RPi_Mike, https://www.raspberrypi.org/forums/viewtopic.php?t=199775
##### Vidware_Downloads: My script philosophy is to keep things clean and simple. That's why my first step is to create 3 different folders to keep the main elements of my script completely separate from each other. Before anything can be built, we first have to download 6 files in the form of "stable release tarballs". This is the raw source code my script will use to build the 6 programs. We also need 4 GPU-related files from the Raspberry Pi Foundation's official GitHub site that provide OpenGL ES and EGL support (they allow mpv to "talk" to the Raspberry's VideoCore GPU and thus facilitate hardware acceleration). Finally, we need a "waf" file that will allow us to build mpv. All of this will go inside the "Vidware_Downloads" folder – which we're creating with the mkdir command:
mkdir Vidware_Downloads