2017年12月12日 星期二

Overleaf with Github


Setup
  1. Create a project on Overleaf and get git link under "Share"
  2. Create a new project on GitHub 
  3. git clone https://git.overleaf.com/12749096xxxxxx your_folder
  4. cd your_folder
  5. git remote rename origin overleaf
  6. git pull overleaf master
  7. git remote add github https://github.com/your_project_in_github.git
  8. git push github
  9. git remote add both https://git.overleaf.com/12749096xxxxxx
  10. git remote set-url --add --push both https://git.overleaf.com/12749096xxxxxx
  11. git remote set-url --add --push both https://github.com/your_project_in_github.git  
Usage:
    1. git add .
    2. git commit -m "update"
    3. git push both
    4. git pull

    2017年10月15日 星期日

    KODI

    http://kodi.wiki/

    2017年10月10日 星期二

    Merge multiple pdfs using commandline

    gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf scan.pdf scan0001.pdf

    2017年10月1日 星期日

    Surface book tips

    Screen brightness up: Fn + DEL
    Screen brightness down: Fn + BACKSPACE


    2017年9月20日 星期三

    When Dock is locked

    killall ibtoold pboard
    killall Dock

    2017年8月23日 星期三

    Mac keyboard shortcut settings

    Set a Maximize keyboard shortcut in Mac

    1. Launch System Preferences from the Apple menu
    2. Go to Keyboard settings
    3. Go to Shortcuts tab at the top of the window.
    4. Go to App Shortcuts in the sidebar of the window.
    5. Click the small + button
    6. In the popup thing make sure ‘All Applications’ is selected for Application:
    7. In the Menu Title box type in exactly: Zoom
    8. In Keyboard Shortcut type in the shortcut. I recommend Command-Shift-M
    9. Click Add button.
    10. Restart all applications

    2017年2月12日 星期日

    Mac Hot Key


    1. Whatever you type into the URL bar can be surrounded by www. & .com by pressing control + enter. 
    2. If you accidentally closed a tab then simply press ⌘ + Shift + T to reopen the most recently closed tab.
    3. ⌘ + backspace will delete the entire previous word and ⌘ + arrow keys will jump to the start of the previous word.
    4. ⌘ + L highlights the url/address bar in Chrome.
    5. ⌘ + shift + n opens up an incognito mode tab on chrome for private browsing. No cookies are stored.
    6. ⌘ + SHIFT + R = Clear cache and then refresh page.
    7. In VLC, if your audio loses sync with the video or subtitles, there is an easy way to fix this. Simply pressing J or K will move the audio forward or backward. Similarly, to sync the subtitles you can press H or G.
    8. Lock screen: CMD+Ctrl+Q
    9. Show dock: CMD+option+D