Skip to content

Instantly share code, notes, and snippets.

View yrtimiD's full-sized avatar

Dmitry Gurovich yrtimiD

  • Israel
  • 23:23 (UTC +03:00)
View GitHub Profile
@brookst
brookst / fs5000.py
Last active June 25, 2024 12:26
Serial interface to Bosean FS-5000 radiation detector
#!/usr/bin/env python3
__author__ = "Tim Brooks"
__email__ = "brooks@skoorb.net"
__date__ = "2024-04-23"
import datetime
from enum import Enum, Flag
import logging
import serial
import serial.tools.list_ports as list_ports
@iacchus
iacchus / two-mouse-or-touchpad-pointers-on-X.md
Last active April 4, 2022 15:05
Using Two Mouse Pointers on X.org

ORIGINAL HERE: https://stackoverflow.com/questions/4012352/linux-dual-mice-multiple-mice-with-multiple-mouse-pointers

I've found a way to do it, but it causes major tearing with Gnome.

  1. Open a terminal and type in xinput (all commands should be done as normal user).
  2. Look at the id of the one of your mice or touchpad.
  3. Then create a new master device with this command xinput create-master "name". (any name of your choice.)
  4. Get the new master "name" numeric id.
  5. Now you just need to reattach one of your mice to the new master xinput reattach "mouse id" "new master id".
@iainjreid
iainjreid / package-json.d.ts
Last active February 13, 2020 20:28
A Typescript type definition for NPM package files
export interface IPackageJSON extends Object {
readonly name: string;
readonly version?: string;
readonly description?: string;
readonly keywords?: string[];