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 6 (#9)
- renamed api docs
- simplified related commands zip unzip
- added flag, env sections etc
0xdnL authored Mar 16, 2022

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
commit 9cf776bfc55fd35ca78a2d613e48db8e57abf7d9
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
.obsidian/
76 changes: 76 additions & 0 deletions notes/12 factor app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
title: 12 factor app
created: '2022-02-15T10:15:31.700Z'
modified: '2022-02-15T10:36:03.327Z'
---

# 12 factor app

> methodology for building software-as-a-service apps

## 12 factors


## I. Codebase

> one codebase tracked in a vcs, many deploy

## II. Dependencies

> explicitly declare and isolat dependencies

?!

## III. Config

> store config in the environment

## IV. Backing Services

> treat backing services as attached resources

??

## V. Build, Release, Run

> strictly seperate build and run stages

what is a run stage ?

## VI. Processes

> execute app as one or more stateless processes

## VII. Port Binding

> export services via port binding

[[osi model]] [[tcp-ip model]]

## VIII. Concurrency

> scale out via process model

## IV. Disposability

> maximize robustness with fast startup and graceful shutdown

## X. Dev/prod parity

> keep development, staging and production as similar as possible

## XI. Logs

> treat logs as event streams

## XII. Admin Processes

> rund admin/management tasks as one-off processes



## see also

- [[devops]]
- [12factor.net](https://12factor.net/)
- [[unix socket]]
11 changes: 8 additions & 3 deletions notes/BIND.md
Original file line number Diff line number Diff line change
@@ -2,30 +2,35 @@
tags: [dns]
title: BIND
created: '2019-07-30T06:19:49.027Z'
modified: '2020-08-05T09:18:01.780Z'
modified: '2022-02-15T10:31:57.872Z'
---

# BIND

> `berkeley internet name domain` - implements the DNS protocols and a software distribution which contains all of the software necessary for `asking` and `answering` name service questions

### The BIND software distribution has three parts:
### The BIND software distribution has three parts

1. domain name resolver
resolver is a program that resolves questions about names by sending those questions to appropriate servers and responding appropriately to the servers
stub resolver library
2. domain name authority server - authoritative DNS server answers requests from resolvers
3. tools - diagnostic and operational tools such as the `dig`

## install

`yum install bind bind-utils`

## usage
- `BIND`’s process is known as [[named]]

`BIND`’s process is known as [[named]]

```sh
/var/lib/named/slave/domain.net.zone
```

## see also

- [[dig]]
- [[named]]
- [[dnsmasq]]
5 changes: 4 additions & 1 deletion notes/acid crud.md
Original file line number Diff line number Diff line change
@@ -2,12 +2,13 @@
tags: [Notebooks]
title: acid crud
created: '2019-08-18T16:14:42.254Z'
modified: '2020-08-24T12:24:59.821Z'
modified: '2022-02-02T08:49:37.072Z'
---

# acid crud

## acid

> set of properties that guarante reliable database transactions
```
A C I D
@@ -37,6 +38,7 @@ On POSIX systems, durability is achieved through `sync` operations: `fsync`, `fd
`fdatasync()` does not necessarily update the meta-data associated with a file – such as the `last modified` date – but only the file data

## crud

> 4 basic functions of persistent storage
```
C R U D
@@ -54,6 +56,7 @@ C R U D
| Delete (Destroy) | `DELETE` | `DELETE` |

## see also

- [[rest api design]]
- [blog.httrack.com/../everything-you-always-wanted-to-know-about-fsync](http://blog.httrack.com/blog/2013/11/15/everything-you-always-wanted-to-know-about-fsync/)
- [lwn.net/postgresqls-fsync-surprise](https://lwn.net/Articles/752063/)
36 changes: 36 additions & 0 deletions notes/add-apt-repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: add-apt-repository
created: '2022-02-02T09:05:29.982Z'
modified: '2022-02-02T09:11:07.728Z'
---

# add-apt-repository

> script which adds an external [[apt]] repository to either `/etc/apt/sources.list` or a file in `/etc/apt/sources.list.d/` or removes an already existing repository

## flags

```sh
-h, --help # show help message and exit
-m, --massive-debug # print a lot of debug information to the command line
-r, --remove # remove the specified repository
-y, --yes # assume yes to all queries
-k, --keyserver # use custom keyserver instead of the default
-s, --enable-source # allow downloading of the source packages from the repository
```

## usage

```sh
add-apt-repository "deb https://download.srcclr.com/ubuntu stable/"
add-apt-repository "ppa:ian-berke/ppa-drawers" # ppa

add-apt-repository -r "deb https://download.srcclr.com/ubuntu stable/"
add-apt-repository -r "ppa:ian-berke/ppa-drawers"
```

## see also

- [[apt-key]]
- [[apt]]
- [[apt-get]]
4 changes: 3 additions & 1 deletion notes/adduser.md
Original file line number Diff line number Diff line change
@@ -2,20 +2,22 @@
tags: [linux]
title: adduser
created: '2020-03-23T12:12:51.817Z'
modified: '2020-08-31T09:36:08.087Z'
modified: '2022-02-02T08:49:45.771Z'
---

# adduser

> uses `useradd` as backend and adds user with full profile and info (pass, quota, permission, etc.)

## usage

```sh
adduser USER

adduser --home USER_HOME --system --group USER
```

## see also

- [[useradd]]
- [[usermod]]
4 changes: 3 additions & 1 deletion notes/airport.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,15 @@
tags: [macos, network]
title: airport
created: '2019-07-30T06:19:49.196Z'
modified: '2020-02-04T12:21:27.120Z'
modified: '2022-02-02T08:49:57.619Z'
---

# airport

> get information for 802.11 interface

## usage

```sh
ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport

@@ -23,4 +24,5 @@ airport -I # Get current connection info
```

## see also

- [[networksetup]]
29 changes: 29 additions & 0 deletions notes/amazon-linux-extras.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: amazon-linux-extras
created: '2022-01-24T10:53:34.798Z'
modified: '2022-01-24T11:00:43.633Z'
---

# amazon-linux-extras

> manage specific fresh software

## install

`yum install -y amazon-linux-extras`

## usage

```sh
amazon-linux-extras # list

amazon-linux-extras enable php7.2 # enable desired topic

amazon-linux-extras install -y postgresql12 #
```

## see also

- [[aws]]
- [[psql]]
- [[yum]]
4 changes: 3 additions & 1 deletion notes/ansible-playbook.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,15 @@
tags: [iac]
title: ansible-playbook
created: '2019-11-28T11:53:47.807Z'
modified: '2019-12-25T20:04:08.815Z'
modified: '2022-02-02T08:50:15.733Z'
---

# ansible-playbook

> runs ansible playbooks, executing the defined tasks on the targeted hosts.

## usage

```sh
ansible-playbook --syntax-check playbook.yml

@@ -21,4 +22,5 @@ ansible-playbook -i hosts ansible-bootstrap-ubuntu-16.04.yml # bootstraps mac
```

## see also

- [[ansible]]
4 changes: 3 additions & 1 deletion notes/ansible.md
Original file line number Diff line number Diff line change
@@ -2,14 +2,15 @@
tags: [iac]
title: ansible
created: '2019-07-30T06:19:27.514Z'
modified: '2020-09-07T16:57:36.183Z'
modified: '2022-02-02T08:50:08.080Z'
---

# ansible

> software provisioning, configuration management, and application-deployment tool enabling infrastructure as code

## usage

```sh
ansible all -m ping -s # adhoc command

@@ -19,5 +20,6 @@ ansible -i hosts all -m ping # uses local hosts file
```

## see also

- [[ansible-playbook]]
- [[ssh]]
6 changes: 5 additions & 1 deletion notes/ant.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,15 @@
tags: [buildsystem, java]
title: ant
created: '2019-08-20T07:46:08.815Z'
modified: '2020-09-02T07:25:18.810Z'
modified: '2022-02-02T08:50:25.068Z'
---

# ant

> completely written in java - `ant` uses `xml` as build script

## usage

```sh
ant -version

@@ -20,6 +22,7 @@ ant hello # run target: hello
```

## target

```xml
<?xml version="1.0"?>
<project name="HelloWorld" default="hello">
@@ -30,5 +33,6 @@ ant hello # run target: hello
```

## see also

- [[mvn]]
- [[java]]
Loading