Skip to content

Commit 6a54636

Browse files
feat: main
1 parent 320465c commit 6a54636

89 files changed

Lines changed: 274 additions & 155 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-added-large-files
8+
- id: check-merge-conflict
9+
- id: check-symlinks
10+
#- id: check-yaml
11+
- id: detect-private-key
12+
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
13+
# rev: 3.0.0 # or specific git tag
14+
# hooks:
15+
# - id: shellcheck
16+
# args:
17+
# - "-e"
18+
# - "SC1090"
19+
# - "-e"
20+
# - "SC1091"
21+
# - repo: https://github.com/hadolint/hadolint
22+
# rev: "v2.12.0"
23+
# hooks:
24+
# - id: hadolint-docker
25+
# args:
26+
# - --ignore
27+
# - DL4006
28+
# - --ignore
29+
# - DL3015
30+
# - repo: https://github.com/sirosen/check-jsonschema
31+
# rev: 0.30.0
32+
# hooks:
33+
# - id: check-github-workflows
34+
35+
# - repo: https://github.com/Yelp/detect-secrets
36+
# rev: v1.5.0
37+
# hooks:
38+
# - id: detect-secrets
39+
# name: Detect secrets
40+
# description: Detects high entropy strings that are likely to be passwords.
41+
# entry: detect-secrets-hook
42+
# language: python
43+
# # for backward compatibility
44+
# files: .* # all files
45+
# args: ["--exclude-files", ".dagger/postgresdb/dagger.json",
46+
# "--exclude-files", "kind/README.md"
47+
# ]

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM scratch
2-
COPY /tmp/hugo/static/dagger .
1+
FROM scratch
2+
COPY /tmp/hugo/static/dagger .

Taskfile.yaml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ vars:
1414
dotenv: ['.env', '{{.HOME}}/.env']
1515

1616
tasks:
17-
serve:
17+
serve-presentation:
1818
desc: Watch files in presentation/ and rerun task serve on changes
1919
cmds:
2020
- |
@@ -31,7 +31,7 @@ tasks:
3131
port: 4427
3232
dir: presentations
3333
presentation:
34-
sh: gum choose $(basename -a {{ .dir }}/*/)
34+
sh: gum choose $(basename -a {{ .dir }}/*/ | grep -v '^tests$')
3535

3636
lint-repository:
3737
desc: Lint repository using Dagger blueprint function
@@ -123,31 +123,16 @@ tasks:
123123
desc: Select a task to run
124124
cmds:
125125
- |
126-
task=$(yq e '.tasks | keys' Taskfile.yaml | sed 's/^- //' | gum choose)
127-
task ${task}
126+
# Extract task names (keep internal colons, remove only trailing colon)
127+
task_name=$(task -l | awk '/^\*/ {print $2}' | sed 's/:$//' | gum choose)
128+
129+
# Run the selected task
130+
[ -n "$task_name" ] && task "$task_name"
128131
129-
commit:
130-
desc: Commit + push code into branch
132+
default:
133+
desc: Default task is select & do (work)
131134
cmds:
132-
- rm -rf dist/
133-
- git branch --set-upstream-to=origin/{{ .BRANCH }}
134-
- git pull
135-
- |
136-
git add *
137-
if [[ -n $(git status --porcelain) ]]; then
138-
echo "committing changes"
139-
echo "ENTER COMMIT MESSAGE"
140-
COMMIT_MESSAGE=$(echo $(gum choose "feat: {{ .BRANCH }}" "fix: {{ .BRANCH }}" "BREAKING CHANGE: {{ .BRANCH }}" "ENTER CUSTOM COMMIT MESSAGE"))
141-
142-
if [ "$COMMIT_MESSAGE" == "ENTER CUSTOM COMMIT MESSAGE" ]; then
143-
COMMIT_MESSAGE=$(echo $(gum input --placeholder "scope" --value "commit to {{ .BRANCH }}"))
144-
fi
145-
146-
git commit --allow-empty -a -m "$(echo ${COMMIT_MESSAGE})"
147-
else
148-
echo "no changes"
149-
fi
150-
git push origin -u {{ .BRANCH }}
135+
- task do
151136

152137
lychee:
153138
desc: Check links with lychee

argo-events.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,3 @@ spec:
243243
steps: 3
244244
```
245245
</details>
246-
247-
248-

certificates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# stuttgart-things/docs/certificates
22

3-
## Install public cert Linux
3+
## Install public cert Linux
44

55
```bash
66
cd /usr/local/share/ca-certificates/

dagger.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ container-use version # → confirms install
4646
* OPEN NEW WINDOW (COULD BE VIA REMOTE EXPORER/SSH)
4747
* OPEN TERMINAL
4848
* CREATE DEMO REPO
49-
49+
5050
```bash
5151
mkdir hello
5252
cd hello
@@ -158,7 +158,7 @@ INSERT INTO tasks (project_id, assignee_id, title, status, due_date) VALUES
158158
(2, NULL, 'Set up monitoring', 'open', NULL);
159159
EOF
160160

161-
psql -h $(hostname -f) -p 31641 -U dev -d appdb -f bootstrap.sql
161+
psql -h $(hostname -f) -p 31641 -U dev -d appdb -f bootstrap.sql
162162
```
163163

164164
```bash
@@ -289,7 +289,7 @@ unset SSH_AUTH_SOCK
289289
[connection-interface](https://docs.dagger.io/configuration/custom-runner/#connection-interface)
290290

291291
```bash
292-
## STOP ANY EXISTING/RUNNING ENGINE(S) w/ DOCKER STOP..
292+
## STOP ANY EXISTING/RUNNING ENGINE(S) w/ DOCKER STOP..
293293

294294
docker run -d --rm \
295295
-v /var/lib/dagger \

golang-operator.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,3 @@ spec:
338338
```
339339
340340
</details>
341-

helm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ EOF
169169
```bash
170170
# CREATE PASSWORD
171171
slappasswd -h {SSHA} -s hallobibi
172-
ldapadd -x -H ldap://localhost:1389 -D "cn=admin,dc=example,dc=org" -W -f user.ldif
172+
ldapadd -x -H ldap://localhost:1389 -D "cn=admin,dc=example,dc=org" -W -f user.ldif
173173
```
174174

175175
## ADD USER TO GROUP
@@ -256,7 +256,7 @@ EOF
256256
```
257257

258258
```bash
259-
pip install ldap3
259+
pip install ldap3
260260
export LDAP_ADMIN_PASSWORD="Not@SecurePassw0rd"
261261
python3 ldap_login.py
262262
```

hugo.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,3 @@ nginx
5252
```
5353

5454
</details>
55-

kcl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tekton.PipelineRun {
3131
{name = k, value = v} for k, v in vars.pipeline_params
3232
]
3333
}
34-
}
34+
}
3535
```
3636

3737
```hcl
@@ -85,7 +85,7 @@ pipeline_name_prefix = "pr-ansible"
8585
```bash
8686
kcl mod init
8787
mod add tekton-pipelines
88-
kcl run main.k
88+
kcl run main.k
8989
```
9090

9191
</details>
@@ -198,7 +198,7 @@ spec:
198198
```
199199

200200
```bash
201-
crossplane render claim.yaml composition.yaml function.yaml
201+
crossplane render claim.yaml composition.yaml function.yaml
202202
```
203203

204204
</details>

0 commit comments

Comments
 (0)