Skip to content

Commit

Permalink
config: update permalink to /:title, use redirect_from for the legacy…
Browse files Browse the repository at this point in the history
… links
  • Loading branch information
dm4 committed Apr 1, 2024
1 parent 4cf2697 commit faa66de
Show file tree
Hide file tree
Showing 38 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -3,3 +3,4 @@ gem 'github-pages', group: :jekyll_plugins
gem "webrick", "~> 1.7"
gem 'jekyll-remote-theme'
gem 'jekyll-feed'
gem 'jekyll-redirect-from'
1 change: 1 addition & 0 deletions Gemfile.lock
Expand Up @@ -269,6 +269,7 @@ PLATFORMS
DEPENDENCIES
github-pages
jekyll-feed
jekyll-redirect-from
jekyll-remote-theme
webrick (~> 1.7)

Expand Down
4 changes: 4 additions & 0 deletions _config.yml
@@ -1,3 +1,6 @@
# for jekyll
permalink: /:title

# for jekyll-feed
author: dm4

Expand All @@ -9,6 +12,7 @@ social_share_previews: true
plugins:
- jekyll-remote-theme
- jekyll-feed
- jekyll-redirect-from
remote_theme: heiswayi/the-plain

# show posts with future date
Expand Down
1 change: 1 addition & 0 deletions _posts/2012-05-08-first-post.md
@@ -1,6 +1,7 @@
---
layout: post
title: "First Post"
redirect_from: /2012/05/08/first-post.html
---

聽說很潮來用一下傳說中的 octopress
Expand Down
1 change: 1 addition & 0 deletions _posts/2012-05-10-and-in-shell-script.md
Expand Up @@ -5,6 +5,7 @@ tags:
- shellscript
- bash
- linux
redirect_from: /2012/05/10/and-in-shell-script.html
---

終於搞懂在 shell script 裡 `[ ... ]``[[ ... ]]` 的差別了
Expand Down
1 change: 1 addition & 0 deletions _posts/2012-05-11-dot-bashrc-sourced-twice.md
Expand Up @@ -5,6 +5,7 @@ tags:
- bash
- shellscript
- linux
redirect_from: /2012/05/11/dot-bashrc-sourced-twice.html
---

昨天解決了困擾了一陣子的問題,在 `.bashrc` 裡,如果有改到 `$PATH`
Expand Down
1 change: 1 addition & 0 deletions _posts/2012-07-22-hitcon-2012-wargame-notes.md
Expand Up @@ -9,6 +9,7 @@ tags:
- web
- wargame
- security
redirect_from: /2012/07/22/hitcon-2012-wargame-notes.html
---

今年是第二年來 HITCON ,去年感謝 atdog 大大帶我一起報名 HITCON 玩 wargame ,
Expand Down
Expand Up @@ -5,6 +5,7 @@ tags:
- firefox
- extension
- hackbar
redirect_from: /2012/07/24/firefox-hackbar-font-setting-on-mac-osx.html
---

