/mouse enable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see it here: | |
// https://stackoverflow.com/questions/7563169/detect-which-word-has-been-clicked-on-within-a-text | |
// https://jsbin.com/oXetAcI/4/edit?html,js,output | |
$.fn.OneClickSelect = function(){ | |
return $(this).on('click',function(){ | |
var range, selection; | |
if (window.getSelection) { | |
selection = window.getSelection(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use xinput to find your keyboards. | |
$ xinput | |
⎡ Virtual core pointer id=2 [master pointer (3)] | |
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] | |
⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] | |
⎜ ↳ TPPS/2 IBM TrackPoint id=12 [slave pointer (2)] | |
⎜ ↳ Logitech Performance MX id=14 [slave pointer (2)] | |
⎜ ↳ E-Signal USB Gaming Keyboard id=16 [slave pointer (2)] | |
⎣ Virtual core keyboard id=3 [master keyboard (2)] |
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.
- Open a terminal and type in
xinput
(all commands should be done as normal user). - Look at the id of the one of your mice or touchpad.
- Then create a new master device with this command
xinput create-master "name"
. (any name of your choice.) - Get the new master "name" numeric id.
- Now you just need to reattach one of your mice to the new master
xinput reattach "mouse id" "new master id"
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Original author: Michalis Georgiou <mechmg93@gmail.comr> | |
# Modified by Andrew http://www.webupd8.org <andrew@webupd8.org> | |
# Current version by Kassius Iacchus https://github.com/iacchus/ | |
# Depends on: `wget` | |
# | |
# Install `wget` on Debian/Ubuntu with: | |
# apt install wget |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging | |
import socket | |
import sys | |
import threading | |
import paramiko | |
logging.basicConfig() | |
logger = logging.getLogger() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: filetype=neomuttrc | |
# Default index colors: | |
color index yellow default '.*' | |
color index_author red default '.*' | |
color index_number blue default | |
color index_subject cyan default '.*' | |
# For new mail: | |
color index brightyellow black "~N" | |
color index_author brightred black "~N" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
WIDE_MAP = dict((i, i + 0xFEE0) for i in range(0x21, 0x7F)) | |
WIDE_MAP[0x20] = 0x3000 | |
def widen(s): | |
""" | |
Convert all ASCII characters to the full-width counterpart. |