Razon Yang
LeetCode 算法題 – Find The Difference

給定兩個只包含小寫字母的字符串 st,其中字符串 t 是由字符串 s 亂序後,再在隨機位置添加一個字母而成,請找到該隨機添加的字母。

Razon Yang
cURL 基本用法

cURL 是一個數據傳輸的命令行腳本,筆者經常用於接口測試,本文簡單介紹下 cURL 的基本用法。

Razon Yang
Shell 終端字符串換行

Shell 終端字符串換行方法。

Razon Yang
WSL Ubuntu 升級到 Go 1.13

WSL Ubuntu 升級到 Go 1.13 教程。

Razon Yang
Google Adsense Failed to load resource: the server responded with a status of 403
博客換域名後,Google Adsense 不顯示,瀏覽器控制檯出現以下錯誤: Failed to load resource: the server responded with a status of 403 這個是因為需要將新域名添加到 Adsense,審核過後就可以顯示了。審核一般幾天內就能完成,特殊情況最長兩週時間,不過筆者新域名當天就通過了,耐心等待就好。
Razon Yang
Arch Linux ZSH 安裝自動補全/命令提示插件

Arch Linux ZSH 安裝自動補全/命令提示插件的安裝和使用。

Razon Yang
雙系統更新 BIOS 後,GRUB 引導項消失的解決方法

筆者筆記本(ThinkPad X1 Extreme)是雙系統引導,昨天更新了下版本 1.25 的 BIOS ,然後發現我的 GRUB 引導不見了…無論如何都是引導 Windows,筆者嘗試了以下方法:

  • chroot 到 Linux,重建 GRUB:grub-installgrub-mkconfig
  • 關閉 Windows 快速啟動,bcdedit /set "{bootmgr}" path "\EFI\Arch\grubx64.efi"

無果,在 BIOS Boot 或 Boot Menu 中都沒有 GRUB 的蹤影。

Razon Yang
MySQL 創建用戶並授權

MySQL 創建用戶並授權教程。

Razon Yang
CentOS Repository epel is listed more than once in the configuration

在使用 yum 如果出現以下提示,一般是設置了多個 epel 倉庫:

Repository epel is listed more than once in the configuration

Razon Yang
Razon Yang
Razon Yang
PHP 設置 Redis 存儲 Session

最近購買了 Redis 雲數據庫,打算將 PHP Session 存放到 Redis。