Skip to content

Instantly share code, notes, and snippets.

View jamincollins's full-sized avatar

Jamin Collins jamincollins

  • Aviatrix
  • Utah, USA
View GitHub Profile
@jamincollins
jamincollins / ArchLinuxWSL2.md
Created January 25, 2021 00:35 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.

Installing Arch Linux

Problem

Unreal Tournament ('99) 32bit segfaults on some systems.

Systems

  • Lenovo P1 w/ Arch Linux (64bit)
    • mesa 19.1.1
    • multilib
  • QEMU VM w/ Arch Linux (64bit)
@jamincollins
jamincollins / rip_dvd
Created May 23, 2019 22:32 — forked from postmodern/rip_dvd
Script to automate ripping DVDs using Handbrake-CLI and mkvmerge
#!/usr/bin/env bash
#
# Author: postmodern
# Description:
# Rips a DVD to a H.264 MKV file, with chapters and tags. Ignores any
# bad blocks or sectors on the DVD.
# Dependencies:
# * gddrescue
# * handbrake-cli
# * mkvtoolnix
# Thinkpad P1 w/ Quadro P1000
$ lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
01:00.0 VGA compatible controller: NVIDIA Corporation GP107GLM [Quadro P1000 Mobile] (rev a1)
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/mapper/nvme-root rw drm.rnodes=1 net.ifnames=1
$ pacman -Q | grep -P '(video-(intel|nouveau)|^linux |xorg-server )'

Keybase proof

I hereby claim:

  • I am jamincollins on github.
  • I am jamincollins (https://keybase.io/jamincollins) on keybase.
  • I have a public key ASBlaiEnqnQRJumFy17NGzBIPdir8gOeuVPR-35Ys1_BxQo

To claim this, I am signing this object:

#!/bin/bash
check_permissions() {
TGT=${1}
if [ -L ${TGT} ]; then
echo -n "${TGT} -> "
TGT=$(readlink -f ${TGT})
echo "${TGT}"
fi
echo $(stat -c "%A %U:%G" ${TGT}) ${TGT}