This is my 3rd iteration of this guide, and now it appears that armbian officially supports the orange pi pc2!
- rtorrent
- plex
- flood (or similar rtorrent web interface)
- support external usb3 hd with exfat
# To prevent repository packages from triggering the installation of Snap, | |
# this file forbids snapd from being installed by APT. | |
# For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html | |
Package: snapd | |
Pin: release a=* | |
Pin-Priority: -10 |
# Encode inputfile.tar.gz as a series of video frames | |
# Frames are written to frames/frameNNNN.png | |
from PIL import Image | |
with open('inputfile.tar.gz', 'rb') as f: | |
data = f.read() | |
WIDTH = 120 | |
HEIGHT = 90 | |
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8) |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
#!/bin/bash | |
REGEX="^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*" | |
ID=$1 | |
if [ "$ID" == "" ]; | |
then | |
echo "Syntax $0 <id|url>" | |
exit | |
fi |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: set ts=4 et | |
import json | |
import socket | |
class RpcException(Exception): | |
pass |
import wx | |
APP_EXIT = 1 | |
FILE_SAVE = 2 | |
FILE_OPEN = 3 | |
SHOW_HELP = 4 | |
SHOW_ABOUT = 5 | |
class Example(wx.Frame): |
# The example of a multi-select dialog in a Kodi addon created with PyXBMCt framework. | |
# You will need a checkmark image file. | |
import os | |
import xbmcgui | |
import xbmcaddon | |
import pyxbmct.addonwindow as pyxbmct | |
_addon = xbmcaddon.Addon() | |
_path = _addon.getAddonInfo("path") | |
_check_icon = os.path.join(_path, "check.png") # Don't decode _path to utf-8!!! |