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
changes here and there
invad0r committed Dec 28, 2019
commit c1e223cf462ce074d285c2777f56ec5718f44061
23 changes: 23 additions & 0 deletions notes/a2enmod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: a2enmod
created: '2019-12-26T19:41:19.878Z'
modified: '2019-12-28T15:45:02.321Z'
---

# a2enmod
> enable apche2 modules

## usage
```sh
a2enmode ssl # enable-modules

a2enmod info.load # /server-status

a2enmod info.conf
# vim /etc/apach2/mods-available/info.conf => comment Require to access outside localhost
```

## see also
- [[apache2]]
- [[a2ensite]]
- [[apachectl]]
24 changes: 24 additions & 0 deletions notes/a2ensite a2dissite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: a2ensite a2dissite
created: '2019-12-28T15:45:07.030Z'
modified: '2019-12-28T15:49:09.947Z'
---

# a2ensite a2dissite
> enable or disable an apache2 site / virtual host
## usage
```sh
a2ensite vhosts_nam.com.conf # enable site

a2dissite 000-default

# flags:
# -q, --quiet don't show informative messages.
# -m, --maintmode enables the maintainer mode
# -p, --purge purge all traces of the module in the internal state data base
```

## see also
- [[apache2]]
- [[a2enmod]]
- https://manpages.debian.org/jessie/apache2/a2ensite.8.en.html
4 changes: 3 additions & 1 deletion notes/ansible-playbook.md
Original file line number Diff line number Diff line change
@@ -2,11 +2,13 @@
tags: [iac]
title: ansible-playbook
created: '2019-11-28T11:53:47.807Z'
modified: '2019-11-29T11:34:33.363Z'
modified: '2019-12-25T20:04:08.815Z'
---

# ansible-playbook

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

## usage
```sh
ansible-playbook --syntax-check playbook.yml
9 changes: 5 additions & 4 deletions notes/ansible.md
Original file line number Diff line number Diff line change
@@ -2,19 +2,20 @@
tags: [iac]
title: ansible
created: '2019-07-30T06:19:27.514Z'
modified: '2019-11-28T11:53:44.809Z'
modified: '2019-12-25T20:58:07.634Z'
---

# ansible

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

ansible -i hosts all -m ping # uses local hosts file
ansible all -m shell -a 'cat /etc/*release'

ansibele all -m shell -a 'cat /etc/*release'
ansible -i hosts all -m ping # uses local hosts file
```

## see also
- [[ansible-playbook]]
- [[ssh]]
18 changes: 5 additions & 13 deletions notes/apache httpd.md → notes/apache2.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
---
tags: [linux]
title: apache httpd
title: apache2
created: '2019-07-30T06:19:48.985Z'
modified: '2019-11-28T11:55:22.213Z'
modified: '2019-12-28T15:44:40.909Z'
---

# apache httpd

# apache2
> `A Patchy Server`

## usage
```sh
# prerequesite
source /etc/apache2/envvars \
apache2 -S # Show settings as parsed from the config file
```

```sh
a2enmode ssl # enable-modules

# /server-status
a2enmod info.load
a2enmod info.conf # vim /etc/apach2/mods-available/info.conf => comment Require to access outside localhost
service apache2 restart

a2ensite vhosts_nam.com.conf # enable site
```

