Skip to content

Instantly share code, notes, and snippets.

@tanyuan
tanyuan / smart-caps-lock.md
Last active March 28, 2024 03:39
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@tanyuan
tanyuan / archlinux.md
Created April 21, 2016 13:20
Arch Linux 為什麼這麼迷人?

Arch Linux 為什麼這麼迷人?

Arch Linux 是眾多 Linux 作業系統中的一種,對象是有 Linux 指令操作經驗的「進階使用者」,想要打造更適合自己的環境,例如不同的桌面、視窗環境等,體驗最新的套件。

Arch Linux 只有文字介面,不包含圖形介面。也就是說,當你安裝完 Arch Linux 之後,你會看到整個螢幕黑黑一片,電腦期待著你用鍵盤輸入文字指令。Arch Linux 只提供最基本可以讓電腦跑起來的功能,其他套件都要自己安裝。

成為掌握一切的設計師

Arch Linux 不會裝你不會用到的東西,你會自己親自打造完全屬於自己的電腦。不會有程式任意自動啟動,不會有人強迫你更新。你可以把你的電腦改成任何模樣,同樣你也為你的電腦的易用性和安全性負責。

@tanyuan
tanyuan / markdown-tools.md
Created April 23, 2019 06:52
Markdown tools

Markdown Tools

Mac

  • CotEditor - Plain text editor with drag in support.
  • Marked 2 - Markdown previewer with custom CSS and preprocessor.
@tanyuan
tanyuan / ipad-apps.md
Created April 23, 2019 06:44
iPad Apps

iPad Apps

Note-taking

  • GoodNotes (Apple Pencil) - Hand-writing Notes. Great tool for visual thinkers.

Reading PDF

  • ‎PDF Viewer Pro by PSPDFKit - Free PDF reader that integrate with iOS Files and the annotation is compatible with Preview on Mac.
  • LiquidText (Apple Pencil) - Flexible annotation using Apple Pencil for PDF.

Drawing

@tanyuan
tanyuan / pacman.md
Created February 29, 2016 03:48
Useful commands for pacman and yaourt.

Arch Linux Pacman & Yaourt Package Manager

Pacman (Official)

Easter egg

Edit /etc/pacman.conf:

Under the # Misc options section, remove the # in front of Color and add the line ILoveCandy. Because Pac-Man loves candy.

@tanyuan
tanyuan / iterm2.md
Last active January 23, 2024 17:41
📺 iTerm2 tips & tricks

iTerm2 (The awesome terminal for Mac)

Look and feel

  • Window theme: Preferences > Appearance Tab > Theme > Light/Dark
  • Show folder icon on window title: Preferences > Appearance Tab > Window: Show proxy icon in window title bar
  • Background transparancy and blur: Preferences > Profiles Tab > Window Tab > Transparency (a third) & Blur (Checked, full)
  • Color theme: Preferences > Profiles Tab > Colors Tab > Color Presets...

Window and tab title

MailMate Tips

Smart Mailbox that includes threads (replies or forwards by me)

  • Mailboxes: Any of All Messages
  • Conditions: All of Thread-Id (chose from Others) → is inInboxThread-Id

keybindings

Copy the MyKeyBindings.plist file into ~/Library/Application Support/MailMate/Resources/KeyBindings then type "MyKeyBindings" into the "Custom Key Bindings" field in the General section of settings.

@tanyuan
tanyuan / blender.md
Last active January 19, 2024 10:11
Tips for using Blender the open source 3D animation software.

Blender 3D Animation Software

Check out videos: Introduction to Blender « CGCookie.

Setup

  • File > User Preference
    • Input > Mouse Left Select
    • System > International Fonts to allow Chinese file name.
@tanyuan
tanyuan / mouse-button-mapping.md
Created April 18, 2016 11:22
Mouse Button Mapping on Linux

Mouse Button Mapping on Linux

I use Logitech Mouse M705 so I get extra mouse buttons to bind to desired functions.

You need xev, xbindkeys and xdotool installed.

Step 1. Find out button number

Run to find out the current keyboard/mouse key number:

@tanyuan
tanyuan / stow.md
Last active September 14, 2023 14:53
How to use GNU Stow.

GNU Stow: maintain dotfiles

Put all dotfiles in a specific folder so it is easy to use version control tool like git.

Steps

  1. Create directory ~/dotfiles/.
  2. Copy dotfiles into directories like: