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 08 13 #2

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
88 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
3ac2627
Update 2023 03 23 (#18)
0xdnL Mar 24, 2023
88b8364
cleanup, tags, .. (#19)
0xdnL Mar 28, 2023
fc14781
Update 2023 04 11 (#20)
0xdnL Apr 11, 2023
64dc82c
changes (#21)
0xdnL May 6, 2023
93081c4
Update 2023 05 16 (#22)
0xdnL May 16, 2023
e1a818b
Update 2023 05 19 (#23)
0xdnL May 19, 2023
0d822b4
Update 2023 05 23 (#24)
0xdnL May 23, 2023
e0d2acc
Update 2023 06 15 (#25)
0xdnL Jun 15, 2023
d9f45d6
Update 2023 08 11 (#26)
0xdnL Aug 13, 2023
fe2a8f0
...
0xdnL Aug 13, 2023
f99b227
trigger..
0xdnL Aug 31, 2023
f5b544d
are you serious ?
0xdnL Aug 31, 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
stuff..
invad0r committed Jan 6, 2020

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
commit 228929274aa0d1f3df85ca473af87d18b02ac114
7 changes: 3 additions & 4 deletions notes/acronym.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,11 @@
tags: [Notebooks]
title: acronym
created: '2019-08-18T16:14:42.254Z'
modified: '2019-08-20T08:35:29.028Z'
modified: '2020-01-03T07:49:27.060Z'
---

# acronym

[[ascii]] - `American Standard Code for Infromation Interchange`

## acid
> set of properties that guarante reliable databse transactions
```
@@ -36,7 +34,6 @@ C R U D
| Update | `UPDATE` | `PATCH` or `PUT` |
| Delete (Destroy) | `DELETE` | `DELETE` |


[[rest api design]]

## solid
@@ -52,7 +49,9 @@ S O L I D


# CAP

> theorem aka `Brewer's theorem`

```
C A P
| | └─ consistency
70 changes: 19 additions & 51 deletions notes/ascii.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,48 @@
---
title: ascii
created: '2019-07-30T06:19:48.987Z'
modified: '2019-12-30T07:37:59.508Z'
modified: '2020-01-03T08:40:39.276Z'
---

# ascii

> `ASCII - American Standard Code for Infromation Interchange` is a character `encoding`standard for electronic communication

### print all avail. characters
## usage
```sh
for ((i=32;i<127;i++)) do printf "\\$(printf %03o "$i")"; done printf "\n"
```
man ascii # table hexadecimal

char | oct | hex |dec
:-- | :-- | :-- |:--
`"` | 042 | 22 | 34
`J` | 112 | 4a | 74
for ((i=32;i<127;i++)) do printf "\\$(printf %03o "$i")"; done printf "\n" # print all avail. characters


```sh
printf '\112' # or
echo $'\112' # octal

printf '\x4a' # hex

printf "\\$(printf %o 74)" # or
xxd -r <<<'0 4a' # decimal
```


## get decimal-set
```sh
# get decimal-set
echo '"' | tr -d "\n" | od -An -t uC
# | └──────────────── Use od (octal dump) to print:
# | -An means Address none
# remove "newline" char -t select a type
# u type is unsigned decimal.
# C of size (one) char
```
# u type is unsigned decimal.
# C of size (one) char


## table hexadecimal
`man ascii`
printf '\112' # or
echo $'\112' # octal

printf '\x4a' # hex

printf "\\$(printf %o 74)" # or

xxd -r <<<'0 4a' # decimal
```
# _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F

# 0_ NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI
# 0 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F

# 1_ DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
# 16 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 001A 001B 001C 001D 001E 001F

# 2_ SP ! " # $ % & ' ( ) * + , - . /
# 32 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 002A 002B 002C 002D 002E 002F

# 3_ 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
# 48 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 003A 003B 003C 003D 003E 003F

# 4_ @ A B C D E F G H I J K L M N O
# 64 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 004A 004B 004C 004D 004E 004F

# 5_ P Q R S T U V W X Y Z [ \ ] ^ _
# 80 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 005A 005B 005C 005D 005E 005F

# 6_ ` a b c d e f g h i j k l m n o
# 96 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 006A 006B 006C 006D 006E 006F

# 7_ p q r s t u v w x y z { | } ~ DEL
# 112 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 007A 007B 007C 007D 007E 007F
```
char | oct | hex |dec
:-- | :-- | :-- |:--
`"` | 042 | 22 | 34
`J` | 112 | 4a | 74

## see also
- [[url encoding]]
- [[ascii character set]]
- [[xxd]]
- [[od]]
- [Jafrog's dev blog](http://jafrog.com/2013/11/23/colors-in-terminal.html)
- http://asciimoji.com/
33 changes: 33 additions & 0 deletions notes/awk array.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
tags: [awk]
title: awk array
created: '2020-01-03T07:43:52.878Z'
modified: '2020-01-06T08:04:22.018Z'
---

# awk array

## usage
```sh
awk '{array[$5] += $4}END{
for(var in array){
printf("%s: %s GB\n",var, array[var]/1024/1024/1024)
}
}'

awk '{
node[1]+=$3;
node[2]+=$4;
node[3]+=$5;
node[4]+=$6;
}END{
for(i in node){
printf("elastic-monitor-1-data-%s %s GB\n",i, node[i]/1024)
}
}'
```

## see also
- [[awk]]
- [[awk variable]]
- [[awk function]]
33 changes: 33 additions & 0 deletions notes/awk function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
tags: [awk]
title: awk function
created: '2020-01-03T07:42:16.401Z'
modified: '2020-01-06T08:05:28.432Z'
---

# awk function

## usage
```sh
printf "%10.0f\n" 1.28071e+09 # print scientific notation as float to stdout

var = fprintf("%s %d %.2f\n", "Testing", 1, 3) } # assigns its output to a variable, not stdout

split($1,swm,"."); # split $1 into array swm[] with optional seperator "."

substr("foobar", 2, 3) # => "oob"

substr("foobar", 4) # => "bar"

length("foo") # => 3

tolower("FOO") # => "foo"

toupper("foo") # => "FOO"

gsub(/"/, "") # remove quotes globally
```

## see also
- [[awk]]
- [[awk variable]]
90 changes: 0 additions & 90 deletions notes/awk snippet.md

This file was deleted.

46 changes: 46 additions & 0 deletions notes/awk variable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
tags: [awk]
title: awk variable
created: '2020-01-03T07:41:12.778Z'
modified: '2020-01-06T08:12:12.983Z'
---

# awk variable

## 2 types
- Variable which defines values which can be changed such as field separator `FS` and record separator `RS`
- Variable which can be used for processing and reports such as Number of records, number of fields
```sh
CONVFMT # conversion format used when converting numbers (default %.6g)

FS # input field separator; regular expression used to separate fields; also settable by option -Ffs.

NF # number of fields in the current record

NR # ordinal number of the current record

FNR # ordinal number of the current record in the current file
# Number of Records relative to the current input file / when using two input files => seperate RecordNumbers

FILENAME # the name of the current input file

RS # input record separator (default newline)

OFS # output field separator (default blank)

ORS # output record separator (default newline)

OFMT # output format for numbers (default %.6g)

SUBSEP # separates multiple subscripts (default 034)

ARGC # argument count, assignable

ARGV # argument array, assignable; non-null members are taken as filenames

ENVIRON # array of environment variables; subscripts are names.
```

## see also
- [[awk]]
- [[awk function]]
Loading