1 | $ fcitx-configtool |
Global Config ->
Extra key for trigger input method
->
Disabled
1 | $ fcitx-configtool |
Global Config ->
Extra key for trigger input method
->
Disabled
1 | # list opened file in current window |
1 | # Print absolute path of the script. |
Type this | To find this |
---|---|
bobby moore |
Items containing both bobby and moore , but not necessarily in that order. |
"bobby moore" |
Items containing the exact phrase bobby moore . Note the use of double quotes so that the search results match the exact phrase within the quotes. |
hasattachment:yes |
Items that have attachments. You can also use hasattachment:true to get the same results. |
subject:"bobby moore" |
Items whose subject contains the phrase bobby moore . |
subject:bobby moore |
Items with bobby in the subject line and with moore anywhere else in the document. |
hasflag:true |
Items that are flagged for follow up. |
subject:status received:May |
Items received from anyone during the month of May (any year) where the subject contains status. |
bobby AND moore |
Items containing both bobby and moore, but not necessarily in that order. Note that logical operators such as AND, NOT, and OR must be in uppercase letters. |
bobby NOT moore |
Items containing bobby, but not moore. |
bobby OR moore |
Items containing bobby, moore, or both. |
Learn to narrow your search criteria for better searches in Outlook
Search regular expression \x{200b}
.\u200b
cannot match it in SublimeText.
UTF-8 (hex) 0xE2 0x80 0x8B (e2808b)
UTF-16 (hex) 0x200B (200b)
Preferences -> Browse Packages
. Put the following two files under User
.
1 | import sublime, sublime_plugin |
1 | [ |
Unicode Character ‘ZERO WIDTH SPACE’ (U+200B)
delete U+200B zero-width space characters using sublime text 3
Control Panel\Clock, Language, and Region\Language
->
Languange for non-Unicode programs
->
Change system locale
->
Select Chinese (Simplified)
->
Restart
When the Android phone is connected to Ubuntu, the dialog “Allow access to your data” keeps poping up no matter you select “ALLOW” or “DENY”.
This is because Ubuntu is trying to mount the Android phone. To disable the dialog, just disable the automount feature for Ubuntu.
1 | gsettings set org.gnome.desktop.media-handling automount false |
Apps use the following code to gain root privilege. Basically, a new root shell process is created with Runtime.getRuntime().exec("su")
. Then commands are sent to the new process through stdin.
1 | OutputStream stdin = null; |
Since Apps use su to gain root privilege, we need a su binary with the following requirements:
setenforce 0
.1 | if (current_uid != AID_ROOT && current_uid != AID_SHELL) error(1, 0, "not allowed"); |
Even if the su meets the above requirements, it’s still possible that su doen’t work for Apps. For example, /system maybe mounted as nosuid for Apps. To bypass SELinux and other limitations, some su solutions start a root sudaemon at boot up time. When Apps execute /system/xbin/su, /system/xbin/su accepts the commands and forwards them to the sudaemon.
emulator -avd [emulator_name] -writable-system
1 | adb root |
1 | # in adb root shell |
1 | # in adb root shell |
1 | adb install {supsersu_path}/common/Superuser.apk |
Rooting the Android Emulator – on Android Studio 2.3 (Android 4.4+)
Android系统Root原理初探
Android高级Root技术原理解析
First install numlockx
$ sudo apt-get install numlockx
Method 1$ sudo vim /etc/rc.local
Add the following content before exit 0
1 | if [-x /usr/bin/numlockx ]; then |
Method 2$ sudo vim /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
Add greeter-setup-script=/usr/bin/numlockx on
at the end.