Skip to content

Instantly share code, notes, and snippets.

Avatar

tanyuan tanyuan

View GitHub Profile
View mailmate.md

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.

View markdown-tools.md

Markdown Tools

Mac

  • CotEditor - Plain text editor with drag in support.
  • Marked 2 - Markdown previewer with custom CSS and preprocessor.
View ipad-apps.md

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

View mac-apps.md

Mac Apps

Free Apps

  • iTerm2 - The best terminal. Support Vim better. See this gist for tips and tricks.
  • CotEditor - A simple and neat plain text editor.
  • Skim - A PDF reader designed for annotating academic papers.
  • IINA - A more powerful video player.
  • The Unarchiver - Decompress RAR, 7-Zip, Tar, etc.
  • DaisyDisk (Freemium) - Examine disk usage with a pie chart.
@tanyuan
tanyuan / atom-latex.md
Last active May 2, 2018
Edit LaTeX and view PDF in Atom!
View atom-latex.md

Edit LaTeX and view PDF in Atom (Pretty easy!)

  1. Download and install Atom.
  2. Install LaTeX for your OS.
  1. Open Atom, install packages: Go to Preferences... > Left pane Install > Search and install packages:
  • pdf-view: view PDF in Atom.
@tanyuan
tanyuan / windows-apps.md
Last active Feb 3, 2018
Windows applications
View windows-apps.md
@tanyuan
tanyuan / samba-elementary-os.md
Last active Apr 23, 2020
Elementary OS (Ubuntu) Samba Server Setup
View samba-elementary-os.md

Setup up Samba file server on Elementary OS (Ubuntu)

So you can access files from other computers (Linux, Mac, Windows) on the same network!

  1. Install Samba:
sudo apt install samba samba-common
View RecordROI.cs
using UnityEngine;
using System.Collections;
public class RecordROI : MonoBehaviour {
public GameObject highlight;
public string path;
private Vector3 mousePos;
private Vector3 spherePos;
@tanyuan
tanyuan / create-day-one-entry.sh
Created Jan 11, 2018
📘 Create Day One entry using simple graphical interface (Zenity) on Linux and import to Day One on Mac.
View create-day-one-entry.sh
#!/bin/bash
noteDir="$1"
if [ "$noteDir" != "" ]
then
date=$(date '+%Y-%m-%d %H:%M:%S')
# Create a text box
zNewData=$(zenity --text-info --editable --width 650 --height 400)
@tanyuan
tanyuan / iterm2.md
Last active Aug 18, 2020
📺 iTerm2 tips & tricks
View iterm2.md

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

You can’t perform that action at this time.