Skip to content

Instantly share code, notes, and snippets.

@squeuei
squeuei / postscript_core_font_set.md
Last active January 28, 2024 15:37
Open Source/TypeKit/Bitstream Alternative to Postscript Core Font Set
PostScript Core Font URW Core35 TeX Gyre Liberation croscore TypeKit Bitstream
Helvetica Nimbus Sans TeX Gyre Heros Liberation Sans Arimo Nimbus Sans Swiss 721
Helvetica Condensed Liberation Sans Narrow Nimbus Sans Condensed Swiss 721
Times Nimbus Roman TeX Gyre Termes Liberation Serif Tinos Nimbus Roman Dutch 801
Courier Nimbus Mono TeX Gyre Cursor Liberation Mono Cousine Courier

| PostScript2 Core Font | URW Core35 | TeX Gyre | Liberation | croscore | TypeKit | Bitstream | |-------------------------|--------------|-------------------|------------------------|--------

@squeuei
squeuei / Linux_on_HP_UEFI.md
Last active January 20, 2024 13:52
Installing Debian/GNU Linux on HP Elitebook 820 G1 laptop in UEFI Native (without CSM)
@squeuei
squeuei / 01.md
Created November 23, 2023 16:54
When asammdf's GUI won't start

When asammdf's GUI won't start

and see error messages like this:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: vkkhrdisplay, eglfs, vnc, wayland, xcb, minimalegl, offscreen, minimal, linuxfb, wayland-egl.
@squeuei
squeuei / lichee-nano-fel.md
Last active October 14, 2023 20:58
How to enter FEL mode on Lichee nano

How to enter FEL mode on Lichee nano

If SPI flash isn't on the board, just remove the TF(microSD) card from the board and supply the power. It's the same if SPI flash is empty,

If your board have a SPI flash with preloaded image, pull D4(SPI CLK) down to GND. You can use the metal part of USB micro B or TF card slot as GND. Diagram is in the comment below. Thanks: @ernestp for the correction and providing a diagram.

Or you can use the special boot image [link]. Just write it to a TF card and boot.

Don't forget to remove the GND connection after entering FEL mode otherwise you will never be able to write the boot image to the SPI flash.

@squeuei
squeuei / 01-english.md
Last active August 14, 2023 02:46
Setting Environment Variables on Debian / Xfce / Lightdm

Setting Environment Variables on Debian / Xfce / Lightdm / IM

  1. Set environment variables in .profile
  2. Make a file .bash_profile and include command below.
if [ -f ~/.profile ]; then
  . ~/.profile
fi
@squeuei
squeuei / user-dic.md
Last active July 31, 2023 06:42
When you can't add a word to user dictionary of anthy

anthyでユーザ辞書にエントリを追加できないとき

空ファイル~/.anthy/private_words_defaultを作成してkasumiで単語登録する。初回はCLIでkasumi -aを使う方がいいかもしれない。理由は、エラーが出て失敗したことがわかりやすいため。anthy-unicodekasumi-unicodeでも同じように働く思われる。

When you can't add a word to user dictionary of anthy

Put an empty file as ~/.anthy/private_words_default and now you can add a word to user dictionary with kasumi. Maybe it's good to use kasumi -a on the terminal for the first time because it will raise an error. It should work on anthy-unicode and kasumi-unicode as well.

@squeuei
squeuei / 01-english.md
Last active July 29, 2023 16:00
Stop buggy behaviors about audio on Debian 12 (Bookworm) / Xfce 4.18

Stop buggy behaviors about audio on Debian 12 (Bookworm) / Xfce 4.18

I encountered some strange behaviors on HP Elitebook 830 G8 (CPU: TigerLake) upon installing Debian Bookworm with Xfce desktop environment. Such as:

  • Audio volume is set to 100% after suspend / monitor sleep.
  • The output doesn't automatically switch when a new device is connected.

To find the cause of the problems, I checked journalctl and I found:

@squeuei
squeuei / 01-howto-on-windows.md
Last active July 12, 2023 04:18
物理JISキーボードをUS配列として認識させ、かつ変換/無変換キーでIMEをON/OFFする方法

物理JISキーボードをUS配列として認識させ、かつ変換/無変換キーでIMEをON/OFFする方法 on Windows

  1. Windowsの設定->言語と地域->日本語->言語のオプション->キーボードレイアウトでキーボードレイアウトを英語キーボード(101/102キー)に変更する

fig1

  1. Powertoysをインストールし、Keyboard Managerで変換/無変換キーをIME Convert/IME Non-Convertにリマップする

fig2

Stop error about nouveau and start using Intel iGPU only on Fedora (and it also applies to Debian/GNU Linux)

I'm using a Thinkpad T480 with GeForce MX150 dGPU option.

After the installation, Fedora 32 raises an error notification about nouveau on every boot up.

To get rid of this, you have two choices. You can install official proprietary driver for NVIDIA GeForce GPU. The other option is disabling GeForce dGPU at all.

You can blacklist nouveau to do that.

@squeuei
squeuei / fedora_33_and_SHA-1.md
Created June 28, 2021 12:18
When you have to access an website which uses SHA-1 on Fedora 33 or later.