From 9642cd7ae24f0ba79ce5647c709b35ae8f06a285 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sun, 19 Jan 2025 21:14:51 +0100 Subject: vault backup: 2025-01-19 21:14:51 --- 3 Resources/.gitkeep | 0 3 Resources/Bash.md | 1 + 3 Resources/Bash/Reference arguments.md | 6 ++ 3 Resources/CSS.md | 28 +++++++++ 3 Resources/Gitlab/References.md | 6 ++ 3 Resources/HTML/Inline VS Block elements.md | 69 +++++++++++++++++++++ 3 Resources/Helix/Inline diagnostics.md | 13 ++++ 3 Resources/Images/IMG_3980.jpg | Bin 0 -> 956624 bytes 3 Resources/Images/IMG_3981.jpg | Bin 0 -> 609603 bytes 3 Resources/Images/IMG_3982.jpg | Bin 0 -> 959890 bytes 3 Resources/Images/IMG_3985.jpg | Bin 0 -> 715157 bytes 3 Resources/Images/IMG_3987.jpg | Bin 0 -> 1116170 bytes 3 Resources/Images/Pasted image 20250107205518.jpg | Bin 0 -> 609603 bytes 3 Resources/Linux/APT.md | 5 ++ 3 Resources/Linux/Definitions.md | 6 ++ 3 Resources/Linux/Device drivers.md | 22 +++++++ 3 Resources/Linux/Device mapper.md | 28 +++++++++ 3 Resources/Linux/LSOF.md | 69 +++++++++++++++++++++ 3 Resources/Linux/PXE.md | 19 ++++++ 3 Resources/Linux/Users.md | 22 +++++++ 3 Resources/Linux/Watch.md | 4 ++ 3 Resources/Linux/filesystems/Tmpfs.md | 16 +++++ 3 Resources/MermaidJS.md | 24 +++++++ 3 Resources/MySQL.md | 1 + 3 Resources/Networking/DHCP.md | 6 ++ 3 Resources/Networking/IP masquerade.md | 18 ++++++ 3 Resources/Networking/Switch.md | 10 +++ 3 Resources/Nix/Apply custom patches.md | 17 +++++ 3 Resources/Nix/Build images with Nix.md | 28 +++++++++ 3 Resources/Nix/Flake.md | 22 +++++++ 3 Resources/Nix/How Nix works.md | 22 +++++++ 3 Resources/Nix/Import.md | 5 ++ 3 Resources/Nix/Nix build vm.md | 32 ++++++++++ 3 Resources/Nix/Overlays.md | 11 ++++ 3 Resources/Nix/Package.md | 6 ++ 3 Resources/Nix/REPL.md | 5 ++ 3 Resources/Nix/Shell.nix.md | 42 +++++++++++++ 3 Resources/Obsidian.md | 6 ++ 3 Resources/Openstack/Creating ports.md | 4 ++ 3 Resources/Openstack/Libvirt pmsuspended.md | 6 ++ .../Openstack/Nova live migration volume.md | 18 ++++++ 3 Resources/Puppet/Classes.md | 14 +++++ 3 Resources/Puppet/Declaring classes.md | 27 ++++++++ 3 Resources/Puppet/ERB template.md | 11 ++++ 3 Resources/Puppet/Replace a line in a file.md | 32 ++++++++++ 3 Resources/Puppet/Resource type references.md | 6 ++ 3 Resources/Puppet/Sensitive type.md | 17 +++++ 3 Resources/Python/Make dataclass dict-able.md | 15 +++++ 3 Resources/Python/__getitem__ __setitem__.md | 5 ++ 3 Resources/RabbitMQ.md | 1 + 3 Resources/Ripgrep.md | 1 + 3 Resources/Statistics/Moving average.md | 20 ++++++ 3 Resources/Systemd/Unit types.md | 14 +++++ 3 Resources/TailwindCSS/Container.md | 2 + 3 Resources/TailwindCSS/Prevent overflow.md | 3 + 3 Resources/Taskwarrior.md | 4 ++ 3 Resources/Technical terms.md | 10 +++ 3 Resources/Testing/Anatomy of a test.md | 15 +++++ 3 Resources/ansible/ad-hoc-commands.md | 25 ++++++++ 3 Resources/ansible/ansible.md | 1 + 3 Resources/ansible/build-array-loop.md | 6 ++ 3 Resources/ansible/build-list-silences.md | 1 + 3 Resources/ansible/debug.md | 29 +++++++++ 3 Resources/ansible/default-filter.md | 7 +++ 3 Resources/ansible/delegate-to.md | 3 + 3 Resources/ansible/dicts.md | 1 + 3 Resources/ansible/extra-vars.md | 8 +++ 3 Resources/ansible/find.md | 9 +++ 3 Resources/ansible/loop-output.md | 1 + 3 Resources/ansible/loop-register.md | 41 ++++++++++++ 3 Resources/ansible/loop-results-prior-loop.md | 30 +++++++++ 3 Resources/ansible/nested-loops.md | 3 + 3 Resources/ansible/set-facts.md | 1 + 3 Resources/libvirt/Mediated devices.md | 11 ++++ 3 Resources/libvirt/SR-IOV.md | 9 +++ 3 Resources/math/Cartesian product.md | 4 ++ 76 files changed, 984 insertions(+) create mode 100644 3 Resources/.gitkeep create mode 100644 3 Resources/Bash.md create mode 100644 3 Resources/Bash/Reference arguments.md create mode 100644 3 Resources/CSS.md create mode 100644 3 Resources/Gitlab/References.md create mode 100644 3 Resources/HTML/Inline VS Block elements.md create mode 100644 3 Resources/Helix/Inline diagnostics.md create mode 100644 3 Resources/Images/IMG_3980.jpg create mode 100644 3 Resources/Images/IMG_3981.jpg create mode 100644 3 Resources/Images/IMG_3982.jpg create mode 100644 3 Resources/Images/IMG_3985.jpg create mode 100644 3 Resources/Images/IMG_3987.jpg create mode 100644 3 Resources/Images/Pasted image 20250107205518.jpg create mode 100644 3 Resources/Linux/APT.md create mode 100644 3 Resources/Linux/Definitions.md create mode 100644 3 Resources/Linux/Device drivers.md create mode 100644 3 Resources/Linux/Device mapper.md create mode 100644 3 Resources/Linux/LSOF.md create mode 100644 3 Resources/Linux/PXE.md create mode 100644 3 Resources/Linux/Users.md create mode 100644 3 Resources/Linux/Watch.md create mode 100644 3 Resources/Linux/filesystems/Tmpfs.md create mode 100644 3 Resources/MermaidJS.md create mode 100644 3 Resources/MySQL.md create mode 100644 3 Resources/Networking/DHCP.md create mode 100644 3 Resources/Networking/IP masquerade.md create mode 100644 3 Resources/Networking/Switch.md create mode 100644 3 Resources/Nix/Apply custom patches.md create mode 100644 3 Resources/Nix/Build images with Nix.md create mode 100644 3 Resources/Nix/Flake.md create mode 100644 3 Resources/Nix/How Nix works.md create mode 100644 3 Resources/Nix/Import.md create mode 100644 3 Resources/Nix/Nix build vm.md create mode 100644 3 Resources/Nix/Overlays.md create mode 100644 3 Resources/Nix/Package.md create mode 100644 3 Resources/Nix/REPL.md create mode 100644 3 Resources/Nix/Shell.nix.md create mode 100644 3 Resources/Obsidian.md create mode 100644 3 Resources/Openstack/Creating ports.md create mode 100644 3 Resources/Openstack/Libvirt pmsuspended.md create mode 100644 3 Resources/Openstack/Nova live migration volume.md create mode 100644 3 Resources/Puppet/Classes.md create mode 100644 3 Resources/Puppet/Declaring classes.md create mode 100644 3 Resources/Puppet/ERB template.md create mode 100644 3 Resources/Puppet/Replace a line in a file.md create mode 100644 3 Resources/Puppet/Resource type references.md create mode 100644 3 Resources/Puppet/Sensitive type.md create mode 100644 3 Resources/Python/Make dataclass dict-able.md create mode 100644 3 Resources/Python/__getitem__ __setitem__.md create mode 100644 3 Resources/RabbitMQ.md create mode 100644 3 Resources/Ripgrep.md create mode 100644 3 Resources/Statistics/Moving average.md create mode 100644 3 Resources/Systemd/Unit types.md create mode 100644 3 Resources/TailwindCSS/Container.md create mode 100644 3 Resources/TailwindCSS/Prevent overflow.md create mode 100644 3 Resources/Taskwarrior.md create mode 100644 3 Resources/Technical terms.md create mode 100644 3 Resources/Testing/Anatomy of a test.md create mode 100644 3 Resources/ansible/ad-hoc-commands.md create mode 100644 3 Resources/ansible/ansible.md create mode 100644 3 Resources/ansible/build-array-loop.md create mode 100644 3 Resources/ansible/build-list-silences.md create mode 100644 3 Resources/ansible/debug.md create mode 100644 3 Resources/ansible/default-filter.md create mode 100644 3 Resources/ansible/delegate-to.md create mode 100644 3 Resources/ansible/dicts.md create mode 100644 3 Resources/ansible/extra-vars.md create mode 100644 3 Resources/ansible/find.md create mode 100644 3 Resources/ansible/loop-output.md create mode 100644 3 Resources/ansible/loop-register.md create mode 100644 3 Resources/ansible/loop-results-prior-loop.md create mode 100644 3 Resources/ansible/nested-loops.md create mode 100644 3 Resources/ansible/set-facts.md create mode 100644 3 Resources/libvirt/Mediated devices.md create mode 100644 3 Resources/libvirt/SR-IOV.md create mode 100644 3 Resources/math/Cartesian product.md (limited to '3 Resources') diff --git a/3 Resources/.gitkeep b/3 Resources/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/3 Resources/Bash.md b/3 Resources/Bash.md new file mode 100644 index 0000000..841443f --- /dev/null +++ b/3 Resources/Bash.md @@ -0,0 +1 @@ +How to [[Reference arguments]]. \ No newline at end of file diff --git a/3 Resources/Bash/Reference arguments.md b/3 Resources/Bash/Reference arguments.md new file mode 100644 index 0000000..f39eeb1 --- /dev/null +++ b/3 Resources/Bash/Reference arguments.md @@ -0,0 +1,6 @@ +Reference as array: `$@`. +Reference as string: `$*`. + +Let's say we want to open a file in our favorite editor through a script, prefixing the filename with something such as a date. +If we were to use `hx "$(date) $@"`, where we reference the arguments as an array, it'd open more than one file - one for the date and one for each argument. +We must use `$*` so that our invocation becomes `hx "$(date) $*"`. This would open a single file with the name being the combination of our arguments prefixed by date. \ No newline at end of file diff --git a/3 Resources/CSS.md b/3 Resources/CSS.md new file mode 100644 index 0000000..32a3113 --- /dev/null +++ b/3 Resources/CSS.md @@ -0,0 +1,28 @@ +**Display** +display none vs visibility hidden: display: none is really like the element does not exist. Visibility hidden just hides it but it still takes space. + +A display: none element can still have size and be coloured with a background image. It still doesn't take space. This can be used for a timeline bar for example! + +**Flexbox** +Flexbox deals with layout always in only one dimension; it's possible to specify which dimension: either vertical or horizontal. + +Two axes: main and cross + +Control main axis: `flex-direction: row|row-reverse|column|column-reverse`. The first two make it a horizontal layout and the latter make it a vertical layout. + +Cross axis is always the opposite of `flex-direction`, so if `flex-direction: row-reverse` the cross axis is `column-reverse`. + +The writing mode determines where the start and end are, based on for example languages. Japanese is written from right-to-left rather than western left-to-right. +So while in Europe the start of a flexbox is at the left and the end at the right in Japan this would be reversed. + +**Relationships** +An important aspect of creating layouts with CSS is the relationships of elements with each other. For example parent/child relationships. + +If we change the width of a parent element; the height of all children increase. This happens because the total area of the parent remains the same. + +When the edge of a child aligns with its parent and we add a margin to the child; it pushes to the parent as well. This phenomenon is called ==collapsing margins==. It can be prevented by unaligning the edge(s) for example by adding padding or setting `display: flow-root;`. + +In `flexbox` siblings push against each other; if we add padding to one, it pushes against the other making it smaller. This does not happen in grid, where each cell gets a fixed size and the padding pushes against its own side. + +**Centering stuff** +Use `margin-inline: auto;` -> this adds margins on both sides of the element. This can be used to center stuff on the page for example. \ No newline at end of file diff --git a/3 Resources/Gitlab/References.md b/3 Resources/Gitlab/References.md new file mode 100644 index 0000000..1c0e61a --- /dev/null +++ b/3 Resources/Gitlab/References.md @@ -0,0 +1,6 @@ +--- +tags: + - reference + - gitlab +--- +- https://docs.gitlab.com/ee/ci/variables/predefined_variables.html \ No newline at end of file diff --git a/3 Resources/HTML/Inline VS Block elements.md b/3 Resources/HTML/Inline VS Block elements.md new file mode 100644 index 0000000..bd72478 --- /dev/null +++ b/3 Resources/HTML/Inline VS Block elements.md @@ -0,0 +1,69 @@ +A block element always starts on a new line and automatically have their margin set to a non-zero value. +An inline element, as the name suggests, does not start on a new line and has no automatic margins. It +takes only the space that is required for the content it contains. + +Block elements: +-
+-
+-