Skip to content

Instantly share code, notes, and snippets.

View ntropy83's full-sized avatar

ntropy83

View GitHub Profile
ex ()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
@ntropy83
ntropy83 / ubuntu18.04-vfio.md
Created December 19, 2019 07:28 — forked from TomFaulkner/ubuntu18.04-vfio.md
VFIO Setup on Ubuntu 18.04
#!/bin/bash
base="${HOME}/build"
dxvk_src="${base}/dxvk/source"
dxvk_type=${dxvk_type:-"so"}
dxvk_bitness=${dxvk_bitness:-64}
dxvk_build="${base}/dxvk/build_${dxvk_type}_${dxvk_bitness}"
dxvk_branch=${dxvk_branch:-"master"}
dest_dir="${HOME}/mnt/vmshare/dxvk-${dxvk_type}-${dxvk_bitness}"
lib_dir="lib${dxvk_bitness}"
@ntropy83
ntropy83 / mesa_debian_build.sh
Last active September 11, 2019 10:29 — forked from shmerl/mesa_debian_build.sh
mesa_debian_build.sh
#!/bin/bash
# Notes:
#
# 1. Works for tags and specific hash commits too (override mesa_branch variable with needed value).
#
# 2. By default builds for /opt/mesa-<branch> and places the result in ${HOME}/mnt/vmshare/mesa-<branch>
# You can override the build deployment location by setting dest_dir. For example this should put it right away
# in /opt/mesa-<branch>
#