See the instructions in my Onedrive 应用 folder: Browser-themes-README.txt
6/07/2021
6/06/2021
How to adjust the Firefox tab bar tabbar height and width
Followed the instruction here:
GitHub - dannycolin/ff-ultra-compact-mode: A Better Compact Mode for Firefox Proton
- Type about:config in the address bar and press Enter/Return.
- Click the button accepting the risk.
- In the search box above the list, type or paste
toolkit.legacyUserProfileCustomizations.stylesheets
. - Double-click the
toolkit.legacyUserProfileCustomizations.stylesheets
preference to switch the value from false to true. - Now, search for
browser.compactmode.show
and set it totrue
. - Close about:config tab.
- Open your profile folder (See How do I find my profile?)
- Go to chrome folder or create it if it doesn't exist
- Copy/Paste the userChrome.css file from this repository inside the chrome folder.
- Go to ... | More Tools | Customize Toolbar | Density to Compact
:root {
/* Appmenu: Reduce item padding */
--arrowpanel-menuitem-padding-block: 4px 8px !important;
/* Tabbar: reduce tab margin */
--tab-block-margin: 4px 3px !important;
/* Set minimum width below which tabs will not shrink (minimum 22px) */
--my-tab-min-width: 10px;
}
/* Essential rule for reducing minimum tab width */
.tabbrowser-tab:not([pinned]){
min-width: var(--my-tab-min-width) !important;
}
/* Optional rules for widths below 40px */
/* Reduce icon's right margin for less wasted space */
.tabbrowser-tab:not([pinned]) .tab-icon-image {
margin-right: 1px !important;
}
/* Adjust padding for better centering and less wasted space */
.tabbrowser-tab:not([pinned]) .tab-content{
padding-left: calc((var(--my-tab-min-width) - 22px)/2) !important;
padding-right: calc((var(--my-tab-min-width) - 22px)/2) !important;
}
/* Reduce close button's padding for less wasted space */
.tab-close-button.close-icon {
padding-left: 0 !important;
padding-right: 3px !important;
}
/* Tab: Reduce height */
.tabbrowser-tab {
min-height: 24px !important;
}
/* URLBar: Fix vertical alignment */
#urlbar[breakout=true]:not([open="true"]) {
--urlbar-height: 20px !important;
--urlbar-toolbar-height: 24px !important;
}
/* Toolbar: Reduce spacing */
#urlbar-container {
--urlbar-container-height: 30px !important;
margin-top: 0 !important;
}
/* Reload Button: Fix vertical alignment */
#reload-button {
margin-block-start: -2px !important;
}
.tabbrowser-tab .tab-context-line {
margin: -3px 0px !important;
background-color: #76B900;
height: 3px;
}
.tabbrowser-tab[selected="true"] .tab-context-line {
margin: -3px 0px !important;
background-color: red;
height: 3px;
}
5/30/2021
How to root Samsung Galaxy Tab S6 Lite SM-P610 P610ZCU2CUC4
What worked?
I mainly used the instructions in this article: https://techorfy.com/root-samsung-galaxy-tab-s6-lite/
Main take-aways:
1. The tablet/phone bootloader must be unlocked (In the developer options OEM解锁)
2. Used Magisk app to patch the boot.img file and replace the one in the factory stock AP*** file. Used Odin to refresh the files to the tablet. TWRP was not needed and used.
3. Some useful tips: To enter the tablet download mode: press volume UP + volume DOWN buttons, then plugin the power cable.
3/02/2021
How to adjust Linux Ubuntu 18.04 screen brightness
sudo apt install brightnessctl
sudo brightnessctl set 20%
2/21/2021
How to cross-compile boost for QNX 7.0
# For QNX OS, use the following commands:
```
./bootstrap.sh --prefix=~/install --without-icu \
--with-libraries=atomic,filesystem,serialization,graph,graph_parallel,iostreams,log,math,system,thread,date_time,regex,timer,chrono,program_options
# For QNX x86_64:
./b2 toolset=qcc target-os=qnxnto link=static cxxflags=-fPIC cflags=-fPIC \
--disable-icu -s NO_BZIP2=1 -j32 install
# For QNX aarch64:
./b2 toolset=qcc target-os=qnxnto link=static --disable-icu \
cxxflags="-Vgcc_ntoaarch64le -Y_gpp -Wc,-std=gnu++0x -D_LITTLE_ENDIAN" \
linkflags="-Vgcc_ntoaarch64le -Y_gpp -lang-c++" -j32 install
# To clean up built binaries
./b2 --clean-all -n
```