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
bunch of socket stuff
  • Loading branch information
invad0r committed Jan 21, 2020
commit d25720669d20763dfa3fd24ab88d5357c3427acb
13 changes: 0 additions & 13 deletions attachments/docker-compose.go-build.yml

This file was deleted.

3 changes: 1 addition & 2 deletions notes/ant.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [buildtool, java]
title: ant
created: '2019-08-20T07:46:08.815Z'
modified: '2019-11-28T11:54:16.798Z'
modified: '2020-01-18T06:55:26.902Z'
---

# ant
@@ -32,4 +32,3 @@ ant hello # run target: hello

## see also
- [[mvn]]
- [[aant]]
10 changes: 5 additions & 5 deletions notes/brew.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,16 @@
tags: [brew, osx, packagemanager]
title: brew
created: '2019-07-30T06:19:49.028Z'
modified: '2020-01-03T07:32:25.968Z'
modified: '2020-01-20T08:14:36.987Z'
---

# brew

> package manager for macOS

## install
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`

## usage
```sh
brew list
@@ -37,13 +40,10 @@ brew man # generate brew man-pages

brew install grep --with-default-names # used with-default-names to avoid prefixing with "g"

brew install
brew install
inetutils
gnu-getopt
socat
findutils
netcat
ss
pstree
rmtrash
mkcert
8 changes: 7 additions & 1 deletion notes/capabilities.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: capabilities
created: '2020-01-17T07:20:37.598Z'
modified: '2020-01-17T07:38:35.959Z'
modified: '2020-01-20T12:40:13.407Z'
---

# capabilities
@@ -21,10 +21,16 @@ modified: '2020-01-17T07:38:35.959Z'
Privileged processes bypass all kernel permission checks
unprivileged processes are subject to full permission checking based on the process's credentials (usually: effective UID, effective GID, and supplementary group list)

## usage
```sh
man 7 capabilities
```

## capabilities list
```sh
CAP_IPC_LOCK # lock memory
```
## see also
- [[capsh]]
- [[getcap]]
- [[docker-compose]]
29 changes: 29 additions & 0 deletions notes/cryptsetup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: cryptsetup
created: '2020-01-20T19:52:26.328Z'
modified: '2020-01-21T07:03:32.961Z'
---

# cryptsetup

> utility used to conveniently set up disk encryption based on the DMCrypt kernel module

## usage
```sh
cryptsetup -v my_disk_mapper # doesnt work ?!


cryptsetup luksFormat -c aes-cbc-essiv:sha256 -s 256 /dev/sdc1


cryptsetup luksOpen /dev/sda my_disk_mapper

cryptsetup luksOpen -d /etc/.crypto/cr_crypto.keyfile /dev/sdc1 cr_crypto # use keyfile


cryptsetup luksClose /dev/mapper/my_disk_mapper
```
## see also
- [[mount]]
- https://medium.com/@amritanshu16/how-to-mount-luks-encrypted-disk-in-raspbian-821b0a56c18e
- https://linuxwiki.de/cryptsetup
24 changes: 22 additions & 2 deletions notes/docker-compose.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
attachments: [docker-compose.go-build.yml]
pinned: true
tags: [container]
title: docker-compose
created: '2019-08-28T09:08:43.657Z'
modified: '2019-11-15T06:58:18.753Z'
modified: '2020-01-20T12:41:41.067Z'
---

# docker-compose
@@ -19,7 +19,27 @@ docker-compose ps
docker-compose up -d service_name
```

## compose file version 3 reference
```yml
cap_add:
- ALL

cap_drop:
- NET_ADMIN
- SYS_ADMIN
```

## compose file version 3 reference
```yml
cap_add:
- ALL
cap_drop:
- NET_ADMIN
- SYS_ADMIN
```

## see also
- [docker-compose.terraform-run.yml](@attachment/docker-compose.terraform-run.yml)
- [docker-compose.go-build.yml](@attachment/docker-compose.go-build.yml)
- [[capabilities]]
- [[yml]]
21 changes: 21 additions & 0 deletions notes/dot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: dot
created: '2020-01-20T08:57:17.661Z'
modified: '2020-01-20T09:01:04.356Z'
---

# dot

> dot draws directed graphs as hierarchie

## install
`apk add graphviz`

## usage
```sh
dot -Tsvg > graph.svg

# -Tv set output format to 'v'
```
## see also
- [[terraform]]
8 changes: 4 additions & 4 deletions notes/kafka rest-proxy.md → notes/kafka rest-proxy api.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: kafka rest-proxy
title: kafka rest-proxy api
created: '2019-10-02T08:00:18.210Z'
modified: '2019-11-29T10:44:27.352Z'
modified: '2020-01-20T18:27:42.654Z'
---

# kafka rest-proxy
# kafka rest-proxy api

## usage
```sh
@@ -23,4 +23,4 @@ curl -s -XGET http://HOST:8082/topics/testTopic/partitions |jq

## see also
- [[kafka]]
- [[kafka schema-registry]]
- [[kafka schema-registry api]]
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: kafka schema-registry
title: kafka schema-registry api
created: '2019-10-02T08:00:24.539Z'
modified: '2019-11-29T10:44:56.373Z'
modified: '2020-01-20T18:27:48.861Z'
---

# kafka schema-registry
# kafka schema-registry api

## usage
```sh
@@ -24,4 +24,4 @@ curl -s -X GET \

## see also
- [[kafka]]
- [[kafka rest-proxy]]
- [[kafka rest-proxy api]]
39 changes: 17 additions & 22 deletions notes/kafka.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: kafka
created: '2019-07-30T06:19:49.147Z'
modified: '2019-12-09T08:55:56.058Z'
modified: '2020-01-20T18:31:23.814Z'
---

# kafka

## config
## usage
```sh
unset KAFKA_OPTS # unset if deployed with -javaagent

