Skip to content

Instantly share code, notes, and snippets.

Avatar

Jamin Collins jamincollins

View GitHub Profile
@jamincollins
jamincollins / ArchLinuxWSL2.md
Created Jan 25, 2021 — forked from ld100/ArchLinuxWSL2.md
Steps for setting up Arch Linux on WSL2
View ArchLinuxWSL2.md

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

View ut99.md

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 — forked from postmodern/rip_dvd
Script to automate ripping DVDs using Handbrake-CLI and mkvmerge
View rip_dvd
#!/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
View Lenovo P1 DRI_PRIME issue
# 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 )'
View keybase.md

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:

View check-path-permissions
#!/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}