Skip to content

Commit be0bbaf

Browse files
committed
Progress
1 parent 70fc553 commit be0bbaf

11 files changed

+51
-38
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Alternatives
2+
3+
<i class="fa-duotone fa-solid fa-bullseye-arrow fa-4x"></i> <!-- .element: style="float: right;" -->
4+
5+
High-level programming language
6+
7+
Abstraction (consume logic from existing tools)
8+
9+
XXX

080_ci_cd/scripting/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<i class="fa-duotone fa-solid fa-poo-storm fa-4x"></i> <!-- .element: style="float: right;" -->
44

5-
set -o errexit
5+
set -o errexit (all you need? No!)
66

77
set -o nounset (?)
88

080_ci_cd/scripting/metadata.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

080_ci_cd/scripting/performance.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ XXX
1212

1313
<i class="fa-duotone fa-solid fa-person-running-fast fa-4x"></i> <!-- .element: style="float: right;" -->
1414

15+
### Interpreted language
16+
17+
XXX
18+
19+
---
20+
21+
## Performance
22+
23+
<i class="fa-duotone fa-solid fa-person-running-fast fa-4x"></i> <!-- .element: style="float: right;" -->
24+
1525
### Avoid excessive forking
1626

1727
O(n), ~100 processes, 13 seconds:

080_ci_cd/scripting/portability.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ cat file | grep --quiet "pattern"
4141

4242
# Works on both
4343
cat file | grep -q "pattern"
44-
```
44+
```
45+
46+
Decreases readability

080_ci_cd/scripting/readability.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Readability
2-
31
<i class="fa-duotone fa-solid fa-book-open-reader fa-4x"></i> <!-- .element: style="float: right;" -->
42

3+
## Readability
4+
55
### Avoid Oneliners
66

