Skip to content

Commit b2ad097

Browse files
committedNov 14, 2024·
Update at 2024-11-14_18-00
1 parent 87b08d1 commit b2ad097

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed
 

‎journals/2023-08-05.md

+11
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,14 @@
1414
- ***References***
1515
- ChatGPT
1616
- ---
17+
- #### Use "cursor"
18+
- `cursor`
19+
- ***Notes***
20+
- `Ctrl-l` # Open Chat
21+
- `Ctrl-i` # Open Compositor
22+
- `Ctrl-k` # Pop up a chat window (When you selected some code)
23+
- `Ctrl-w` # Close current window (Like in Chromium)
24+
- `Ctrl-Tab` # Switch between files
25+
- ***References***
26+
- `Give me the Cursor AI editor cheat sheet` # Artificial intelligence
27+
- ---

‎journals/2024-09-08.md

+24
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,30 @@
175175
- `npx wrangler d1 execute products --remote --command="SELECT * FROM products"` # Validate the data
176176
- `npx wrangler deploy` # Deploy your Worker on the Internet
177177
- ***Notes***
178+
- `vi ~/.config/store/auth-db/wrangler.toml` # Define environment variables
179+
```
180+
[vars]
181+
JWT_SECRET = "yourValue"
182+
```
183+
- `vi ~/.config/store/auth-db/src/index.js` # Access the secret
184+
```
185+
env.JWT_SECRET
186+
```
187+
- `wrangler tail` # Show real-time logs
188+
```
189+
(error) Signup error: Error: D1_ERROR: no such table: users: SQLITE_ERROR
190+
```
191+
- `vi ~/.config/store/auth-db/schema.sql` # Remember to add `IF NOT EXISTS` to create the `users` table
192+
```
193+
DROP TABLE IF EXISTS users;
194+
CREATE TABLE IF NOT EXISTS users (
195+
id INTEGER PRIMARY KEY AUTOINCREMENT,
196+
email TEXT UNIQUE NOT NULL,
197+
password_hash TEXT NOT NULL,
198+
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
199+
last_login DATETIME
200+
);
201+
```
178202
- Create (Add the new product to the database)
179203
```
180204
curl --request POST http://localhost:8787/add_product \

‎pages/animationAndComic.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
- Demon Lord, Retry! / 重来吧,魔王大人! S01E12.S02E07 0929
2020
- 蓝色监狱 S01E24.S02E6
2121
- 地。-关于地球的运动 S01E07
22-
- 暗杀女仆冥土小姐 S01E02 animation
23-
- 被逐出队伍的治愈师,其实是最强的 S01E02
24-
- 魔王2099 S01E01
25-
- 乱马1/2 S01E02
22+
- 暗杀女仆冥土小姐 S01E06
23+
- 被逐出队伍的治愈师,其实是最强的 S01E06
24+
- 魔王2099 S01E05
25+
- 乱马1/2 S01E02 animation
2626
- 战神联盟 21
2727
- 神墓 - 26
2828
- 天影 - 06

0 commit comments

Comments
 (0)
Please sign in to comment.