Browse Source

Merge branch 'master' of git.osuv.de:m/dotfiles

master
Markus Bergholz 1 year ago
parent
commit
e37c890099
2 changed files with 27 additions and 6 deletions
  1. +4
    -0
      docker/dokuwiki/Dockerfile
  2. +23
    -6
      til.md

+ 4
- 0
docker/dokuwiki/Dockerfile View File

@ -0,0 +1,4 @@
FROM linuxserver/dokuwiki
RUN apk update && apk add sqlite php7-pdo_sqlite

+ 23
- 6
til.md View File

@ -540,13 +540,13 @@ run tests in docker container
run sanity check for all
`./bin/ansible-test sanity --docker default `
`./bin/ansible-test sanity --docker default`
run sanity check for one module
`bin/ansible-test sanity lib/ansible/modules/cloud/amazon/cloudwatchlogs_log_group_metric_filter.py --docker default`
run integration test
run integration test
`./bin/ansible-test integration -v --python 3.7 cloudwatchlogs --docker --allow-unsupported`
@ -604,7 +604,7 @@ TO repl@'%' IDENTIFIED BY 'repl';
```
mysqldump --master-data=1 --single-transaction --flush-privileges \
--routines --triggers --all-databases > writer_dump.sql
--routines --triggers --all-databases > writer_dump.sql
```
3. grep for bin log position
@ -685,9 +685,9 @@ all traffic through sshuttle
only subnet through shuttle
`sudo sshuttle -r m@h.osuvd.de 192.168.178.0/24 -x h.osuv.de`
`sudo sshuttle -r m@h.osuvd.de 192.168.178.0/24 -x h.osuv.de`
`specify ssh key
`specify ssh key
`sudo sshuttle --dns -r m@h.osuv.de:22 0/0 -x h.osuv.de --ssh-cmd 'ssh -i /your/key/path.pem'`x
@ -715,4 +715,21 @@ create database
```
create database fluentbit
```
```
# solo key
### u2f for sudo
```
sudo dnf install pamu2fcfg pam-u2f
mkdir ~/.config/Yubico
pamu2fcfg > ~/.config/Yubico/u2f_keys
pamu2fcfg -n >> ~/.config/Yubico/u2f_keys # for a 2nd key
# in /etc/pam.d/sudo add
auth sufficient pam_u2f.so
```

Loading…
Cancel
Save