(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
Hardware Perspective | |
-------------------- | |
* It is look like that Lenovo has aggregated bunch of sensors into one USB HID Device, this will be `2047:0855 Texas Instruments`. | |
* This device has a big HID descriptor which report each sensor using `Usage Page 05 20 - Sensor Page (0x20)` | |
* There are 8 reports in the descriptor, for each report there is a bit map of the sensor properties: | |
``` | |
Usage 0A 09 03 - Property: Sensor Connection Type | |
Usage 0A 16 03 - Property: Reporting State | |
Usage 0A 19 03 - Property: Power State |
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
# OpenCV | |
OPENCV_CAMERA_MODULES := off | |
OPENCV_INSTALL_MODULES := off | |
OPENCV_LIB_TYPE := STATIC |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <fcntl.h> | |
#include <sys/ioctl.h> | |
#include <linux/input.h> | |
#include <errno.h> | |
#include <time.h> |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
#!/bin/bash | |
xdotool mousemove 100 100 | |
xdotool click 1 | |
for i in `rand -M 3 -N 1000`; do | |
echo -n "Play $i " | |
case "$i" in | |
"0") |