那天在 Windows 做完筆記,準備上傳到 Github Page 時,發現我無法執行 git add .
,並出現了 LF / CRLF 轉換的錯誤訊息 - LF will be replaced by CRLF
,告訴我要把 LF 換行符號轉換成 CRLF。
【技能樹栽種】使用 Jekyll 和搭建 Github Pages
之前有一陣子在找合適的 blog 想用來存放文章,最好能支援數學公式、程式碼,若能使用 Markdown 來撰寫文章就更好了,另外版面最好整潔些不要像傳統 blog 有側欄的干擾(要求真多 XD
前後試過痞客邦、Blogger、Medium、Github Pages…,各有各的優缺點,但其實都不怎麼滿意,最後挑了Github Pages 主要是想玩玩 Jekyll 順便練習一下前端 XD
【Windows】常用 Unix 與 DOS 的指令
每次回到 Windows 的 DOS command,都習慣性直接打 cd d:\ 要切換磁槽、使用 ll 要來顯示檔案,想當然每次都沒反應 XD
每每遇用到這狀況就要找 google,所以還是決定自己做一份對照表…至少下次還需要 search 時是為自己貢獻流量 XDDD
【Git】使用 git-rebase 修改 Commit
記錄一下自己常用的 git-rebase
的用法。
【Linux】計算資料夾下的檔案數
來數一數資料夾裡有多少個檔案? ❶、❷、❸、❹、❺、❻、❼
【LeetCode】0024. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
【LeetCode】0021. Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
【LeetCode】0019. Remove Nth Node From End of List
Given a linked list, remove the n-th node from the end of list and return its head.
【LeetCode】0018. 4Sum
Given an array nums
of n integers and an integer target
, are there elements a, b, c, and d in nums
such that a + b + c + d = target
? Find all unique quadruplets in the array which gives the sum of target
.
【Shell Script】使用 crontab + script 定期備份並保留30天
這是 CodiMD 安裝的後續…,雖然跟 CodiMD 沒啥關係 XD 這次的主要目的是為 CodiMD 做一個定期備份,另外為了儲存空間上的考量,備份檔案只保留 30 天,一旦超過就刪除資料。