按键 | 解释 |
---|---|
h ,j ,k ,l |
上下左右移动(右手的相邻四个字母键) |
i |
进入编辑模式 (insert mode) |
Esc |
退出编辑模式 (normal mode) |
#!/bin/bash | |
# suspend/sleep linux system on xscreensaver activation | |
# | |
# run the bash script in your .xsession, | |
# or something like .config/lxsession/LXDE/autostart for lxde | |
timeout=60 # After xscreensaver activated, wait timeout to suspend | |
read_timeout=5 # timeout for read from `xscreensaver-command -watch` | |
SUSPEND_BIN=/usr/sbin/pm-suspend |
#!/usr/bin/python3 | |
# vim:fileencoding=utf-8:sw=4:et | |
# Convert between pygobject Pixbuf and PIL/Pillow image format | |
# Also a function to do fast gamma correction with Pillow image | |
from __future__ import print_function, unicode_literals, absolute_import | |
import sys | |
from gi.repository import GLib, GdkPixbuf |
Wonder why the LED TV screen flicking like crazy and look washed out in white noise? Particularly when you enter the service mode for the first time?
With a wrong v-com
value, the TV screen will look washed out with continue flickering.
When the vcom
value was wrong, you cannot even see the service menu text clearly. The screen just flick like crazy. When you getting close to the correct value of the vcom
, the text on the service menu will became clearer and clearer with a relatively steady background.
In one case, a vcom
value around 0x60
gives better result.
-
unplug power, not needed
-
short circuit 6th and 7th pin on the NAND chip (the big rectangle chip) using a needle or ball pen tip. The side with a bigger circle on the chip. The 1st pin is from the another side of the big circle.
-
plugin the USB connector near the ethernet (RJ45) jacket
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Auto switching IBus engine to Engish when leaving insert mode | |
" Maintainer: mozbugbox <[email protected]> | |
" License: GPL version 3 or later | |
" | |
" Options: | |
" let g:ibus_eng_engine = 'xkb:us::eng' | |
" let g:ibus_reset_insert = 1 | |
" | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
' | |
' Run Python script with hidden/no console using MSYS2 Python3 | |
' Keywords: python msys2 windows win32 vbs gtk+ hidden console | |
' | |
' License: GNU GPL v3 or later (c) mozbugbox | |
' | |
PY_BIN = "C:\msys64\mingw64\bin\python3.exe " | |
PY_SCRIPT = WScript.Arguments.Item(0) | |
' Get Full Path of python script file |
#!/bin/sh | |
# Update showmet git master into "showmet-master/" directory | |
OUTPUT_DIR="showmet-master" | |
URL="https://github.com/mozbugbox/showmet/archive/master.zip" | |
OUTPUT="showmet-master.zip" | |
wget -O "${OUTPUT}" "${URL}" | |
if [ $? -ne 0 ]; then | |
echo "**ERROR** Download Failed..." |
#!/usr/bin/python3 | |
# vim:fileencoding=utf-8:sw=4:et | |
# 参考 <https://blog.csdn.net/grllery/article/details/89430363> | |
def numzh2int(txt): | |
"""Convert Chinese number count to Arabic integer""" | |
cn_nums = {'〇': 0, '一': 1, '二': 2, '三': 3, '四': 4, | |
'五': 5, '六': 6, '七': 7, '八': 8, '九': 9, | |
'零': 0, '壹': 1, '贰': 2, '叁': 3, '肆': 4, | |
'伍': 5, '陆': 6, '柒': 7, '捌': 8, '玖': 9, |