All commands are run as root.
Create the swap file using either of these commands. fallocate
is faster but may not work on all filesystems.
fallocate -l 32G /swap/swap0
Compile programs with OpenMP on macOS and llvm/clang
.
For example, to install at /opt/llvm38
:
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} |
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
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
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
#!/usr/bin/python | |
import errno | |
import os | |
import os.path | |
import sys | |
import uuid | |
from subprocess import call |
I hereby claim:
To claim this, I am signing this object: