Skip to content

Instantly share code, notes, and snippets.

View tlaurion's full-sized avatar

Thierry Laurion tlaurion

View GitHub Profile
@daktak
daktak / ffmpeg_record_screen.sh
Last active December 22, 2023 20:34
Ffmpeg record selected window. Written for Qubes-OS
#!/bin/bash
#pass in alsa or pulse to record from sound device
IFS=$
#omit the top pixels to hide tabs and address bar
FIREFOX_Y_BUFFER=94
FIREFOX_X_BUFFER=2
if [[ ${1} =~ alsa ]] ; then
sound="-f alsa -ac 2 -i hw:0"
fi
if [[ ${1} =~ pulse ]] ; then
@Joeviocoe
Joeviocoe / qvm-portfwd-iptables
Last active June 16, 2021 11:40 — forked from daktak/qvm-exposeip.sh
Qubes-os port forwarding to allow external connections
#!/bin/sh
# Inspired by https://gist.github.com/daktak/f887352d564b54f9e529404cc0eb60d5
# Inspired by https://gist.github.com/jpouellet/d8cd0eb8589a5b9bf0c53a28fc530369
ip() { qvm-prefs -g -- "$1" ip; }
netvm() { qvm-prefs -g -- "$1" netvm; }
forward() {
local from_domain=$1
local to_domain=$2
@xahare
xahare / Docker-on-qubes.md
Last active October 16, 2024 15:30
How to run docker on Qubes-OS
@daktak
daktak / qvm-exposeip.sh
Last active June 17, 2022 02:59
Qubes-os port forwarding to allow external connections
#!/bin/sh
#4.0
#ip() { qvm-ls --raw-data ip -- "$1"; }
##4.1
ip() { qvm-ls --raw-data --fields ip -- "$1"; }
netvm() { qvm-prefs -g -- "$1" netvm; }
forward() {
local from_domain=$1
local to_domain=$2