Skip to content

Instantly share code, notes, and snippets.

View jamincollins's full-sized avatar

Jamin Collins jamincollins

  • Aviatrix
  • Utah, USA
View GitHub Profile
#!/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}

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:

# 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 )'
@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

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 / 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

#!/usr/bin/env python3
import RPi.GPIO as GPIO
import sys
import time
class Fan:
rpm = 0
#!/usr/bin/env python3
import RPi.GPIO as GPIO
import os
import socket
import sys
import time
from threading import Thread
-- BEGIN SHA512/256(`${alphabetize(name)}@${order(version)}`) --
@alloc/quick-lru@5.2.0
@ampproject/remapping@2.3.0
@esbuild/aix-ppc64@0.20.2
@esbuild/android-arm@0.20.2
@esbuild/android-arm64@0.20.2
@esbuild/android-x64@0.20.2
@esbuild/darwin-arm64@0.20.2
@esbuild/darwin-x64@0.20.2
bun install v1.0.35 (940448d6)
Loaded 260 hoisted_dependencies
Loaded 353 resolutions
Loaded 353 dependencies
Loaded 14 extern_strings
Loaded 19433 string_bytes
Clean lockfile: 253 packages - 253 packages in 1.9ms
error: failed to enqueue lifecycle scripts for @sveltejs/kit: ENOENT