Skip to content

Commit db9d13b

Browse files
authored
1 parent 50bda17 commit db9d13b

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ description: > # this means to ignore newlines until "baseurl:"
66
纯情主义
77
baseurl: "" # the subpath of your site, e.g. /blog
88
url: "https://a-boy.github.io" # the base hostname & protocol for your site
9+
910
twitter_username: codyluo369502
1011
github_username: a-boy
12+
13+
permalink: /:categories/:title
14+
#permalink: /:categories/:title:output_ext
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
layout: post
3+
date: 2025-06-28
4+
author: Cody Luo
5+
comments: true
6+
tags: [编程, 笔记]
7+
---
8+
9+
## WSL
10+
<https://learn.microsoft.com/en-us/windows/wsl/basic-commands>
11+
12+
```
13+
wsl --install
14+
15+
wsl --list --online
16+
PS C:\Users\PC> wsl -l -o
17+
以下是可安装的有效分发的列表。
18+
使用“wsl.exe --install <Distro>”安装。
19+
20+
NAME FRIENDLY NAME
21+
AlmaLinux-8 AlmaLinux OS 8
22+
AlmaLinux-9 AlmaLinux OS 9
23+
AlmaLinux-Kitten-10 AlmaLinux OS Kitten 10
24+
AlmaLinux-10 AlmaLinux OS 10
25+
Debian Debian GNU/Linux
26+
FedoraLinux-42 Fedora Linux 42
27+
SUSE-Linux-Enterprise-15-SP6 SUSE Linux Enterprise 15 SP6
28+
SUSE-Linux-Enterprise-15-SP7 SUSE Linux Enterprise 15 SP7
29+
Ubuntu Ubuntu
30+
Ubuntu-24.04 Ubuntu 24.04 LTS
31+
archlinux Arch Linux
32+
kali-linux Kali Linux Rolling
33+
openSUSE-Tumbleweed openSUSE Tumbleweed
34+
openSUSE-Leap-15.6 openSUSE Leap 15.6
35+
Ubuntu-18.04 Ubuntu 18.04 LTS
36+
Ubuntu-20.04 Ubuntu 20.04 LTS
37+
Ubuntu-22.04 Ubuntu 22.04 LTS
38+
OracleLinux_7_9 Oracle Linux 7.9
39+
OracleLinux_8_7 Oracle Linux 8.7
40+
OracleLinux_9_1 Oracle Linux 9.1
41+
42+
wsl.exe --install -d <Distribution Name>
43+
44+
wsl -l -v
45+
wsl --set-default <DistributionName>
46+
47+
wsl --update
48+
49+
wsl hostname -I: Returns the IP address of your Linux distribution installed via WSL 2 (the WSL 2 VM address)
50+
ip route show | grep -i default | awk '{ print $3}': Returns the IP address of the Windows machine as seen from WSL 2 (the WSL 2 VM)
51+
52+
wsl --unregister <DistributionName>
53+
wsl --uninstall
54+
wsl --help
55+
56+
```
57+
58+
## Ruby Jekyll theme mimima
59+
<https://www.ruby-lang.org/en/documentation/quickstart/>
60+
```
61+
sudo apt update
62+
sudo apt upgrade
63+
sudo apt install build-essential
64+
sudo apt install clang make ruby-dev libffi-dev
65+
sudo apt-get install ruby-full
66+
```
67+
68+
If you’re using Linux, open up a shell and type irb and hit enter.
69+
irb(main):002:0> puts "Hello World"
70+
Hello World
71+
=> nil
72+
73+
irb(main):006:0> Math.sin(1)
74+
=> 0.8414709848078965
75+
76+
gem install bundler jekyll
77+
78+
jekyll new weed
79+
80+
cd weed
81+
82+
bundle exec jekyll serve
83+
84+
# => Now browse to http://localhost:4000
85+

0 commit comments

Comments
 (0)