summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-06-28 12:58:33 +0200
committerlassulus <lassulus@lassul.us>2018-06-28 12:58:33 +0200
commit9c0a1a7e5b4ba19e96b93295693920c25b0f6a5f (patch)
tree36a9bd049535960d2fb2ec0f4185ba428cebb8de
parent423729bb036456adc4859866815b7de8fba2c0c1 (diff)
ENTERPRISE_PATTERN -> enterprise-patterns.md
-rw-r--r--ENTERPRISE_PATTERN92
-rw-r--r--default.nix7
-rw-r--r--enterprise-patterns.md105
3 files changed, 109 insertions, 95 deletions
diff --git a/ENTERPRISE_PATTERN b/ENTERPRISE_PATTERN
deleted file mode 100644
index f0e6da2..0000000
--- a/ENTERPRISE_PATTERN
+++ /dev/null
@@ -1,92 +0,0 @@
-Enterprise Patterns
-==================
-Stellt sicher, dass das richtige passiert, egal was gemacht wird
-
-Enterprise Loop
----------------
-
-Enterprise Exception Handling
------------------------------
-ggf ersetzbar durch enterprise loop.
-
-
-Enterprise Installation
------------------------
-
-Rebooting
-----------
-
-Enterprise Einschalter (eon)
-----------------------------
-Device that turns something on as soon as possible.
-
-Supernintendo Pattern
----------------------
-
-Enterprise Root
----------------
-scripts which need root access but are called with lower privileges. The Enterprise Root Pattern provides a Solution for this issue by calling the script itself as sudo.
-<code>
-if test "${nosudo-false}" != true -a `id -u` != 0; then
- echo "we're going sudo..." >&2
- exec sudo "$0" "$@"
- exit 23 # go to hell
-fi
-</script> // enterprise ist, wenn <code> ... </script> trotzdem matcht
-
-Enterprise Shutdown
-------------------
-Mittel der Wahl um einen Shutdown zu erzwingen
-
-Bsp: das Not-Aus in der Maschinensicherheit
-
-Enterprise Deep Copy
---------------------
-Bsp: var copy = JSON.parse(JSON.stringify(source))
-
-Enterprise Thinking
--------------------
-Prozess um auf Enterprise Patterns zu kommen
-
-Bug-Driven Development
----------------------
-
-Source-based Documentation / Help
----------------------------------
-<code>
- #! /bin/sh
- if echo "$*" | grep -q '\(^\| \)-h\( \|$\)'; then
- cat "$0"
- fi
- # [more code]
-</code>
-
-Literate Programming
---------------------
-Omit all the comments.
-
-Litterate Programming
----------------------
-Write throw-away code and it will become production code
-
-Enterprise Expect
------------------
-Because you always know what you want, `expect(3)` script code can be replaced
-by a `subshell and pipe` pattern :
-
-<code>
- ( echo "$username"; sleep 1; echo "$password"; sleep 1; echo "cp old new" ) | telnet
-</code>
-
-painload example: `//retiolum/bin/announce_pubkey`
-
-Enterprise Waiting
-------------------
-Quietly wait until someone else solves the problem.
-Passive variant of Complainterprise Waiting.
-
-Complainterprise Waiting
-------------------------
-Submit a bug report and do Enterprise Waiting.
-Active variant of Enterprise Waiting.
-
diff --git a/default.nix b/default.nix
index a3d2eae..816134c 100644
--- a/default.nix
+++ b/default.nix
@@ -1,10 +1,11 @@
{ nixpkgs ? import <nixpkgs> {}, ... }: with nixpkgs;
stdenv.mkDerivation {
- name = "thesauron";
- src = ./thesauron.md;
+ name = "cholerab";
+ src = ./.;
phases = [ "buildPhase" ];
buildPhase = ''
mkdir -p $out/share/man/man1
- ${pandoc}/bin/pandoc -s -t man $src -o $out/share/man/man1/thesauron.1
+ ${pandoc}/bin/pandoc -s -t man $src/thesauron.md -o $out/share/man/man1/thesauron.1
+ ${pandoc}/bin/pandoc -s -t man $src/enterprise-patterns.md -o $out/share/man/man1/enterprise-patterns.1
'';
}
diff --git a/enterprise-patterns.md b/enterprise-patterns.md
new file mode 100644
index 0000000..a174fe4
--- /dev/null
+++ b/enterprise-patterns.md
@@ -0,0 +1,105 @@
+% ENTERPRISE PATTERNS(1) krebs Manuals
+% krebs
+
+# NAME
+
+Enterprise Patterns - Stellt sicher, dass das richtige passiert, egal was gemacht wird
+
+# DEFINITIONS
+
+
+### Enterprise Patterns
+- Stellt sicher, dass das richtige passiert, egal was gemacht wird
+
+
+### Enterprise Loop
+
+
+### Enterprise Exception Handling
+- ggf ersetzbar durch enterprise loop.
+
+
+### Enterprise Installation
+
+
+### Rebooting
+
+
+### Enterprise Einschalter (eon)
+- Device that turns something on as soon as possible.
+
+
+### Supernintendo Pattern
+
+
+### Enterprise Root
+- scripts which need root access but are called with lower privileges.
+- The Enterprise Root Pattern provides a Solution for this issue by calling the script itself as sudo.
+```
+<code>
+if test "${nosudo-false}" != true -a `id -u` != 0; then
+ echo "we're going sudo..." >&2
+ exec sudo "$0" "$@"
+ exit 23 # go to hell
+fi
+</script> // enterprise ist, wenn <code> ... </script> trotzdem matcht
+```
+
+
+### Enterprise Shutdown
+- Mittel der Wahl um einen Shutdown zu erzwingen
+- Bsp: das Not-Aus in der Maschinensicherheit
+
+
+### Enterprise Deep Copy
+- Bsp: var copy = JSON.parse(JSON.stringify(source))
+
+
+### Enterprise Thinking
+- Prozess um auf Enterprise Patterns zu kommen
+
+
+### Bug-Driven Development
+
+
+### Source-based Documentation / Help
+- __
+```
+<code>
+ #! /bin/sh
+ if echo "$*" | grep -q '\(^\| \)-h\( \|$\)'; then
+ cat "$0"
+ fi
+ # [more code]
+</code>
+```
+
+
+### Literate Programming
+- Omit all the comments.
+
+
+### Litterate Programming
+- Write throw-away code and it will become production code
+
+
+### Enterprise Expect
+- Because you always know what you want, `expect(3)` script code can be replaced by a `subshell and pipe` pattern :
+```
+<code>
+ ( echo "$username"; sleep 1; echo "$password"; sleep 1; echo "cp old new" ) | telnet
+</code>
+```
+- painload example: `//retiolum/bin/announce_pubkey`
+
+
+### Enterprise Waiting
+- Quietly wait until someone else solves the problem.
+- Passive variant of Complainterprise Waiting.
+
+
+### Complainterprise Waiting
+- Submit a bug report and do Enterprise Waiting.
+- Active variant of Enterprise Waiting.
+
+