Skip to content

Commit 91d317f

Browse files
committed
Various updates
1 parent 3bcd986 commit 91d317f

9 files changed

Lines changed: 113 additions & 7 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node
2+
3+
RUN npm install -g @anthropic-ai/claude-code
4+
RUN mkdir -p /mnt/website
5+
RUN mkdir -p /home/node/.claude
6+
RUN chown node /mnt/website
7+
RUN chown node /home/node/.claude
8+
9+
USER node
10+
11+
WORKDIR /mnt/website
12+
13+
ENTRYPOINT ["bash"]

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
"buildserve": "astro check && tsc --noEmit && astro build && astro preview --port 3000",
1515
"serve": "astro preview --port 8000",
1616
"preview": "astro preview --port 8000",
17-
"astro": "astro"
17+
"astro": "astro",
18+
"pbuild": "podman build -t simshadows/website-claude-code-sandbox .claude/container-sandbox",
19+
"prun": "yarn pstart",
20+
"pstart": "yarn pclean; podman run --name website-claude-code-sandbox --hostname website-claude-sandbox --mount type=volume,src=website-claude-code-sandbox-usersetting,dst=/home/node/.claude --mount type=bind,src=.,dst=/mnt/website -dit simshadows/website-claude-code-sandbox",
21+
"pterm": "podman exec -it website-claude-code-sandbox bash",
22+
"pstop": "podman stop website-claude-code-sandbox",
23+
"pclean": "yarn pstop; podman rm website-claude-code-sandbox"
1824
},
1925
"dependencies": {
2026
"@astrojs/check": "0.9.4",

src/pages/_index-links.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ const {
2929
<ul>
3030
<li><a href="/c/cheatsheets/"><b>Cheatsheets</b></a>
3131
<ul>
32-
{showWIP && <li><a href="/c/cheatsheets/bash/"><b>bash</b></a> <Wip /></li>}
32+
<li><a href="/c/cheatsheets/bash/"><b>bash</b></a></li>
3333
{showWIP && <li><a href="/c/cheatsheets/cpp/"><b>C++</b></a> <Wip /></li>}
3434
{showWIP && <li><a href="/c/cheatsheets/general/"><b>General</b></a> <Wip /></li>}
35-
{showWIP && <li><a href="/c/cheatsheets/git/"><b>git</b></a> <Wip /></li>}
35+
<li><a href="/c/cheatsheets/git/"><b>git</b></a></li>
3636
{showWIP && <li><a href="/c/cheatsheets/html-css/"><b>HTML/CSS</b></a> <Wip /></li>}
3737
<li><a href="/c/cheatsheets/java/"><b>Java</b></a></li>
3838
<li><a href="/c/cheatsheets/javascript-typescript/"><b>Javascript/Typescript</b></a></li>
@@ -44,8 +44,10 @@ const {
4444
</li>
4545
{showWIP && <li><a href="/c/cheatsheets/making-changes-to-this-website/"><b>Making changes to this website</b></a></li>}
4646
<li><a href="/c/cheatsheets/podman/"><b>Podman</b></a></li>
47+
{showWIP && <li><a href="/c/cheatsheets/powershell/"><b>PowerShell</b></a> <Wip /></li>}
4748
<li><a href="/c/cheatsheets/python/"><b>Python</b></a></li>
4849
{showWIP && <li><a href="/c/cheatsheets/sql/"><b>SQL and Common Relational DBMS Features</b></a> <Wip /></li>}
50+
{showWIP && <li><a href="/c/cheatsheets/svn/"><b>SVN</b></a> <Wip /></li>}
4951
<li><a href="/c/cheatsheets/xml-xslt/"><b>XML and XSLT</b></a></li>
5052
</ul>
5153
</li>

src/pages/c/cheatsheets/bash/_sources/controlflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
echo "first"; echo "second"
1+
echo "always executes"; echo "also always executes"
22
echo "always executes" || echo "only executes if first command fails"
33
echo "always executes" && echo "only executes if first command does not fail"
44

src/pages/c/cheatsheets/bash/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Code from "@components/Code.astro";
1212
import Todo from "@components/Todo";
1313

1414

15-
*This is NOT a first-time learning resource. Some parts are intentionally out of order and kept as.*
15+
*This is NOT a first-time learning resource.*
1616

1717
## Resources
1818

src/pages/c/cheatsheets/git.mdx

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,71 @@
22
layout: "@layouts/MDLayout.astro"
33
title: git Cheatsheet
44
description: My git cheatsheet because I forget commands a lot.
5-
keywords: ["programming", "git", "version control", "cheatsheet"]
5+
keywords: ["programming", "git", "version control", "vcs", "cheatsheet"]
66

77
indexTitle: git
8-
wip: true
98
---
109

10+
## Common Commands
11+
12+
```
13+
[W]------------------+ [S]-------------+
14+
[H]-----+ | Working Copy | | Staging Area |
15+
| HEAD | | Working Tree | <--> | Index |
16+
+------+ | Working Directory | | |
17+
+-------------------+ +--------------+
18+
```
19+
20+
```bash
21+
git status
22+
git log --all --oneline --graph --decorate
23+
git log --all --pretty=fuller --stat --graph --decorate
24+
25+
# diff [H] and [W]
26+
git diff
27+
# diff [W] and [S]
28+
git diff --staged
29+
```
30+
31+
```bash
32+
# Stage entire files [W --> S]
33+
git add -A
34+
git add foobar.txt
35+
36+
# Unstage entire files [S --> W]
37+
git restore --staged foobar.txt
38+
39+
# Revert all unstaged changes + delete all untracked/ignored files
40+
git clean -fdx
41+
```
42+
43+
```bash
44+
# Make a commit
45+
git commit
46+
# Make a commit that replaces the tip of the current branch
47+
git commit --amend
48+
```
49+
50+
```bash
51+
# List all branches (verbose)
52+
git branch -avv
53+
54+
# Checkout an existing local branch `myawesomebranch`.
55+
# It will also guess and create a tracking branch if no local branch exists.
56+
git checkout myawesomebranch
57+
58+
# Create new branch `myawesomebranch`
59+
git branch myawesomebranch
60+
```
61+
62+
```bash
63+
# Download from remote `origin`
64+
git fetch
65+
66+
# `git fetch`, then attempt to fast forward to match remote
67+
git pull
68+
```
69+
1170
## Rebase
1271

1372
```bash
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: "@layouts/MDLayout.astro"
3+
title: PowerShell Cheatsheet
4+
description: My PowerShell cheatsheet because I forget commands a lot.
5+
keywords: ["PowerShell", "cheatsheet"]
6+
7+
indexTitle: PowerShell
8+
wip: true
9+
---
10+
11+
TODO

src/pages/c/cheatsheets/svn.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: "@layouts/MDLayout.astro"
3+
title: SVN Cheatsheet
4+
description: My SVN cheatsheet because I forget commands a lot.
5+
keywords: ["programming", "SVN", "version control", "vcs", "cheatsheet"]
6+
7+
indexTitle: SVN
8+
wip: true
9+
---
10+
11+
```bash
12+
svn info
13+
```

src/pages/food/wishlist.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Places I want to try specifically for the poutine:
8888
- I list it under Australia Chains because they have a SA location.
8989
- Expect about $30 per dish.
9090
- If you want water, always specifically ask for tap water, otherwise they will sneakily give you fancy water.
91+
- <Ve n="Chatkazz" c="Indian; Vegetarian"/>
92+
- I should try it in Harris Park in Sydney.
9193
- <Ve n="DOC Pizza & Mozzarella Bar" c="Italian; Pizza" l="Carlton, Melbourne; Surry Hills, Sydney"/>
9294
- <Ve n="Dodee Paidang" c="Thai" l="(various locations)"/>
9395
- Flagships store in Sydney, more stores in Melbourne.

0 commit comments

Comments
 (0)