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
tagging, install sectoin to block and add flags
0xdnL committed Mar 23, 2023

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
commit a18b25514b8a6f175b3a2f78e6979013c84b81a8
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@

> collection of markdown notes about tools used on the cli

It's a bit of a combination of [command-not-found.com](https://command-not-found.com) and [tldr.sh](https://tldr.sh/) for me.
Most notes describe a cli program, a short description, how to install, a usage section and references to other tools.

## prerequesites

- [github.com/notable/notable](https://github.com/notable/notable)
@@ -11,3 +14,5 @@
- clone repo
- open repo dir using `notable`
- start taking notes

Have fun !
7 changes: 5 additions & 2 deletions notes/amazon-linux-extras.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
tags: [linux]
title: amazon-linux-extras
created: '2022-01-24T10:53:34.798Z'
modified: '2022-01-24T11:00:43.633Z'
modified: '2023-03-22T10:21:07.164Z'
---

# amazon-linux-extras
@@ -10,7 +11,9 @@ modified: '2022-01-24T11:00:43.633Z'

## install

`yum install -y amazon-linux-extras`
```sh
yum install -y amazon-linux-extras
```

## usage

4 changes: 2 additions & 2 deletions notes/api consul.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
tags: [curl, iac]
tags: [iac]
title: api consul
created: '2019-07-30T06:19:49.077Z'
modified: '2022-03-16T05:42:56.349Z'
modified: '2023-03-22T09:58:30.041Z'
---

# api consul
3 changes: 1 addition & 2 deletions notes/api design rest.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
tags: [curl]
title: api design rest
created: '2019-07-30T06:19:49.224Z'
modified: '2022-03-16T05:48:49.475Z'
modified: '2023-03-22T09:58:30.058Z'
---

# api design rest
4 changes: 2 additions & 2 deletions notes/api docker registry.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
tags: [api, container/docker, curl]
tags: [container]
title: api docker registry
created: '2019-07-30T06:19:49.043Z'
modified: '2022-02-01T14:44:12.978Z'
modified: '2023-03-22T10:23:02.551Z'
---

# api docker registry
4 changes: 2 additions & 2 deletions notes/api docker.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
tags: [api, container/docker, curl]
tags: [container]
title: api docker
created: '2019-08-20T09:42:39.909Z'
modified: '2022-04-27T14:18:51.803Z'
modified: '2023-03-22T10:23:02.539Z'
---

# api docker
4 changes: 2 additions & 2 deletions notes/api elasticsearch.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
tags: [api, curl, elasticsearch]
tags: [elasticsearch]
title: api elasticsearch
created: '2019-09-03T09:09:54.970Z'
modified: '2022-02-01T14:44:02.564Z'
modified: '2023-03-22T10:23:02.560Z'
---

# api elasticsearch
3 changes: 1 addition & 2 deletions notes/api vault.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
tags: [api]
title: api vault
created: '2019-09-26T06:09:05.847Z'
modified: '2022-03-16T05:42:35.850Z'
modified: '2023-03-22T10:23:02.567Z'
---

# api vault
4 changes: 2 additions & 2 deletions notes/apk.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
tags: [linux, packagemanager, shell/ash]
tags: [linux, packagemanager, shell]
title: apk
created: '2019-07-30T20:26:52.476Z'
modified: '2022-04-27T06:58:49.004Z'
modified: '2023-03-22T09:24:10.876Z'
---

# apk
3 changes: 2 additions & 1 deletion notes/apt-key.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
tags: [linux]
title: apt-key
created: '2022-02-02T08:54:23.749Z'
modified: '2022-10-11T06:31:05.799Z'
modified: '2023-03-22T09:16:47.409Z'
---

# apt-key
6 changes: 4 additions & 2 deletions notes/arp.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [linux, net-tools, network]
title: arp
created: '2019-09-03T11:30:41.018Z'
modified: '2021-10-31T15:05:38.541Z'
modified: '2023-03-22T08:28:25.338Z'
---

# arp
@@ -11,7 +11,9 @@ modified: '2021-10-31T15:05:38.541Z'

## install

`apt install net-tools`
```sh
apt install net-tools
```

## usage

6 changes: 4 additions & 2 deletions notes/asdf.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: asdf
created: '2021-03-29T06:54:55.237Z'
modified: '2021-10-29T12:41:48.649Z'
modified: '2023-03-22T10:23:20.478Z'
---

# asdf
@@ -10,7 +10,9 @@ modified: '2021-10-29T12:41:48.649Z'

## install

``
```sh

```

## usage

4 changes: 2 additions & 2 deletions notes/ash.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
tags: [shell/ash]
tags: [shell]
title: ash
created: '2021-05-12T08:58:17.934Z'
modified: '2022-03-03T15:40:01.741Z'
modified: '2023-03-22T09:24:17.335Z'
---

# ash
3 changes: 2 additions & 1 deletion notes/atlantis.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
tags: [iac]
title: atlantis
created: '2022-04-19T08:16:22.864Z'
modified: '2022-04-19T08:23:00.405Z'
modified: '2023-03-22T10:33:37.859Z'
---

# atlantis
3 changes: 2 additions & 1 deletion notes/autoconf.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
tags: [buildsystem, c]
title: autoconf
created: '2022-02-02T13:35:55.731Z'
modified: '2022-04-06T11:36:53.143Z'
modified: '2023-03-22T10:40:07.333Z'
---

# autoconf
3 changes: 1 addition & 2 deletions notes/awk.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
tags: [dsl]
title: awk
created: '2019-07-30T06:19:48.989Z'
modified: '2022-04-06T11:37:07.791Z'
modified: '2023-03-22T09:29:13.498Z'
---

# awk
6 changes: 4 additions & 2 deletions notes/aws-iam-authenticator.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: aws-iam-authenticator
created: '2022-03-24T07:18:31.601Z'
modified: '2022-03-24T07:20:08.681Z'
modified: '2023-03-22T10:21:56.889Z'
---

# aws-iam-authenticator
@@ -10,7 +10,9 @@ modified: '2022-03-24T07:20:08.681Z'

## install

`brew install aws-iam-authenticator`
```sh
brew install aws-iam-authenticator
```

## usage

26 changes: 20 additions & 6 deletions notes/bash braces.md
Original file line number Diff line number Diff line change
@@ -2,26 +2,32 @@
tags: [shell/bash]
title: bash braces
created: '2019-09-24T06:43:14.231Z'
modified: '2021-05-12T08:46:50.982Z'
modified: '2023-03-22T10:02:19.307Z'
---

# bash braces

> `$` character introduces parameter expansion, command substitution, or arithmetic expansion

## usage
## subshell

```sh
# subshell
$(...) # execute the command in the parens in a subshell and return its stdout

(...) # run the commands listed in the parens in a subshell
```

## group

# group
```sh
{...} # execute the commands in the braces as a group

COMMAND | { echo "nope"; exit 1; }
```

## arithmetic expansion

# arithmetic expansion
```sh
$((...)) # arithmetic expansion and return the result
$((1+1))
$((2*2))
@@ -31,12 +37,19 @@ $((base#number)) # convert number from base to decimal
$((2#1111)) # 15
$((8#16)) # 14
$((16#FF)) # 255
```

## parameter expansion

```
${...} # parameter expansion and return the value
```

## brace expansion

# brace expansion - used to generate stings
> used to generate stings

```sh
# consists of a sequence or a comma separated list of items inside curly braces `{}`
# sequence consists of a starting and ending-item separated by `..`
{aa,bb,cc,dd} # aa bb cc dd
@@ -52,6 +65,7 @@ ls -l /etc/{resolv.conf, passwd}
```

## see also

- [[bash arithmetic expansion]]
- [[bash parameter expansion]]
- [double-parenthesis-with-and-without-dollar - stackoverflow](https://stackoverflow.com/a/31255942/2087704)
10 changes: 5 additions & 5 deletions notes/bash set.md
Original file line number Diff line number Diff line change
@@ -2,24 +2,22 @@
tags: [shell/bash/builtin]
title: bash set
created: '2019-07-30T06:19:49.019Z'
modified: '2022-03-03T09:45:47.589Z'
modified: '2023-03-22T10:07:28.455Z'
---

# bash set

> set/unset values and attributes of shell variables and functions.
> modify shell behavior - [[bash set]] or [[bash unset]] values of shell options and positional parameters

## usage
## flags

```sh
# set # unset
set -o OPTION set +o OPTION
set -x set +x
```

```sh
set -o allexport set -a # each variable or function that is created/modified is given export-attribute and marked for export to the environment of subsequent commands.
set -o allexport set -a # each variable or function that is created/modified is given export-attribute and marked for export
set -o braceexpand set -B
set -o emacs
set -o errexit set -e
@@ -47,6 +45,8 @@ set -o vi
set -o xtrace set -x
```

## usage

```sh
set 1 2 3 | echo $@ # set positional params

7 changes: 5 additions & 2 deletions notes/bash ulimit.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,14 @@
tags: [container, shell/bash/builtin]
title: bash ulimit
created: '2019-08-02T06:42:37.646Z'
modified: '2021-10-29T12:35:17.229Z'
modified: '2023-03-22T10:03:05.385Z'
---

# bash ulimit

> provides control over the resources available to the shell and processes it creates, on systems that allow such control

## usage
## flag

```sh
-S # use the `soft` resource limit
@@ -35,6 +35,8 @@ modified: '2021-10-29T12:35:17.229Z'
-x # maximum number of file locks
```

## usage

```sh
ulimit -a # show all ulimits

@@ -54,6 +56,7 @@ ulimit -l # max locked memory (kbytes)
```

## see alos

- [[sysctl]]
- [[systemctl]]
- [[nproc]]
3 changes: 2 additions & 1 deletion notes/bash unset.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
tags: [shell/bash]
title: bash unset
created: '2022-02-10T09:01:46.925Z'
modified: '2022-02-10T09:05:03.190Z'
modified: '2023-03-22T10:26:37.755Z'
---

# bash unset
5 changes: 3 additions & 2 deletions notes/bats.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,14 @@
tags: [shell]
title: bats
created: '2019-07-30T06:19:49.026Z'
modified: '2022-03-03T15:45:54.412Z'
modified: '2023-03-22T11:01:52.203Z'
---

# bats

> `bats` is a `TAP-compliant` testing framework for bash, which provides a simple way to verify that the UNIX programs behave as expected

## environment variables
## env

```sh
BATS_TEST_FILENAME # fully expanded path to the Bats test file
@@ -76,6 +76,7 @@ setup() {

## see also

- [[rtf]]
- [github.com/sstephenson/bats](https://github.com/sstephenson/bats)
- [govmomi/test_helper.bash · GitHub](https://github.com/vmware/govmomi/blob/master/govc/test/test_helper.bash)
- [engineyard.com/bats-test-command-line-tools](https://www.engineyard.com/blog/bats-test-command-line-tools)
Loading