聽說 [HackBar](https://addons.mozilla.org/en-us/firefox/addon/hackbar/) 是 Firefox 下很好用的 extension ,
Expand Down
1 change: 1 addition & 0 deletions _posts/2012-07-26-hitcon-2012-wargame-notes-part-2.md
Expand Up @@ -9,6 +9,7 @@ tags:
- web
- wargame
- security
redirect_from: /2012/07/26/hitcon-2012-wargame-notes-part-2.html
---

### Web 5
Expand Down
1 change: 1 addition & 0 deletions _posts/2013-01-27-command-line-xiao-zhi-shi.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Command Line 小知識"
tags: [linux, unix, cli]
redirect_from: /2013/01/27/command-line-xiao-zhi-shi.html
---

前幾天看了這篇 [To understand the command line...](http://geekblog.oneandoneis2.org/index.php/2012/09/30/to-understand-the-command-line) 覺得蠻有趣的,大概是在說:
Expand Down
1 change: 1 addition & 0 deletions _posts/2013-11-08-dns-sd-and-airplay-slash-airtunes.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "dns-sd & AirPlay / AirTunes"
tags: [dns-sd, airplay, airtunes]
redirect_from: /2013/11/08/dns-sd-and-airplay-slash-airtunes.html
---

## Usage
Expand Down
1 change: 1 addition & 0 deletions _posts/2013-11-08-ebctf-2013-writeup.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "ebCTF 2013 Writeup"
tags: [ctf, wargame, writeup]
redirect_from: /2013/11/08/ebctf-2013-writeup.html
---

拖超久的 writeup ,感謝一起玩的 [217](http://ctftime.org/team/5160) 大大們,下面整理了一些大大們的解法,和從各處搜括來的 writeup
Expand Down
1 change: 1 addition & 0 deletions _posts/2013-11-08-xxd-decode-hex-string.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "用 xxd 解 Hex String"
tags: [linux, xxd]
redirect_from: /2013/11/08/xxd-decode-hex-string.html
---

本來解 hex string 都是用有點醜的 perl one-liner
Expand Down
1 change: 1 addition & 0 deletions _posts/2013-11-09-sms-fraud.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "小額付費簡訊詐騙"
tags: android
redirect_from: /2013/11/09/sms-fraud.html
---

最近好像很流行收到這種奇怪的簡訊
Expand Down
1 change: 1 addition & 0 deletions _posts/2013-11-23-vim-ia-writer-theme-for-markdown.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Vim iA Writer Theme for Markdown"
tags: [vim]
redirect_from: /2013/11/23/vim-ia-writer-theme-for-markdown.html
---

前幾天看到 [Writing Markdown With Style in Vim][1] 在講 vim 的 iA Writer theme
Expand Down
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "自製 USB 鍵盤轉藍芽鍵盤轉接器"
tags: [arduino, hardware, keyboard]
redirect_from: /2014/04/22/convert-usb-keyboard-to-bluetooth-keyboard.html
---

## 測試影片
Expand Down
1 change: 1 addition & 0 deletions _posts/2014-04-24-airplay-encryption.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "AirPlay Encryption"
tags: [airplay, crypto]
redirect_from: /2014/04/24/airplay-encryption.html
---

From [iOS Security February 2014](http://images.apple.com/iphone/business/docs/iOS_Security_Feb14.pdf) (p.16)
Expand Down
1 change: 1 addition & 0 deletions _posts/2014-05-11-my-first-experience-with-phantomjs.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "PhantomJS 初體驗"
tags: [phantomjs, javascript, nodejs]
redirect_from: /2014/05/11/my-first-experience-with-phantomjs.html
---

最近因為想要爬個網頁資料,結果礙於處理不了萬惡的 `__VIEWSTATE``__EVENTVALIDATION` ,在時間的壓力下就決定改用 ggm 推薦 [PhantomJS][1] ,一用之下驚為天人啊,太神了!
Expand Down
Expand Up @@ -2,6 +2,7 @@
layout: post
title: SECUINSIDE CTF Finals 2014 Writeup - Reversing 100
tags: [ctf, writeup]
redirect_from: /2014/07/13/secuinside-2014-final-writeup-reversing-100.html
---

這題在現場沒解完...因為覺得應該只差一點點,回來之後果然弄出來了啊!
Expand Down
1 change: 1 addition & 0 deletions _posts/2015-03-17-build-gh60-revchn-on-mac.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "在 Mac OSX 上編譯 GH60 RevCHN Firmware"
tags: [keyboard, gh60]
redirect_from: /2015/03/17/build-gh60-revchn-on-mac.html
---

來記錄一下在 Mac OSX 上,怎麼編譯和刷 GH60 RevCHN 的韌體
Expand Down
1 change: 1 addition & 0 deletions _posts/2015-04-19-modify-git-commit-time.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "更改 git commit 時間"
tags: [git]
redirect_from: /2015/04/19/modify-git-commit-time.html
---

最近剛好需要更改 git repo 的 commit time ,研究了一下順便把它記錄下來。
Expand Down
1 change: 1 addition & 0 deletions _posts/2015-10-11-personal-finance-softwares.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "用過的記帳軟體們"
tags: [software]
redirect_from: /2015/10/11/personal-finance-softwares.html
---

整理一下自己的記帳歷史 XD 從 2009 到今年 2015 每天記帳也快七年了,一路上也用了不少套軟體:
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-05-25-personal-finance-software-2023.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "用過的記帳軟體們 - 2023 版"
tags: [software]
redirect_from: /2023/05/25/personal-finance-software-2023.html
---

結果距離[上一篇]({% link _posts/2015-10-11-personal-finance-softwares.md %})已經過了 8 年,
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-10-22-asus-pn51-asaka-newton-a50.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "幫 ASUS PN51 換 Asaka Newton A50 散熱機殼"
tags: [hardware]
redirect_from: /2023/10/22/asus-pn51-asaka-newton-a50.html
---

最近把拿來架伺服器的 [ASUS PN51][] 搬進書房之後,發現負載稍微大一點的時候風扇聲有點惱人,於是就想說來換個無風扇的散熱機殼。選擇的是 Asaka 出的 [Newton A50][] ,不過其實我本來是覺得 [Turing A50 MKII][] 比較好看,不過不知道是不是絕版了?找了 Amazon 發現買不到,所以就換成 [Newton A50][] ,後來覺得 [Newton A50][] 也還不錯,畢竟對寸土寸金的書房來說 [Turing A50 MKII][] 可能還是稍大了一點。
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-11-03-llama-2-prompt.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Llama 2 Prompt"
tags: [ai]
redirect_from: /2023/11/03/llama-2-prompt.html
---

如果不透過任何 wrapper ,直接操作 Llama2 的話,想要做到 system prompt 或是歷史對話的效果,其實是要用特殊的格式來建構 prompt 。
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-11-12-slicemk-ergodox-wireless.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "SliceMK ErgoDox Wireless 鍵盤"
tags: [keyboard]
redirect_from: /2023/11/12/slicemk-ergodox-wireless.html
---

之前跟團組了一把 [ErgoDoxTW] 之後,一直想找有沒有無線的版本,但是一直沒有找到,本來有往 [Sofle][Corne] 去找,不過沒有找到特別合適的賣家,很多都是要買一堆零件和 PCB 自己焊,代組好的又有點超出預算,中間也有想過要不要買 [nice!nano] 之類的主控來換掉原本 [ErgoDoxTW] 上面的 Teensy ,不過對我這個硬體新手來說還是太難了,所以一直沒有下手。
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-12-22-maestral-dropbox-client.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Maestral (Dropbox Client)"
tags: [software, git]
redirect_from: /2023/12/22/maestral-dropbox-client.html
---

[Maestral][maestral] 是一個 Dropbox 的第三方跨平台 client ,用了一陣子覺得還不錯,最讚的是還可以擺脫 Dropbox 免費帳戶的三個裝置限制。
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-12-30-mastodon-with-docker.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "用 Docker 架設 Mastodon"
tags: [docker]
redirect_from: /2023/12/30/mastodon-with-docker.html
---

之前就一直想試試看 [Mastodon](https://joinmastodon.org/) ,最近有空成功用 Docker 跑起來,其實滿容易的,網路上也可以找到詳細的教學,主要就是用 [官方提供的 docker-compose.yml](https://github.com/mastodon/mastodon/blob/main/docker-compose.yml) 來執行。
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-01-08-ellipsis-in-macos.md
@@ -1,6 +1,7 @@
---
layout: post
title: "macOS 裡的刪節號"
redirect_from: /2024/01/08/ellipsis-in-macos.html
---

前陣子在試著加 macOS 的快速鍵設定的時候,發現像訊息選單裡 **封鎖成員⋯** / **刪除對話⋯** 之中的刪節號一直打不出來,如圖:
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-01-09-goaccess-nginx-access-log.md
@@ -1,6 +1,7 @@
---
layout: post
title: "用 GoAccess 視覺化 Nginx Access Log"
redirect_from: /2024/01/09/goaccess-nginx-access-log.html
---

[用 Docker 架設 Mastodon](/2023/12/30/mastodon-with-docker.html) 之後,本來想說一樣來把 Nginx 的 access log 丟到 EFK 裡觀察一下狀況,沒想到在我把之前 EFK docker compose 裡的 image 版本升一升之後……就跑不起來了……看起來是遇到各種 ssl / service account token 問題 QQ
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-01-24-vscode-ifdef-dim.md
@@ -1,6 +1,7 @@
---
layout: post
title: "VSCode 的 #ifdef 套色"
redirect_from: /2024/01/24/vscode-ifdef-dim.html
---

在用 VSCode 處理 C/C++ 檔案的時候,如果裝了官方的 C/C++ extension ,會發現 `#ifdef` 預設是沒有套色的,查了一輪資料又再試了一下有找到有幾個方法來解決。
Expand Down
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Unifi USW Flex Mini DHCP Option 43 Adoption"
tags: []
redirect_from: /2024/02/16/unifi-usw-flex-mini-dhcp-option-43-adoption.html
---

因為買了 Flex Mini 之後發現沒辦法 ssh 進去 set-inform 來讓 controller 接管,所以先研究了一下 L2 Discover ,但是因為我 controller 開在 container 的 bridge network 裡,所以沒辦法用 L2 Discover (我猜用 host network 應該可以,不過沒實驗過),只好嘗試使用 DHCP Option 43 來接管裝置。
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-02-23-starknet-developer-airdrop.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "Starknet 的 Developer Airdrop"
tags: []
redirect_from: /2024/02/23/starknet-developer-airdrop.html
---

最近看到有人分享了因為貢獻 open source 專案而領到 Starknet 的 airdrop ,想說來看一下實際的分配機制是什麼。
Expand Down
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "用 iTerm2 的 Command Composer 取代 ShellGPT"
tags: []
redirect_from: /2024/02/27/replace-shellgpt-with-iterm2-command-composer.html
---

在這個到處都是 AI 的年代,不管用 VSCode 或是 Vim 都有超讚的 GitHub Copilot Extension 可以用,不過在終端機裡想要快速查指令還是沒有找到特別好用的工具。
Expand Down
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "用 OpenAI 的 Whisper API 來處理 Telegram 語音訊息"
tags: [ai, telegram]
redirect_from: /2024/03/15/telegram-voice-message-transcription-using-openai.html
---

好像沒什麼好說的,就是個接 API 的小練習。值得一提的可能是發現了 [ffmpy](https://pypi.org/project/ffmpy/) ,其實裡面就是幫你用 `subprocess` 呼叫 `ffmpeg` 指令
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-03-20-try-gpt-4-vision.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "試用 OpenAI 的 GPT-4 Vision API"
tags: [ai]
redirect_from: /2024/03/20/try-gpt-4-vision.html
---

接著上次 [用 OpenAI 的 Whisper API 來處理 Telegram 語音訊息](/2024/03/15/telegram-voice-message-transcription-using-openai.html) 之後,又試著接了一下 `gpt-4-vision-preview` 來處理圖片。之前的對話一樣都是用 chat completion API ,就只是照著參數把圖片傳進去而已。
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-03-21-try-gpt-function-calling.md
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "試用 OpenAI 的 Function Calling API"
tags: [ai]
redirect_from: /2024/03/21/try-gpt-function-calling.html
---

結果試了一下發現 API 很親切耶,只要多給一個 `tools` 參數就可以了,然後再照著回應裡的 `tool_calls` 來呼叫,再把結果傳回去讓 GPT 來接著回應。
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-04-01-iterm2-escape-sequence-to-open-url.md
@@ -1,6 +1,7 @@
---
layout: post
title: "用 iTerm2 的 Escape Sequence 來開啟網頁"
redirect_from: /2024/04/01/iterm2-escape-sequence-to-open-url.html
---

最近有個困擾了一陣子的問題:在用 [GitHub CLI](https://cli.github.com) 執行 `gh browse` 的時候,總是沒辦法正確的打開瀏覽器。
Expand Down

0 comments on commit faa66de

Please sign in to comment.