This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
modprobe vfio-pci | |
for dev in "$@"; do | |
if [ -e /sys/bus/pci/drivers/vfio-pci/$dev ]; then | |
continue | |
fi | |
vendor=$(cat /sys/bus/pci/devices/$dev/vendor) | |
device=$(cat /sys/bus/pci/devices/$dev/device) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os, re, logging | |
from glob import glob | |
from pipes import quote | |
from shutil import rmtree | |
SOURCES = ('/mnt/1.5T/,movie/','/mnt/1.5T/,tv/',) | |
LOGFILE = '/home/keizie/.brag/autounrar.log' | |
EXECUTE_RAR = 'unrar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from itertools import combinations | |
from pprint import pprint | |
bundle = [51,49,5] | |
candidates = [bundle] | |
loop = True | |
loop_count = 0 | |
largest_member = [] |
NewerOlder