Skip to content

Commit 4cc7b49

Browse files
committed
...
1 parent fb81037 commit 4cc7b49

File tree

6 files changed

+65
-16
lines changed

6 files changed

+65
-16
lines changed

.gitpod.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ ports:
44
- port: 8888
55
tasks:
66
- command: . /scripts/gitpod.sh
7-
- command: ./init.sh
87
vscode:
98
extensions:
109
- asvetliakov.vscode-neovim

misc/content/2021/01/tips-on-nbconvert/tips-on-nbconvert.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ Slug: tips-on-nbconvert
55
Title: Tips on nbconvert
66
Category: Computer Science
77
Tags: Computer Science, Jupyter, JupyterLab, notebook, nbconvert, template
8-
Modified: 2023-12-12 23:15:38
8+
Modified: 2025-05-08 15:58:11
99

1010
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
1111

1212

1313
1. Converting too many notebooks at the same (multiprocessing) causes `zmq.error.ZMQError: Address already in use`.
1414
The simple way to fix this issue is to limit the number of processes converting notebooks.
1515
It is suggested that you keep in within 3.
16+
17+
2. Convert a Jupyter notebook to markdown format.
18+
19+
:::bash
20+
jupyter nbconvert --to markdown notebook.ipynb
1621

1722
2. It is recommended that you use the template
1823
provided by the Python library

misc/content/2022/05/tips-on-gcp/tips-on-gcp.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Status: published
22
Date: 2022-05-09 23:39:30
3-
Modified: 2025-05-08 15:20:14
3+
Modified: 2025-05-08 15:54:55
44
Author: Benjamin Du
55
Slug: tips-on-gcp
66
Title: Tips on GCP
@@ -44,21 +44,9 @@ for instructions.
4444
gcloud init
4545
gcloud auth application-default login
4646

47-
## GitHub Actions & GCP
48-
49-
- [actions-runner-controller](https://github.com/actions/actions-runner-controller)
50-
51-
- [Optimizing Costs with GitHub Actions: Dynamically Starting and Stopping Self-Hosted Runner VMs](https://nakamasato.medium.com/optimizing-costs-with-github-actions-self-hosted-runner-dynamically-starting-and-stopping-gcp-vms-c04acb69bdee)
52-
53-
1. You must allow http and https traffic for it to work.
54-
For more instructions,
55-
pelase refer to
56-
[Setup GitHub Actions self-hosted runners on Google Compute Engine Instance](https://www.youtube.com/watch?v=yfMzNVtQsVw)
57-
.
58-
5947
## References
6048

61-
- [GCP Compute Engine VM Instances]( https://www.legendu.net/misc/blog/gcp-compute-engine-vm-instances )
49+
- [Tips on GCP Compute Engine]( https://www.legendu.net/misc/blog/tips-on-gcp-compute-engine )
6250

6351
- [Tips on BigQuery]( https://www.legendu.net/misc/blog/tips-on-bigquery )
6452

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Status: published
2+
Date: 2025-05-08 15:51:58
3+
Modified: 2025-05-08 15:51:58
4+
Author: Benjamin Du
5+
Slug: setup-github-actions-self-hosted-runners-on-gcp
6+
Title: Setup GitHub Actions Self-Hosted Runners on GCP
7+
Category: Computer Science
8+
Tags: Computer Science, programming, GitHub, actions, runner, self-hosted, GCP, cloud,
9+
10+
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
11+
12+
## GitHub Actions & GCP
13+
14+
- [actions-runner-controller](https://github.com/actions/actions-runner-controller)
15+
16+
- [Optimizing Costs with GitHub Actions: Dynamically Starting and Stopping Self-Hosted Runner VMs](https://nakamasato.medium.com/optimizing-costs-with-github-actions-self-hosted-runner-dynamically-starting-and-stopping-gcp-vms-c04acb69bdee)
17+
18+
1. You must allow http and https traffic for it to work.
19+
For more instructions,
20+
pelase refer to
21+
[Setup GitHub Actions self-hosted runners on Google Compute Engine Instance](https://www.youtube.com/watch?v=yfMzNVtQsVw)
22+
.
23+
24+
## References
25+
26+
- [Connecting GitHub Actions and Google Cloud Deploy](https://cloud.google.com/blog/products/devops-sre/using-github-actions-with-google-cloud-deploy)
27+
28+
- [Deploy to Cloud Run with GitHub Actions](https://cloud.google.com/blog/products/devops-sre/deploy-to-cloud-run-with-github-actions/)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Status: published
2+
Date: 2025-05-08 15:54:11
3+
Modified: 2025-05-08 15:54:11
4+
Author: Benjamin Du
5+
Slug: tips-on-gcp-compute-engine
6+
Title: Tips on GCP Compute Engine
7+
Category: Computer Science
8+
Tags: Computer Science, programming, GCP, cloud, compute engine
9+
10+
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
11+
12+
- [GCP Compute Engine VM Instances]( https://www.legendu.net/misc/blog/gcp-compute-engine-vm-instances )
13+
- [Setup GitHub Actions Self-Hosted Runners on GCP]( https://www.legendu.net/misc/blog/setup-github-actions-self-hosted-runners-on-gcp )
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Status: published
2+
Date: 2025-05-08 15:58:29
3+
Modified: 2025-05-08 15:58:29
4+
Author: Benjamin Du
5+
Slug: tips-on-terraform
6+
Title: Tips on Terraform
7+
Category: Computer Science
8+
Tags: Computer Science, programming, cloud, Terraform
9+
10+
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
11+
12+
- [Terraform on Google Cloud V1.1 — Deploying VM with Github actions](https://medium.com/google-cloud/terraform-on-google-cloud-v1-1-deploying-vm-with-github-actions-446bc1061420)
13+
14+
- [terraform-google-github-actions-runners](https://github.com/terraform-google-modules/terraform-google-github-actions-runners)
15+
16+
- [Terraform Basics](https://www.youtube.com/watch?v=_45W3Z8XWL4)

0 commit comments

Comments
 (0)