Skip to content

Instantly share code, notes, and snippets.

@jakelee8
jakelee8 / keybase.md
Created May 8, 2022 03:51
keybase.md

Keybase proof

I hereby claim:

  • I am jakelee8 on github.
  • I am jakelee8 (https://keybase.io/jakelee8) on keybase.
  • I have a public key ASBn-Y9oXnoxFx0lTVS2VMZzYH0vKskca7r90WMy02WxjAo

To claim this, I am signing this object:

#!/usr/bin/python
import errno
import os
import os.path
import sys
import uuid
from subprocess import call
@jakelee8
jakelee8 / README.md
Created December 4, 2016 07:05
Decrease mouse sensitivity on T650

To test different settings:

xinput list
xinput list-props 'Logitech Rechargeable Touchpad T650'
xinput set-prop 'Logitech Rechargeable Touchpad T650' 'Synaptics Finger' 1 12 0
xinput set-prop 'Logitech Rechargeable Touchpad T650' 'Synaptics Locked Drags' 1
xinput set-prop 'Logitech Rechargeable Touchpad T650' 'Synaptics Palm Detection' 1
@jakelee8
jakelee8 / btrfs_luks_isw_raid5.md
Last active December 4, 2016 23:42
Create BTRFS on LUKS on ISW RAID5

Five disks, 6TB each. Adjust as needed.

Reset the disks.

for f in /dev/sd[abcde]; do
  sudo dd if=/dev/zero of=$f bs=512 count=1 conv=notrunc
done
@jakelee8
jakelee8 / pm-settings.md
Last active July 12, 2016 21:29
Linux power management

Linux power management and WoL

apt install at ethtool pm-utils

/etc/network/interfaces

iface eth0 inet dhcp
@jakelee8
jakelee8 / glances.md
Last active July 12, 2016 14:50
Glances system dashboard for Linux

http://askubuntu.com/a/293447

All commands are run as root.

apt install build-essential glances python3-pip

# use py3sensors because pysensors doesn't work on Python 3.x
pip3 install https://bitbucket.org/gleb_zhulik/py3sensors/get/0cf96f4e2cfe.zip
@jakelee8
jakelee8 / zeroconf.md
Last active July 12, 2016 06:52
Avahi Zeroconf for Linux

Avahi Zeroconf for Linux

Install

apt install avahi-utils avahi-daemon

The service starts automatically.

@jakelee8
jakelee8 / grub.sh
Created July 12, 2016 04:54
Attempt at multiboot Linux installer
DEVICE=/dev/sdb
MOUNT=/media/usb
# apt-get install -y udftools
# apt-get install -y casper grub-efi
# apt-get install -y grub-pc
# partition the disk
# fdisk ${DEVICE}
@jakelee8
jakelee8 / openmp-osx.md
Last active July 5, 2016 01:54
Compile programs with OpenMP support on macOS
@jakelee8
jakelee8 / tweaks.md
Last active July 12, 2023 06:44
Linux performance tweaks

Linux performance tweaks

All commands are run as root.

Enable swap file

Create the swap file using either of these commands. fallocate is faster but may not work on all filesystems.

fallocate -l 32G /swap/swap0