77
```bash
@@ -11,16 +11,11 @@ curl -sSLf https://launchermeta.mojang.com/mc/game/version_manifest.json | jq -r
1111

1212
... or...
1313

14-
```bash
15-
# Latest version of Docker Desktop
16-
curl -sSf https://desktop.docker.com/linux/main/amd64/appcast.xml | xq -j | jq -r '.rss.channel.item.enclosure."@shortVersionString"'
17-
```
18-
19-
... or...
20-
2114
```bash
2215
# Tools supported by uniget
23-
regctl manifest get ghcr.io/uniget-org/tools/metadata:main -p local --format=raw-body | jq -r '.layers[0].digest' | xargs regctl blob get ghcr.io/uniget-org/tools/metadata | tar -xzO metadata.json
16+
regctl manifest get ghcr.io/uniget-org/tools/metadata:main -p local --format
17+
raw-body | jq -r '.layers[0].digest' | xargs regctl blob get
18+
ghcr.io/uniget-org/tools/metadata | tar -xzO metadata.json
2419
```
2520

2621
---

080_ci_cd/scripting/when_to_avoid.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
<i class="fa-duotone fa-solid fa-triangle-exclamation fa-4x"></i> <!-- .element: style="float: right;" -->
44

55
length
6+
- https://github.com/nicholasdille/docker-setup/blob/v1.7.47
7+
- script of ~900 lines
8+
- 4 sources files of ~1000 lines
69

710
complexity
11+
- https://github.com/nicholasdille/docker-setup/blob/v1.7.47
12+
- 4 sources files of ~1000 lines
813

914
readability
1015

1116
maintainability
1217

13-
performance (process forks)
18+
performance (process forks)
19+
20+
logic (make or buy)

2025-11-20_ContainerConf-shell-code.html

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
55
<meta charset="utf-8" />
66

7-
<title>How Much<br/>Shell Code<br/>is Enough</title>
7+
<title>How Much Shell Code is Enough</title>
88

99
<!-- https://gauger.io/fonticon/ -->
1010
<link rel="icon" href="images/favicons/kubernetes.ico" />
1111

1212
<link rel="stylesheet" href="node_modules/reveal.js/dist/reset.css" />
1313
<link rel="stylesheet" href="node_modules/reveal.js/dist/reveal.css" />
14-
<link rel="stylesheet" href="node_modules/reveal.js/dist/theme/black.css" />
15-
<link rel="stylesheet" href="node_modules/highlight.js/styles/rainbow.css" />
14+
<link rel="stylesheet" href="node_modules/reveal.js/dist/theme/black.css" id="theme" />
15+
<link rel="stylesheet" href="node_modules/highlight.js/styles/rainbow.css" id="theme" />
1616
<link rel="stylesheet" href="themes/theme2022.css" />
1717
<link rel="stylesheet" href="themes/common.css" />
1818

@@ -25,17 +25,11 @@
2525
<div class="reveal">
2626
<div class="slides">
2727

28-
<section id="title" data-separator="^---$" data-separator-vertical="^--$" data-background="images/bernd-dittrich-p8dvOcIjkfY-unsplash.jpg" data-background-size="130%" data-background-position="left 0% top 30%" class="center" style="padding: 1em 1em 1em 1em; color: white; background: rgba(0, 0, 0, 0.5); width: 33%; margin: auto; text-align: right;">
29-
30-
<h1 style="font-size: 1.5em; color: white;">How Much<br/>Shell Code<br/>is Enough</h1>
31-
32-
<p><img src="images/logos/clc2025_white.svg" style="height: 2em; margin-top: 0.5em;" /></p>
33-
34-
<h2 style="font-size: 1.2em; text-transform: none; color: white;"></h2>
35-
36-
<p><i>Nicholas Dille, Haufe Group</i></p>
37-
38-
<p><a href="https://www.continuouslifecycle.de/"> </a></p>
28+
<section id="title" data-background="images/arjun-kapoor-gR_-FEC_zQc-unsplash.jpg" data-background-size="100%" data-background-position="left 0% top 30%" style="color: white; width: 100%; height: 100%; margin: auto;">
29+
<div style="position: absolute; bottom: 0; right: -2em; background: rgb(0, 0, 0, 0.5); width: max-content; text-align: right; padding: 0.25em 0.75em 0.25em 0.75em;">
30+
<i>Nicholas Dille, Haufe Group</i>
31+
<h1 style="margin: 0; font-size: 1.5em; color: white;">How Much Shell Code is Enough</h1>
32+
</div>
3933
</section>
4034

4135
<section data-markdown="000_introduction/02_bio.md" data-separator="^---$" data-separator-vertical="^--$"></section>
@@ -59,6 +53,7 @@ <h2>Agenda</h2>
5953
<section data-markdown="080_ci_cd/scripting/errors.md" data-separator="^---$" data-separator-vertical="^--$"></section>
6054
<section data-markdown="080_ci_cd/scripting/development.md" data-separator="^---$" data-separator-vertical="^--$"></section>
6155
<section data-markdown="080_ci_cd/scripting/when_to_avoid.md" data-separator="^---$" data-separator-vertical="^--$"></section>
56+
<section data-markdown="080_ci_cd/scripting/alternatives.md" data-separator="^---$" data-separator-vertical="^--$"></section>
6257

6358
<section id="summary" data-separator="^---$" data-separator-vertical="^--$">
6459
<h2>Summary</h2>
@@ -92,6 +87,7 @@ <h3 id="events">Upcoming events</h3>
9287
width: 1400,
9388
height: 850,
9489
margin: 0.05,
90+
controls: false,
9591
controlsTutorial: false,
9692
showSlideNumber: false,
9793
hash: true,
@@ -115,12 +111,6 @@ <h3 id="events">Upcoming events</h3>
115111
hideInactiveCursor: true,
116112
hideCursorTime: 3000,
117113

118-
totalTime: durationInMinutes * 60,
119-
allottedTime: durationInMinutes * 60 * 1000,
120-
121-
barColor: 'rgb(200, 0, 0)',
122-
pausedBarColor: 'rgba(200, 0, 0, .6)',
123-
124114
markdown: {
125115
smartypants: true
126116
},

2025-11-20_ContainerConf-shell-code.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
date: 2025-11-xx
22
metadata:
3-
title: How Much<br/>Shell Code<br/>is Enough
3+
title: How Much Shell Code is Enough
44
title_slug: shell-code
55
subtitle: ""
66
box:
7-
width: 33%
7+
width: 80%
88
favicon: images/favicons/kubernetes.ico
99
background:
10-
image: images/bernd-dittrich-p8dvOcIjkfY-unsplash.jpg
11-
size: 130%
10+
image: images/arjun-kapoor-gR_-FEC_zQc-unsplash.jpg
11+
size: 100%
1212
position: left 0% top 30%
1313
event:
1414
name: " "
@@ -38,6 +38,7 @@ slides:
3838
- 080_ci_cd/scripting/errors.md
3939
- 080_ci_cd/scripting/development.md
4040
- 080_ci_cd/scripting/when_to_avoid.md
41+
- 080_ci_cd/scripting/alternatives.md
4142

4243
summary:
4344
- icon: sparkles
586 KB
Loading

0 commit comments

Comments
 (0)