Skip to content

Instantly share code, notes, and snippets.

View zachsmith's full-sized avatar

Zachary Smith zachsmith

View GitHub Profile
@zachsmith
zachsmith / glxinfo.txt
Created September 18, 2020 15:56
glxinfo.txt
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_multisample, GLX_EXT_buffer_age,
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Emacs (Client)
GenericName=Text Editor
Comment=View and edit files
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=/usr/bin/emacsclient -c -a "" %F
Icon=/usr/share/icons/hicolor/scalable/apps/emacs.svg
@zachsmith
zachsmith / nvidia-power-auto
Last active January 18, 2020 17:07
NVIDIA power control after resume
# /etc/systemd/systemd/nvidia-power-auto.timer
[Unit]
Description=Put NVIDIA dGPU intou 'auto' power mode after resume
After=suspend.target
[Timer]
OnActiveSec=30
RemainAfterElapse=false
@zachsmith
zachsmith / backup-package-list
Last active January 18, 2020 17:08
Backup list of packages installed on Arch
Install the following files in ~/.config/systemd/user to backup a list of packages installed via pacman.
I copy to Nextcloud so I have a remove copy in case I need to reinstall.
---
# backup-package-list.timer
[Unit]
Description=Create a list of installed packages
Documentation=Make a backup of packages installed with pacman right after login and then once per day
@zachsmith
zachsmith / touchscreen
Created May 31, 2019 22:24
Enable/Disable touchscreen on Lenovo X1 Yoga Gen 3
#!/usr/bin/env bash
#
# Simple script to enable or disable touchscreen on
# Lenovo X1 Yoga (Gen. 3) by toggling value in custom
# udev rule. See https://github.com/zachsmith/x1yg3-suspend-to-ram
# for more information.
#
function print_help {
@zachsmith
zachsmith / caps-to-ctrl.reg
Created March 18, 2019 18:42
Caps lock to Control
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@zachsmith
zachsmith / ReadingList.md
Last active December 30, 2015 03:51
Zach Smith's Reading List

In 2015 I began to keep track of books & papers I've read. This list is in reverse chronological order. Items in bold are recommended and are likely books I'll revisit and/or read again someday. I sometimes listen to audio books which are marked with (audio). I tend to listen to them while I walk and drive around and use them as a form of Inspectional Reading.

2015


December