In Developer Console:
-
Set mouse sensitivity to
1.25:sensitivity 1.25
# Go to the installation folder, then
./rime-install double-pinyin
| #pragma once | |
| #include <sys/queue.h> | |
| #define find_in_slist(element, list_head, entry_name, comparator) \ | |
| ({ \ | |
| typeof(element) ret = nullptr; \ | |
| typeof(element) current_element = nullptr; \ | |
| SLIST_FOREACH(current_element, list_head, entry_name) { \ | |
| if (comparator(current_element, element)) { \ |
| [Unit] | |
| Description=Keeps a tunnel to 'remote.example.com' open | |
| After=network.target | |
| [Service] | |
| User=autossh | |
| # -p [PORT] | |
| # -l [user] | |
| # -M 0 --> no monitoring | |
| # -N Just open the connection and do nothing (not interactive) |
| # Useful references: | |
| # | |
| # https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line | |
| # https://ss64.com/vb/sendkeys.html | |
| # https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell | |
| # https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/ | |
| # | |
| # Future enhancements - use events rather than an infinite loop | |
| $wsh = New-Object -ComObject WScript.Shell | |
| while ($true) { |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,1d,00,3a,00,3a,00,1d,00,00,00,00,00 | |
| ; Refs: | |
| ; https://superuser.com/a/1381836 |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,05,00,00,00,5b,e0,38,00,38,00,5b,e0,38,e0,5c,e0,5d,e0,38,e0,00,00,00,00 | |
| ; Refs: | |
| ; https://superuser.com/a/1202601/270174 | |
| ; https://stackoverflow.com/questions/40777182/how-to-remap-the-menu-key-on-windows |
| import multiprocessing | |
| import multiprocessing.managers | |
| import os | |
| import sys | |
| from typing import AnyStr, Union | |
| class QueueManager(multiprocessing.managers.BaseManager): | |
| def get_queue(self, ident: Union[AnyStr, int, type(None)] = None) -> multiprocessing.Queue: |
| // Copyright 2012 The Go Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| // +build ignore | |
| package main | |
| import "fmt" |