Skip to content

Instantly share code, notes, and snippets.

@kubepy
kubepy / README.md
Created March 17, 2024 14:18 — forked from gdamjan/README.md
libvirt with ipvtap over wifi

ipvtap over wifi for libvirt

ipvtap is similar to macvtap, but works over wifi too, since it uses the same mac address as the wifi interface.

libvirt doesn't support ipvtap, so we have to configure everything manually. Important data we need before we start:

  • the name of the wifi interface, wlan0 in my case (it's already connected - use NM or networkd+iwd).
  • the mac address of the wifi interface (it must be the same in the guest too)

On the host:

@kubepy
kubepy / steam_console_params.txt
Created March 28, 2024 08:54 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@kubepy
kubepy / imaging.md
Created June 25, 2024 15:09 — forked from mrdaemon/imaging.md
Archiving CDROMs on Linux, A Quick and Dirty Guide

A quick and dirty guide to dumping images of your CDs on Linux

https://untrusted.website/@mr_daemon

This roughly describes the process I use to dump my old CDs to image files while attempting to retain as much of the original data as possible.

This covers mostly data cds such as games and software, and has mixed results with some copy protections, even if you dump subchannel data.

@kubepy
kubepy / instructions.md
Created July 11, 2024 15:37 — forked from joshuakraemer/instructions.md
How to install Windows Media Player 11 to a Proton prefix
  1. Download Windows Media Player 11, 64 bit (wmp11-windowsxp-x64-enu.exe):
    $ cd /tmp/
    $ curl -O https://web.archive.org/web/20190512112704/https://download.microsoft.com/download/3/0/8/3080C52C-2517-43DE-BDB4-B7EAFD88F084/wmp11-windowsxp-x64-enu.exe
  2. Extract the archive:
    $ cabextract wmp11-windowsxp-x64-enu.exe -d wmp11
  3. Run and close the game through Steam. A Proton prefix is created on the first run.
  4. Go to the game's folder inside Steam's compatdata folder:
    $ cd $HOME/.local/share/Steam/steamapps/compatdata/287290
  5. Set prefix to Windows XP: $ WINEPREFIX=$PWD/pfx wine winecfg
#!/bin/bash
# Simple single-command mfplat installation designed for use with protontricks
# https://github.com/Matoking/protontricks
#
# Licensed under CC0 1.0 Universal:
# https://creativecommons.org/publicdomain/zero/1.0/
PYTHON_INSTALLCAB_PATH="/tmp/mfplat-python-installcab";
INSTALLCAB_PY="python2 $PYTHON_INSTALLCAB_PATH/installcab.py";
WINETRICKS_CACHE_PATH=$(cd ~/.cache/winetricks; pwd);
@kubepy
kubepy / wireguard_layer2.md
Created August 11, 2024 04:26 — forked from zOrg1331/wireguard_layer2.md
wireguard, wireguard layer 2, wireguard over TCP

Intro

This note describes how to connect two networks/devices/VMs over public network using Wireguard with Layer 2 support (ARP, IPv6 link-local, etc).

This can also be achieved using SSH and its "tap" tunnel, however, it does not provide the same level of latency and bandwidth as full-blown VPN such as Wireguard.

In addition, this note describes how to tunnel Wireguard over TCP connection. This may be of use if you encounter firewall in-between so, for instance, you can use TCP port 443 only.

Objective

@kubepy
kubepy / upscale_1080p_to_4k_using_ffmpeg.md
Created October 29, 2025 00:57 — forked from luizomf/upscale_1080p_to_4k_using_ffmpeg.md
Upscale 1080p to 4k using ffmpeg

Upscale 1080p to 4k using ffmpeg

Just use the command below:

ffmpeg -i INPUT_FILE \
  -vf scale=3840x2160:flags=lanczos \
  -c:v libx264 \
  -crf 13 \
 -c:a aac -b:a 512k \