## see also
- [[apachectl]]
- [[a2enmod]]
- [Generate Mozilla Security Recommended Web Server Configuration Files](https://mozilla.github.io/server-side-tls/ssl-config-generator/)
4 changes: 2 additions & 2 deletions notes/apachectl.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [linux]
title: apachectl
created: '2019-11-28T11:55:25.653Z'
modified: '2019-11-29T11:34:45.404Z'
modified: '2019-12-26T19:37:40.377Z'
---

# apachectl
@@ -23,4 +23,4 @@ ls /etc/apache2/mods-available/ # list available modules
```

## see also
-
- [[apache2]]
15 changes: 4 additions & 11 deletions notes/arp.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@
tags: [linux, network]
title: arp
created: '2019-09-03T11:30:41.018Z'
modified: '2019-09-03T12:20:06.640Z'
modified: '2019-12-26T19:30:31.098Z'
---

# arp

> manipulates or displays the kernel's ipv4 network neighbour cache. It can add entries to the table, delete one, or display the current content.

## usage
```sh
arp -a # display (all) hosts in alternative (BSD) style
arp -e # display (all) hosts in default (Linux) style
@@ -17,20 +17,13 @@ arp -a 159.254.171.22


arp -i ens192 # display for interface
```

```sh
cat /proc/net/arp
```

## arping
```sh
arping # Send ARP request to a neighbour host
arping -I eth0 192.168.1.1 # Send ARP request to 192.168.1.1 via interface eth0
arping -D -I eth0 192.168.1.1 # Check for duplicate MAC addresses at 192.168.1.1 on eth0
cat /proc/net/arp
```

## see also
- [[arping]]
- [[procfs]]
- [[ip]]
- [[net-tools vs iproute]]
19 changes: 19 additions & 0 deletions notes/arping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: arping
created: '2019-12-26T19:30:34.765Z'
modified: '2019-12-26T19:31:33.100Z'
---

# arping

## usage
```sh
arping # Send ARP request to a neighbour host

arping -I eth0 192.168.1.1 # Send ARP request to 192.168.1.1 via interface eth0

arping -D -I eth0 192.168.1.1 # Check for duplicate MAC addresses at 192.168.1.1 on eth0
```

## see also
- [[arp]]
7 changes: 4 additions & 3 deletions notes/atom.md
Original file line number Diff line number Diff line change
@@ -2,11 +2,12 @@
tags: [editor]
title: atom
created: '2019-07-30T06:19:48.989Z'
modified: '2019-07-30T20:37:25.171Z'
modified: '2019-12-26T19:29:14.700Z'
---

# atom

## usage
<kbd>cmd + shift + p </kbd> # command palette will pop up

<kbd>cmd + ;</kbd> # open setting view
@@ -24,8 +25,8 @@ apm install remember-session
```

## test


<kbd>ctl + shift + p</kbd>
Window:Reload

## see also
-
20 changes: 18 additions & 2 deletions notes/bash braces.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [bash]
title: bash braces
created: '2019-09-24T06:43:14.231Z'
modified: '2019-09-24T06:55:26.191Z'
modified: '2019-12-21T10:09:18.181Z'
---

# bash braces
@@ -23,11 +23,27 @@ $(...) # execute the command in the parens in a subshell and return its s
COMMAND | { echo "nope"; exit 1; }
```

## expansion
## arithmetic expansion
```sh
$((...)) # arithmetic expansion and return the result
```
```sh
$((1+1))

$((2*2))

$((4/2))

$((2**2))

$((base#number)) # convert number from base to decimal
$((2#1111)) # 15
$((8#16)) # 14
$((16#FF)) # 255

```

## parameter expansion
```sh
${...} # parameter expansion and return the value
```
9 changes: 8 additions & 1 deletion notes/brew cask.md
Original file line number Diff line number Diff line change
@@ -2,12 +2,19 @@
tags: [brew, osx, packagemanager]
title: brew cask
created: '2019-08-22T07:27:31.381Z'
modified: '2019-09-23T06:41:42.008Z'
modified: '2019-12-26T11:29:42.369Z'
---

# brew cask
> an `extension` to brew that allows management of `graphical applications`

## usage
```sh
brew cask

brew cask install CASK
```

## see also
- [caskroom.github.io/search](https://caskroom.github.io/search)
- [[brew]]
3 changes: 2 additions & 1 deletion notes/brew tap.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,14 @@
tags: [brew, osx, packagemanager]
title: brew tap
created: '2019-08-22T08:24:53.732Z'
modified: '2019-09-23T06:41:29.705Z'
modified: '2019-12-26T11:25:55.377Z'
---

# brew tap

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

## usage
```sh
brew tap # list tapped repositories

4 changes: 3 additions & 1 deletion notes/chronyc.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [linux]
title: chronyc
created: '2019-10-26T17:54:31.118Z'
modified: '2019-11-29T11:36:30.999Z'
modified: '2019-12-05T07:04:15.602Z'
---

# chronyc
@@ -41,5 +41,7 @@ chronyc sources -v # displays information about the current time sources that

## see also
- [[chronyd]]
- [[date]]
- [[hwclock]]
- https://blacksaildivision.com/ntp-centos
- https://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/sect-Checking_if_chrony_is_synchronized.html
3 changes: 2 additions & 1 deletion notes/confluent platfom.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
deleted: true
title: confluent platfom
created: '2019-09-25T08:38:53.778Z'
modified: '2019-09-25T08:42:54.923Z'
modified: '2019-12-26T19:27:59.668Z'
---

# confluent platfom
4 changes: 2 additions & 2 deletions notes/curl.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [curl, linux, network]
title: curl
created: '2019-07-30T06:19:49.032Z'
modified: '2019-08-28T08:54:11.451Z'
modified: '2019-12-10T14:45:10.383Z'
---

# curl
@@ -75,4 +75,4 @@ curl --url "http://www.example.com?$(date +%s)"
- [[curl write-out]]
- [Extracting data from Wikipedia - loige.co](http://loige.co/extracting-data-from-wikipedia-using-curl-grep-cut-and-other-bash-commands)
- [linux - Curl command without using cache - Stack Overflow](https://stackoverflow.com/questions/31653271/curl-command-without-using-cache)

- [[wget]]
3 changes: 2 additions & 1 deletion notes/date.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [linux, osx]
title: date
created: '2019-07-30T06:19:49.033Z'
modified: '2019-11-27T12:26:20.319Z'
modified: '2019-12-05T07:04:24.041Z'
---

# date
@@ -38,5 +38,6 @@ man strftime
```

## see also
- [[hwclock]]
- [[timedatectl]]
- [[strftime]]
14 changes: 8 additions & 6 deletions notes/diff.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
tags: [linux]
title: diff
created: '2019-07-30T06:19:49.036Z'
modified: '2019-11-28T08:12:55.515Z'
modified: '2019-12-26T11:34:16.705Z'
---

# diff
@@ -15,12 +15,14 @@ diff --unified file1.json file2.json

diff <(sort <(md5deep -r /$1/) |cut -f1 -d' ') <(sort <(md5deep -r /$2/) |cut -f1 -d' ')

diff -y <(curl -s https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash) <(cat `brew --prefix`/etc/bash_completion.d/git-completion.bash)
```
diff -y \
<(curl -s https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash) \
<(cat `brew --prefix`/etc/bash_completion.d/git-completion.bash)

## dynamic width
```sh
diff -y -W $(tput cols) <(docker service inspect pp-backend_application) <(docker service inspect presseportal-backend_application)
# dynamic width
diff -y -W $(tput cols) \
<(docker service inspect pp-backend_application) \
<(docker service inspect presseportal-backend_application)
```

## see also
3 changes: 2 additions & 1 deletion notes/dns records.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
deleted: true
tags: [dns]
title: dns records
created: '2019-07-30T06:19:49.039Z'
modified: '2019-08-18T15:22:11.313Z'
modified: '2019-12-26T19:28:03.203Z'
---

# dns records
Loading