Skip to content

Instantly share code, notes, and snippets.

View gunslingerfry's full-sized avatar

Matthew Fry gunslingerfry

View GitHub Profile
❯ cargo build --release
Compiling tabnine_chat v0.1.0 (/home/matthew/.local/share/nvim/site/pack/packer/start/tabnine-nvim/chat)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/matthew/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/matthew/.config/nvm/versions/node/v19.4.0/bin:/home/matthew/.pyenv/shims:/home/matthew/.pyenv/bin:/home/matthew/.pyenv/plugins/pyenv-virtualenv/shims:/home/matthew/.zinit/polaris/bin:/usr/local/alternatives:/home/matthew/.pyenv/bin:/home/matthew/.pyenv/bin:/home/matthew/.local/bin:/home/matthew/bin:/usr/local/alternatives:/home/matthew/.pyenv/bin:/home/matthew/.pyenv/bin:/home/matthew/.local/bin:/home/matthew/bin:/home/matthew/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/usr/lib/rustup/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcezJk03/symbols.o" "/home/matthew/.local/share/nvim/site/pack/packer/start/tabnine-
@gunslingerfry
gunslingerfry / install-instructions.md
Created October 3, 2022 20:35 — forked from crispyricepc/install-instructions.md
wlprop - An xprop clone for wlroots based compositors

Dependencies

Make sure you have installed the following commands:

  • swaymsg
  • jq
  • slurp
  • awk

Installation

@gunslingerfry
gunslingerfry / handler.sh
Created July 25, 2021 07:44
Updated /etc/acpi/handler.sh file for acpi event handling of function layer keys
#!/bin/bash
# Default acpi script that takes an entry for all actions
case "$1" in
button/power)
case "$2" in
PBTN|PWRF)
logger 'PowerButton pressed'
;;
*)
@gunslingerfry
gunslingerfry / notes.md
Last active July 25, 2021 07:51
Thinkpad X13 + Manjaro + i3 Notes

Showing sensors:

  • lm-sensors does not work
  • enable tlp
    • $ sudo systemctl tlp enable --now
  • install acpi_call-dkms, linux<kernel_version>-tp_smapi
  • k10 is /sys/class/hwmon3
  • nvme is /sys/class/hwmon0

Remapping caps lock:

  • setxkbmap options will not work unless you specify the model
@gunslingerfry
gunslingerfry / kitty-build.sh
Created May 15, 2018 00:14
Build script for Kitty Terminal in Xenial
#!/bin/bash
# harfbuzz
git clone https://github.com/harfbuzz/harfbuzz.git
cd harfbuzz
./autogen.sh
make -j8
cd ..
# libpng16
if ! [ -e libpng-1.6.34.tar.xz ]; then
@gunslingerfry
gunslingerfry / kitty
Created May 15, 2018 00:13
Kitty Terminal bash script for Xenial
#!/bin/bash
echo "$@"
LD_PRELOAD=$HOME/kitty/libpng-1.6.32/.libs/libpng16.so:$HOME/kitty/harfbuzz/src/.libs/libharfbuzz.so python3 $HOME/kitty "$@"
@gunslingerfry
gunslingerfry / backup
Last active November 4, 2016 04:52
backup with rsync
#!/bin/bash
trap cleanup INT TERM
cleanup() {
if [ -a "$AUTO" ]; then
rm "$AUTO"
fi
if [ -a "$MANUAL" ]; then
rm "$MANUAL"