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/env bash | |
| read -d '' _usage <<EOUSAGE | |
| Usage: $0 tappy|prove | |
| EOUSAGE | |
| git_root="$(git rev-parse --show-toplevel)" | |
| export CMOCKA_MESSAGE_OUTPUT='TAP' | |
| _run_test() { "$1"; } |
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/env python3 | |
| from os.path import splitext as ext | |
| from sys import stderr as STDERR | |
| import requests as r | |
| from time import sleep | |
| playing = None | |
| last_title = None | |
| while True: |
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/env bash | |
| read -d '' _usage <<'EOUSAGE' | |
| USAGE | |
| avc_psp [OPTION] INPUT_DIRECTORY | |
| avc_psp is a script that utilizes FFmpeg to encode AVC that plays on the PSP's | |
| built-in hardware-accelerated XMB media player in a batch. If running one | |
| instance of this script doesn't fully-saturate all of your CPU threads, you can | |
| safely spawn as many instances of avc_psp are required to fully-saturate all of |
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/env bash | |
| die() { (echo "$1" >&2); exit 1 ; } | |
| # Convert ARGV or STDIN to lower-case, respectively. | |
| lc() { tr [:upper:] [:lower:] <<<"$@" ; } | |
| LC() { tr [:upper:] [:lower:] ; } | |
| # Internal vars. | |
| rpm_distros="centos rhel fedora" |
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/env bash | |
| # image creation : | |
| # qemu-img create -f qcow2 -o preallocation=metadata dsk/tenfour.qcow 40G | |
| #qemu-system-x86_64 \ | |
| #qemu-system-x86_64 -monitor vc \ | |
| qemu-system-ppc -monitor stdio \ | |
| -machine type=mac99 \ | |
| -display gtk \ |
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/env bash | |
| # image creation : | |
| # qemu-img create -f qcow2 -o preallocation=metadata dsk/os9+x.qcow 20G | |
| run_vm() { | |
| #qemu-system-x86_64 \ | |
| #qemu-system-x86_64 -monitor vc \ | |
| qemu-system-ppc -monitor stdio \ | |
| -machine type=mac99 \ |
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/env bash | |
| # image creation : | |
| # qemu-img create -f qcow2 -o preallocation=metadata dsk/os9.qcow 20G | |
| run_vm() { | |
| #qemu-system-x86_64 \ | |
| #qemu-system-x86_64 -monitor vc \ | |
| qemu-system-ppc -monitor stdio \ | |
| -machine type=mac99 \ |
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/env bash | |
| # NAME | |
| # record-screen - script for recording your screen with FFmpeg! | |
| # | |
| # SYNOPSIS | |
| # ./record-screen [FILE] | |
| # | |
| # NOTES | |
| # • This script assumes that you are using a recent NVIDIA GPU and that you |
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 | |
| # image creation : | |
| # qemu-img create -f qcow2 -o preallocation=metadata big-dsk/opnsense-test.qcow 128G | |
| # Add the following to your /etc/dnsmasq.conf (sans comments): | |
| #interface=wifi_vmbr0 | |
| #dhcp-range=10.0.0.50,10.0.0.200,300h | |
| ethernet="enp37s0" |