Skip to content

Instantly share code, notes, and snippets.

@tasket
tasket / wyng-extract.sh
Last active Mar 5, 2020
Simple disk image extractor script for Wyng archives.
View wyng-extract.sh
#!/usr/bin/env bash
# wyng-extract.sh - Simple disk image extractor for Wyng archives.
# Christopher Laprise, tasket@github.com
set -eo pipefail
LC_ALL=C
if [ "$1" = "-c" ] & [ -d "$2" ]; then
@tasket
tasket / qvm-port-forward.sh
Created Jun 22, 2018 — forked from jpouellet/qvm-port-forward.sh
Forwards a specified port to a specified VM, auto-detecting its NetVM chain. (Qubes OS)
View qvm-port-forward.sh
#!/bin/sh
# Inspired by https://gist.github.com/daktak/f887352d564b54f9e529404cc0eb60d5
ip() { qvm-ls --raw-data ip -- "$1"; }
netvm() { qvm-prefs -g -- "$1" netvm; }
forward() {
local from_domain=$1
local to_domain=$2
You can’t perform that action at this time.