Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2023 03 23 #1

Open
wants to merge 81 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
84ac364
Update README.md
invad0r Aug 2, 2019
5b5e2c5
Merge branch 'master' of github.com:invad0r/notable-notes
invad0r Aug 2, 2019
1c25cb7
changed tags
invad0r Aug 2, 2019
0f5ae78
added network and osx notes
invad0r Aug 2, 2019
2820214
added prometheus notes
invad0r Aug 2, 2019
79b5b64
typo
invad0r Aug 2, 2019
081b253
moved stuff around, added bash-builtins
invad0r Aug 18, 2019
b025ff7
Merge branch 'master' of github.com:invad0r/notable-notes
invad0r Aug 18, 2019
e5c3d30
batch of files
invad0r Aug 18, 2019
dd41bea
second batch of files
invad0r Aug 18, 2019
c20d176
added links
invad0r Aug 18, 2019
cc7a0b8
added bash notes and links
invad0r Aug 18, 2019
f2fa706
split datatypes and systemd-ctl's
invad0r Aug 19, 2019
46b8e6c
moved git to seperate note
invad0r Aug 19, 2019
d25126e
rm tags, edited headlines, added links
invad0r Aug 19, 2019
160a2a7
using see-also, moved stuff around
invad0r Aug 25, 2019
f3984b1
big batch: added references and usage
invad0r Nov 29, 2019
056841e
added memtop snipped
invad0r Dec 11, 2019
c1e223c
changes here and there
invad0r Dec 28, 2019
37b17e5
Merge branch 'master' of github.com:invad0r/notable-notes
invad0r Dec 28, 2019
1b1ba91
ruby, python repl and tags
invad0r Jan 2, 2020
2289292
stuff..
invad0r Jan 6, 2020
f6fea14
filesystem-stuff ...xfs..
invad0r Jan 7, 2020
90cfd61
net-tools, python and tagging
invad0r Jan 16, 2020
1cda6fb
capabilities, added usages
invad0r Jan 17, 2020
d257206
bunch of socket stuff
invad0r Jan 21, 2020
72be5cf
ip -br -c a s
invad0r Jan 21, 2020
b1c9287
restructured vim, added to gzip
invad0r Jan 22, 2020
4adb660
Merge branch 'master' of github.com:invad0r/notable-notes
invad0r Jan 22, 2020
8a16d15
moved things together.
invad0r Jan 26, 2020
c8b8cc3
mainly tcpdump
invad0r Jan 30, 2020
1216ca5
go install how to
invad0r Feb 3, 2020
e98f821
firewall-cmd stuff
invad0r Feb 3, 2020
d5c34b2
osx => macos .. keycloack stuff..
invad0r Feb 11, 2020
021116e
added dmidecode
invad0r Feb 12, 2020
34dddcd
Merge branch 'master' of github.com:invad0r/notable-notes
invad0r Feb 12, 2020
487c829
added id and go-channels
invad0r Feb 14, 2020
25164e3
ssh whoami
invad0r Feb 17, 2020
96786f3
stuff .. ulimit, api GET etc
invad0r Feb 19, 2020
628da44
yq, procfs, rust and ocaml
invad0r Feb 28, 2020
9e8a3d7
small changes here and theres, locale, ocaml, openssl
invad0r Mar 12, 2020
cc13f50
consolidate go, added virtual-vm stuff, ..
invad0r Mar 16, 2020
c3b91dd
here and there..
invad0r Mar 24, 2020
9dadfeb
this and that
invad0r Apr 6, 2020
6a1723d
added stuff to ftp
invad0r Apr 14, 2020
4fc1848
batch: bash, c, gnu-utils
invad0r Jun 16, 2020
41e280d
added fossil, gitops, paradigms
invad0r Jul 6, 2020
2314a2f
added column, cp, mv, named, nl, paste, rnd; edits here and there
invad0r Aug 5, 2020
34c8d08
added moreutils, coreutils and wasm
invad0r Sep 2, 2020
074ef96
package stuff net-tools, lua, bash and other stuff
invad0r Sep 12, 2020
f866e41
changed install for brew
0xdnL Oct 2, 2020
2681d41
finding commit message is hard for notes
0xdnL Nov 20, 2020
2eff191
bfg, git cleanup
0xdnL Nov 23, 2020
36e3506
added lambda realted, some formats etc
0xdnL Feb 10, 2021
671364b
calibre, xkcdpass, fx, ..
0xdnL Mar 1, 2021
ac7a006
postgres, k8s and some refactors
0xdnL Mar 22, 2021
dbb8170
aws-vpc, gitflow, signals, z, pdf
0xdnL Apr 26, 2021
cd6e732
shell tags (#1)
0xdnL May 12, 2021
12812d9
added githubworkflow explore actions (#2)
0xdnL May 12, 2021
5364ae6
formatting and stuff
0xdnL Sep 23, 2021
6259c1e
new-notes-1 (#3)
0xdnL Sep 23, 2021
060a8bc
add eksctl, git-cliff, softwareupdate and mostly formatting (#4)
0xdnL Oct 13, 2021
c8d627f
Update 2 (#5)
0xdnL Oct 29, 2021
29a8a92
consolidate git command and retagged a bunch (#6)
0xdnL Oct 29, 2021
667a18e
merged, moved, formatted stuff (#7)
0xdnL Nov 29, 2021
f43312a
update 5: move stuffe around, created stuff, formatted stuff, the usu…
0xdnL Jan 20, 2022
9cf776b
update 6 (#9)
0xdnL Mar 16, 2022
281e37e
typo
0xdnL Mar 16, 2022
de9ca94
update 7 (#10)
0xdnL Apr 27, 2022
de52d0c
add less and jless (#11)
0xdnL Jun 1, 2022
ff273ec
removed api notes (#12)
0xdnL Jun 1, 2022
c44970b
refactor git note (#13)
0xdnL Jun 1, 2022
64b6f12
new and renamed files (#14)
0xdnL Mar 13, 2023
05a2da7
Update 2023 03 13 (#15)
0xdnL Mar 13, 2023
f9df820
Update 2023 03 15 (#16)
0xdnL Mar 20, 2023
8a8bdd5
dns and bind related stuff (#17)
0xdnL Mar 20, 2023
a18b255
tagging, install sectoin to block and add flags
0xdnL Mar 23, 2023
0a5e676
new files
0xdnL Mar 23, 2023
b08ec77
tagging, add, rm, mv..
0xdnL Mar 24, 2023
e0b7cd6
new notes
0xdnL Mar 24, 2023
a4efbb7
cleanup, install sections
0xdnL Mar 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 2 (#5)
* added and deleted

* updated docs
0xdnL authored Oct 29, 2021
commit c8d627f7056c4b1e9f8d4e307d9a5f13343c672c
4 changes: 3 additions & 1 deletion notes/argocd.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
title: argocd
created: '2020-10-26T12:29:59.372Z'
modified: '2020-10-27T10:15:54.748Z'
modified: '2021-10-15T07:40:38.882Z'
---

# argocd

> declarative, gitops continuous delivery tool for k8s

## usage

```sh
argocd login HOST

@@ -20,5 +21,6 @@ argocd app create guestbook \
```

## see also

- [[kubectl]]
- [[minikube]]
15 changes: 0 additions & 15 deletions notes/aws cloudformation.md

This file was deleted.

19 changes: 0 additions & 19 deletions notes/aws iam.md

This file was deleted.

16 changes: 0 additions & 16 deletions notes/aws securityhub.md

This file was deleted.

5 changes: 4 additions & 1 deletion notes/base64.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,15 @@
tags: [linux]
title: base64
created: '2020-09-01T08:26:05.388Z'
modified: '2020-09-01T09:26:50.237Z'
modified: '2021-10-28T11:54:25.624Z'
---

# base64

> encode and decode using base64 representation

## usage

```sh
base64 -w 0 FILE

@@ -19,6 +20,8 @@ echo FOO | python -m base64
```

## see also

- [[jq]] `@base64d`
- [[echo]]
- [[openssl]]
- [[python]]
3 changes: 2 additions & 1 deletion notes/bash array.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [shell/bash]
title: bash array
created: '2019-08-01T07:14:55.242Z'
modified: '2021-05-12T08:46:50.959Z'
modified: '2021-10-25T09:41:19.353Z'
---

# bash array
@@ -59,4 +59,5 @@ declare | grep Colors # Colors=([0]="purple" [1]="reddish-orange" [2]="light g
## see also
- [[bash declare]]
- [[bash mapfile]]
- [[bash readarray]]
- [Bash associative array examples – Andy Balaam's Blog](https://www.artificialworlds.net/blog/2012/10/17/bash-associative-array-examples/)
7 changes: 5 additions & 2 deletions notes/bash mapfile.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [shell/bash/builtin]
title: bash mapfile
created: '2019-07-30T06:19:49.014Z'
modified: '2021-06-07T07:02:07.719Z'
modified: '2021-10-25T09:49:01.598Z'
---

# bash mapfile
@@ -22,7 +22,7 @@ modified: '2021-06-07T07:02:07.719Z'
```

```sh
readarray # synonym for `mapfile'
readarray

mapfile

@@ -35,6 +35,9 @@ echo ${FOORAY[@]}
```

## see also

- [wiki-dev.bash-hackers.org/commands/builtin/mapfile](https://wiki-dev.bash-hackers.org/commands/builtin/mapfile)
- [[bash read]]
- [[bash array]]
- [[bash readarray]]
- [[yq]]
27 changes: 26 additions & 1 deletion notes/bash readarray.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,32 @@
tags: [shell/bash/builtin]
title: bash readarray
created: '2019-08-02T06:42:37.622Z'
modified: '2021-05-12T08:46:08.330Z'
modified: '2021-10-25T09:43:51.075Z'
---

# bash readarray

> synonym for [[bash mapfile]] - read lines from a FILE into an array variable

## usage

```sh
-d delim
-n count
-O origin
-s count
-t
-u fd
-C callback
-c quantum
```

```sh
readarray ARRAY < <(yq e '.coolActions[]' sample.yaml)
echo "${ARRAY[1]}"
```

## see also

- [[bash array]]
- [[yq]]
16 changes: 13 additions & 3 deletions notes/brew.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [brew, macos, packagemanager]
title: brew
created: '2019-07-30T06:19:49.028Z'
modified: '2021-10-06T12:07:25.860Z'
modified: '2021-10-19T10:11:00.392Z'
---

# brew
@@ -50,7 +50,14 @@ brew install
mkcert
bash-completion

# cask - extension to brew allowing management of gui apps

brew unlink PACKAGE # switch between mutliple version of package
brew link PACKAGE@10
```

## cask - extension to brew allowing management of gui apps

```sh
brew cask

brew cask install CASK
@@ -61,8 +68,11 @@ brew cask install insomnia
brew cask create my-cask # create-cask

ls /usr/local/Caskroom # ls installed caskes
```

# tap - adds more repos to the list of formulae that brew tracks, updates, and installs from
## tap - adds more repos to the list of formulae that brew tracks, updates, and installs from

```sh
brew tap # list tapped repositories

brew tap tapname # add tap
35 changes: 35 additions & 0 deletions notes/buildah.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: buildah
created: '2021-10-19T11:40:08.335Z'
modified: '2021-10-19T11:44:22.549Z'
---

# buildah


## install

`yum -y install buildah`

## usage

```sh
buildah from centos
buildah run centos-working-container yum install httpd -y
buildah copy centos-working-container index.html /var/www/html/index.html
buildah config --entrypoint "/usr/sbin/httpd -DFOREGROUND" centos-working-container
buildah commit centos-working-container redhat-website

buildah bud -t fedora-httpd # bud = "build-using-dockerfile"

buildah images
```

## see also

- [buildah.io](https://buildah.io/)
- [[podman]]
- [[skopeo]]
- [[docker]]
- [[crictl]]

4 changes: 3 additions & 1 deletion notes/consul.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [iac]
title: consul
created: '2019-08-28T09:45:08.570Z'
modified: '2020-04-30T14:58:11.555Z'
modified: '2021-10-20T08:58:05.652Z'
---

# consul
@@ -50,6 +50,8 @@ EOF
```

## see also

- [[raft consesus algorithm]]
- [[consul api]]
- [[watch]]
- [[awk]]
5 changes: 4 additions & 1 deletion notes/coreutils.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,16 @@
tags: [coreutils]
title: coreutils
created: '2020-09-01T07:42:52.948Z'
modified: '2020-09-03T08:56:56.502Z'
modified: '2021-10-19T11:52:30.934Z'
---

# coreutils

> basic file, shell, and text manipulation utilities of the gnu operating system

[[numfmt]] - see [[crane]]


## commonly used tools provided by this package include
- [[chmod]] - changes file modes/permissions
- [[chown]] - change file owner and group ownership
55 changes: 55 additions & 0 deletions notes/crane.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: crane
created: '2021-10-19T11:44:42.215Z'
modified: '2021-10-19T12:01:51.145Z'
---

# crane

> tool for interacting with remote images and registries

## install

`brew install crane`

## usage

```sh
crane export ubuntu - | tar -tvf - | less # List files in an image

crane export ubuntu - | tar -Oxf - etc/passwd # Extract a single file from an image
# Note: Be sure to remove the leading `/` from the path (not `/etc/passwd`). This behavior will not follow symlinks.

crane append -f <(tar -f - -c some-dir/) -t IMAGE # Bundle directory contents into an image
# default: produces an image with one layer containing the directory contents.
# Add `-b ${BASE_IMAGE}` to append the layer to a base image instead.

crane mutate IMAGE --entrypoint=some-dir/entrypoint.sh # make an executable in the appended layer the image's entrypoint.

# because `crane append` emits the full image reference, these calls can even be chained together:
# will bundle `SOME_DIR/` into an image, push it, mutate its entrypoint to `SOME_DIR/entrypoint.sh`, and push that new image by digest
crane mutate $(crane append -f <(tar -f - -c SOME_DIR/) -t IMAGE) --entrypoint=SOME_DIR/entrypoint.sh


diff <(crane config busybox:1.32 | jq) <(crane config busybox:1.33 | jq) # diff two configs
diff <(crane manifest busybox:1.32 | jq) <(crane manifest busybox:1.33 | jq) # diff two manifests


crane manifest gcr.io/buildpacks/builder:v1 | jq '.config.size + ([.layers[].size] | add)' # get total image size
crane manifest gcr.io/buildpacks/builder:v1 | jq '.config.size + ([.layers[].size] | add)' | numfmt --to=iec # make human-readable by passing to numfmt


crane digest IMAGE
```





## see also

- [[skopeo]]
- [[coreutils]]
- [[jq]]
- [github.com/google/go-containerregistry/crane/README.md](https://github.com/google/go-containerregistry/blob/main/cmd/crane/README.md)
- [github.com/google/go-containerregistry/crane/recipes.md](https://github.com/google/go-containerregistry/blob/main/cmd/crane/recipes.md)
8 changes: 7 additions & 1 deletion notes/crictl.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [container]
title: crictl
created: '2021-05-27T09:57:46.096Z'
modified: '2021-05-28T06:37:00.173Z'
modified: '2021-10-19T11:44:10.286Z'
---

# crictl
@@ -12,14 +12,20 @@ modified: '2021-05-28T06:37:00.173Z'
## install

## usage

```sh
crictl start CONTAINER_ID

crictl inspect CONTAINER_ID
```

## see also

- [github.com/cri-o/tutorials/crictl](https://github.com/cri-o/cri-o/blob/master/tutorials/crictl.md)
- [[docker]]
- [[ctr]]
- [[kubectl]]
- [[skopeo]]
- [[podman]]
- [[buildah]]
- [cri-o.io](https://cri-o.io/)
7 changes: 4 additions & 3 deletions notes/docker api.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [api, container/docker, curl]
title: docker api
created: '2019-08-20T09:42:39.909Z'
modified: '2021-03-22T07:07:27.605Z'
modified: '2021-10-19T07:34:32.085Z'
---

# docker api
@@ -60,8 +60,9 @@ curl -XGET --unix-socket /run/docker/plugins/nfs.sock \
```

## see also
- [[kubernetes api]]

- [[curl]]
- [[unix socket]]
- [[kubernetes api]]
- [docs.docker.com/engine/api](https://docs.docker.com/engine/api/v1.24/)
- https://github.com/docker/go-plugins-helpers/
- [github.com/docker/go-plugins-helpers/](https://github.com/docker/go-plugins-helpers/)
Loading