Yet another bootstrap theme.

2020-09-24
unity_tutorial

最近有看到 unity 的介紹,有想說前一段時間搜尋拆包的資料中,似乎常會用到 unity studio 來到資源檔
就順手找一下 unity,做個簡單的紀錄

Reference

Read More

2020-09-23
cheat-cli-tool

在試用一些工具時,有找到 cheat & cheatsheets 的方式,覺得在 command line 上還滿方便的,就來試試看 & 加以紀錄

使用方式

  • cheat/cheat 下載對應的 binary 檔,放到自己的 path 中
  • 執行 init config 設定
    1
    $ mkdir -p ~/.config/cheat && cheat --init > ~/.config/cheat/conf.yml
  • 看 ~/.config/cheat/conf.yml 的檔案,建立需要的 folder,其中 community 我是用 git clone 的方式
    1
    2
    $ cd ~/.config/cheat/cheatsheets
    $ git clone https://github.com/cheat/cheatsheets community

Reference

Read More

2020-09-23
vim-plugin-used

列一下,我有用到的 vim plugin,還有常用到的 設定 or keymap (key binding)

plugin (package) 管理工具

跟 auto-complete 相關

跟 folder 結構有關

之前用 vim 時,會不喜歡多一個 window 顯示 folder,隨著對 window 的熟悉,有開一個 folder 的側邊也滿好的

  • preservim/nerdtree - A tree explorer plugin for vim
  • 設定 ctrl-n 為 toogle nerdtree 的出現
  • 在 nerdtree 中,按下 t 時,會將檔案開在新的 tab

file search tool

  • ctrlpvim/ctrlp.vim * 滿強大的 file search 工具
    • 可以用 :CtrlP 或是 或是 <c-p> 呼叫 CtrlP fuzzy find 的功能
    • 在 CtrlP 的模式下
      • Press <c-f> and <c-b> to cycle between modes.
      • Press <c-d> to switch to filename only search instead of full path.
      • Press <c-r> to switch to regexp mode.
      • Use <c-j>, <c-k> or the arrow keys to navigate the result list.

comment

vim tab movement

1
2
3
" easier moving between tabs
map <Leader>n <esc>:tabprevious<CR>
map <Leader>m <esc>:tabnext<CR>

vim window movement

1
2
3
4
5
"""""" windows split shortcut
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>

Reference

Read More

2020-09-23
go-tutorial

最近在學習 go,列一下有試過的 & 玩過的 tool

online course

Reference

Read More

2020-09-17
my-vim-new-setup

藉由這次重新設定 & 安裝 vim,同時整理一下目前使用 vim 的方式

安裝 vim

現在的 vim 想使用的進階功能,會用到 vim + python 的功能,所以需要重新安裝 vim。
目前用 brew install vim 滿方便,又快速的,就是要記得將執行 brew update,取得最近的 vim 設定

1
2
3
4
5
6
$ brew update
$ brew install vim
$ vim --version | grep -i python3
+comments +libcall -python +visual
+conceal +linebreak +python3 +visualextra
## 要確認 python3 有 enable 起來

如果看到 python3 沒有 enable 的話,記得確認一下 vim 是那一版

1
2
3
$ which vim
/usr/local/bin/vim
# 在 /user/local 下的,才是用 brew 安裝的

theme

有安裝好用的 package

Reference

Reference vimrc

Read More

2020-09-17
mac_remote_to_another_mac

紀錄一下,要將一台 mac remote share 給另一台的方式

  • 要 share 的那台,需要開 screen sharing & remote management
    • 可以用 ssh & share 畫面的方式,進入到這台機器
  • 要連到 remote 的機器
    • 使用 “Screen Sharing” App 連到另一台 mac

Reference

Read More

2020-09-16
vs-code-start

Read More

2020-09-16
vs_code_and_vim

vim 是我很喜歡,也是目前最常用的 editor。
最近看 vs-code 滿好用的,就想說來試試看 vs-code & vim 的整合,看看是否會喜歡這樣的方式

Reference

Read More

2020-09-14
zsh and iterm2 install then setting

最近剛換新的 Mac Book Pro,之前都是用 time machine 轉的。這次因為種種緣故,無法使用 time machine 換新機。就剛好趁這次,將一些許久都沒有用到的 tool & folder 一次斷捨離吧。
藉著這次重新開始裝 iTerm & 設定 zsh,紀錄一些必要的設定

簡易的步驟

  • 安裝 oh-my-zsh
  • 安裝 & 修改 zsh theme to agnoster
    • 裝好後,會發現有些 亂碼 & 顏色不像,需要安裝 font & color
  • 安裝字型, Powerline Fonts
  • 安裝 color ,Solarized Dark

zsh 的 theme

在 vs code 加上字型

Reference

Read More

2020-09-03
sentry_with_aws_lambda

Read More