Skip to content

Instantly share code, notes, and snippets.

@tatsuyafujisaki
tatsuyafujisaki / firebase-cloud-messaging.md
Last active September 27, 2024 03:33
Firebase Cloud Messaging and Protocol Buffers (protobuf)

How to solve the "マイナポータルアプリが起動できません" error when trying to open e-Taxソフト(SP版) on iPhone

  • iPhone's Settings > Chrome > Default Browser App > Safari
  • The language on iPhone does not matter. You don't have to set it to Japanese.
@tatsuyafujisaki
tatsuyafujisaki / word-for-the-web.md
Last active June 6, 2024 23:38
Microsoft Word for the web (Word Online)

How to toggle Dartk Mode

  1. Open https://office.com
  2. Create or open a document in Word.
  3. Menu bar > View > Dark Mode

How to create a hanging indent by Japanese "字" in Word on office.com

  1. Set the language of Google Chrome to Japanese.
  2. Open https://office.com
  3. Open a document in Word.
  4. Click the 段落オプション icon in the lower right corner of the 段落 group on the ribbon.
@tatsuyafujisaki
tatsuyafujisaki / best-practices.md
Last active July 21, 2025 12:22
Google Drive, Google Docs, and Google Sheets

Both for Google Docs and Google Sheets

Language Font
Chinese Noto Sans SC
English Arial(Default)
Japanese Noto Sans JP

Google Docs

Menu bar > File > Page Setup > Paper size > A4

@tatsuyafujisaki
tatsuyafujisaki / pem.md
Last active January 28, 2025 01:34
SSH / PEM / PKCS

.pem file

  • is a base64 file that contains various cryptographic keys.
  • 's private keys begin with -----BEGIN RSA PRIVATE KEY-----.
  • 's public keys (TLS certificates) begin with -----BEGIN CERTIFICATE-----.

How to create a .p12 file from a private key PEM file and a public key PEM file

openssl pkcs12 -export -out output.p12 -inkey private-key.pem -in public-key.pem
@tatsuyafujisaki
tatsuyafujisaki / android-emulator.md
Last active July 11, 2025 03:56
Android Studio, Android emulators, and iOS

Virtual Device Manager

  • Device skin > [None]
  • Edit device > Additional settings > Default boot > Cold

Pixel 9 Android 16 (both Android physical devices & emulators) > Settings

  • Security & privacy
    • Privacy controls > Ads > Delete advertising ID
    • More security & privacy > Personalize using app data > Off
  • System
  • Keyboard > On-screen keyboard > Google Voice Typing > Off
@tatsuyafujisaki
tatsuyafujisaki / HackerRankTemplate.java
Last active April 24, 2021 11:45
Java 8 code snippets for HackerRank
public class Solution {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
PrintWriter pw = new PrintWriter(System.out, false /* disables autoFlush to write at once */);
fs.close();
pw.close();
}
static class FastScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
@tatsuyafujisaki
tatsuyafujisaki / google-chrome.md
Last active August 29, 2025 21:57
macOS, Windows and OS independent settings

Google Chrome

on iPhone

Google Chrome > Settings

  • (my account) > Bookmarks + Reading list + Settings
  • Google Services > Disable everything except "Allow Chrome sign-in".

on macOS

Settings

URL Action
chrome://apps Refer to the "Apps" section below