@@ -34,26 +34,17 @@ kafka-console-producer --broker-list kafka-1:9092 --topic foo.bar # then star
## kafka-console-consumer
> `kafka-run-class kafka.tools.ConsoleConsumer "$@"`
```sh
kafka-console-consumer --bootstrap-server kafka-1:9094 --topic test # consume messages
kafka-console-consumer --bootstrap-server kafka-1:9092 --topic foo.bar --from-beginning # consume messages

kafka-console-consumer --bootstrap-server kafka-1:9092 --from-beginning --topic foo.bar
kafka-console-consumer --bootstrap-server kafka-1:9092 --topic foo.bar --partition 0 --offset 2 # get offset

kafka-console-consumer --bootstrap-server kafka-1:9092 --topic foo.bar --partition 0 --offset 2 # get offset

kafka-console-consumer --consumer.config ssl.conf --bootstrap-server kafka-1:9092 --topic customerEvents --from-beginning

kafka-console-consumer --consumer.config ssl.conf --bootstrap-server kafka-1:9092 --from-beginning --topic foo.bar
kafka-console-consumer --consumer.config ssl.conf --bootstrap-server kafka-1:9092 --topic foo.bar --from-beginning
```

## kafka-delete-records
```sh
kafka-delete-records --command-config ssl.conf --bootstrap-server kafka-1:9092 --offset-json-file offset-json.json
```
```json
{
"partitions": [ {"topic": "customerEvents", "partition": 0, "offset": 609} ],
"version": 1
}
# { "partitions": [ {"topic": "customerEvents", "partition": 0, "offset": 609} ], "version": 1 }
```

## kafka-consumer-groups
@@ -62,14 +53,19 @@ kafka-consumer-groups --command-config ssl.conf --bootstrap-server kafka-1:9092

kafka-consumer-groups --command-config ssl.conf --bootstrap-server kafka-1:9092 -describe -group my-stream-processing-application

kafka-consumer-groups --consumer.config ssl.conf --bootstrap-server kafka-host:9092 --group my-group --reset-offsets --to-earliest --all-topics --execute
kafka-consumer-groups --consumer.config ssl.conf --bootstrap-server kafka-host:9092 \
--group my-group \
--reset-offsets \
--to-earliest \
--all-topics \
--execute
```

## kafka-run-class
```sh
kafka-run-class kafka.tools.GetOffsetShell --command-config ssl.conf --broker-list kafka-1:9092 --topic foo.bar # get offset
kafka-run-class kafka.tools.GetOffsetShell --command-config ssl.conf --broker-list kafka-1:9092 --topic foo.bar # get offset

kafka-run-class kafka.tools.GetOffsetShell --broker-list kafka-1:9092 --topic de.story --time -1 --offsets 1 # topic size
kafka-run-class kafka.tools.GetOffsetShell --broker-list kafka-1:9092 --topic de.story --time -1 --offsets 1 # topic size
```

## kafka-broker-api-versions
@@ -78,7 +74,6 @@ kafka-broker-api-versions --bootstrap-server kafka-2:9092 --command-config ssl.c
```

## see also
- [[kafka rest-proxy]]
- [[kafka schema-registry]]
- [[zookeeper]]
- [[rabbitmqctl]]
- [[kafka rest-proxy api]]
- [[kafka schema-registry api]]
- [[zookeeper-shell]]
56 changes: 56 additions & 0 deletions notes/keycloak api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: keycloak api
created: '2020-01-20T19:49:21.872Z'
modified: '2020-01-20T19:50:57.004Z'
---

# keycloak api

## usage
```sh
export TKN=$(curl -s -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
"http://HOST/auth/realms/master/protocol/openid-connect/token" \
-d "username=USER" \
-d "password=PASS" \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token')

echo "get users count.."
# GET /auth/admin/{realm}/users/count
curl -s -X GET \
-H "Accept: application/json" -H "Authorization: Bearer $TKN" \
http://HOST/auth/admin/realms/master/users/count | jq

echo "get users.."
# GET /auth/admin/realms/master/users
curl -s -X GET \
-H "Accept: application/json" -H "Authorization: Bearer $TKN" \
http://HOST/auth/admin/realms/master/users | jq


echo "get realms.."
# GET /auth/admin/realms
curl -s -X GET \
-H "Accept: application/json" -H "Authorization: Bearer $TKN" \
http://HOST/auth/admin/realms | jq '.[].realm'


# GET /auth/admin/realms
curl -s -X GET \
-H "Accept: application/json" -H "Authorization: Bearer $TKN" \
http://HOST/auth/admin/realm/foo | jq '.'
foo


# GET /{realm}/users/{id}
curl -s -X GET \
-H "Accept: application/json" -H "Authorization: Bearer $TKN" \
http://HOST/auth/admin/realms/master/users/5b1778a6-db75-4276-9ab5-e90396c1e47b | jq

```
## see also
- [[nexus api]]
- [[graylog api]]
- [[gitlab api]]

3 changes: 2 additions & 1 deletion notes/mount.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [linux]
title: mount
created: '2019-07-30T06:19:49.179Z'
modified: '2020-01-07T08:18:51.600Z'
modified: '2020-01-20T19:52:23.559Z'
---

# mount
@@ -36,4 +36,5 @@ mount | mount | grep "^/dev" | awk '{print $1" " $5}' # filesystem of partitio
- [[fstab]]
- [[findmnt]]
- [[docker volume]]
- [[cryptsetup]]
- [what-is-a-bind-mount - unix.stackexchange.com](https://unix.stackexchange.com/a/198591/193945)
Loading