rkWiki
http://wiki.reneknipschild.net/
2024-03-29T14:00:44+01:00rkWiki
http://wiki.reneknipschild.net/
http://wiki.reneknipschild.net/lib/tpl/default/images/favicon.icotext/html2023-11-07T15:08:59+01:00deedee0815dev:sql:sed - angelegt
http://wiki.reneknipschild.net/dev:sql:sed?rev=1699366139&do=diff
Um eine SQL-Datenbank auf einen neuen Server zu migrieren, in der diverse Servernamen enthalten sind, kann mit folgendem Befehl der Dump bearbeitet werden, sodass die Referenzen auf dem neuen Server korrekt sind.
sed -i 's/old.server.name/new.server.name/g' dump.sqltext/html2023-08-01T18:33:22+01:00deedee0815dev:sql:dockerizedmysql - angelegt
http://wiki.reneknipschild.net/dev:sql:dockerizedmysql?rev=1690907602&do=diff
Funktioniert mit [docker.io/library/mysql] or [docker.io/library/mariadb].
Shell-Login
docker exec -it container-id sh -c 'mysql -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE"'
Import
docker exec -i myapp-db-1 sh -c 'mysql -u "$MYSQL_USERNAME" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE"' < ./myapp-db-1.sqltext/html2023-07-05T13:10:07+01:00deedee0815en:dev:ops:sshauth - Document catch all rule
http://wiki.reneknipschild.net/en:dev:ops:sshauth?rev=1688555407&do=diff
Generate ssh keys to access remote hosts via ssh. Use one key pair for each
host/remote host pair (and user) or one key pair for each host.
ssh-keygen
Generate a key pair (public and private key), using ssh-keygen(1).
To identify each (public) key (e.g. to revoke access), the (public) key must
contain the following information:text/html2022-02-21T18:23:29+01:00deedee0815en:comp:linux:dockerdbbackup - backup network
http://wiki.reneknipschild.net/en:comp:linux:dockerdbbackup?rev=1645464209&do=diff
docker-compose.yml
version: '2'
services:
backup:
image: kolaente/database-backup
restart: unless-stopped
environment:
CRON_TIME: 0 */12 * * *
DB_BACKUP_MAX: '5'
volumes:
- ./config:/config
- /srv/backups:/backups
- /etc/localtime:/etc/localtime:ro
networks:
- default
- backup
networks:
backup:
external: truetext/html2021-09-23T15:30:39+01:00deedee0815comp:linux:tollebefehle - convert pdf2jpg
http://wiki.reneknipschild.net/comp:linux:tollebefehle?rev=1632403839&do=diff
Hier sind einige sehr hilfreiche „Linux-Befehle“ zusammengestellt. Festzuhalten ist an dieser Stelle die eindeutige Erkenntnis, dass Klickibunti „voll daneben“ ist und man mit der Konsole fast immer schneller zum Ziel kommt. „Linux-Befehle“ gilt insoweit die betreffenden Programme installiert sind.text/html2021-07-08T16:20:12+01:00deedee0815comp:linux:letsencrypt - angelegt
http://wiki.reneknipschild.net/comp:linux:letsencrypt?rev=1625754012&do=diff
Zertifikate manuell per DNS-Auth erstellen
certbot -d my.service.rkcsd.de --manual --preferred-challenge dns certonlytext/html2021-04-21T12:27:57+01:00deedee0815comp:linux:dockerregistry - angelegt
http://wiki.reneknipschild.net/comp:linux:dockerregistry?rev=1619000877&do=diff
# docker exec -it hub_registry_1 bin/registry garbage-collect /var/lib/registry/config.yml -mtext/html2021-02-26T12:34:25+01:00deedee0815dev:gitpatch - Neuer Befehl
http://wiki.reneknipschild.net/dev:gitpatch?rev=1614339265&do=diff
Um ein TAR-Archiv mit allen geänderten Dateien (inkl Unterordnern) zu Erstellen reicht folgender Befehl:
git diff-tree -r --name-only --no-commit-id --diff-filter=ACMRT 12ab34de | tar -czf patch.tgz -T -
Das Archiv kann dann auf dem Zielsystem mittext/html2020-03-13T18:28:28+01:00deedee0815comp:windows:nodomainauth - angelegt
http://wiki.reneknipschild.net/comp:windows:nodomainauth?rev=1584120508&do=diff
Reset-ComputerMachinePassword -Credential MYDOMAIN\SomeDomainAdminAccount
netsh winsock reset catalog
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.logtext/html2019-10-10T23:03:42+01:00deedee0815comp:linux:cifs - angelegt
http://wiki.reneknipschild.net/comp:linux:cifs?rev=1570741422&do=diff
FIXME
//wineshare/code /var/atlassian/application-data/bitbucket cifs credentials=/root/.smbcredentials,uid=atlbitbucket,gid=atlbitbucket,iocharset=utf8,file_mode=0644,dir_mode=0755,noperm 0 0text/html2019-08-15T13:53:22+01:00deedee0815dev:sql:mysqldump - Abschnitt über Import hinzugefügt
http://wiki.reneknipschild.net/dev:sql:mysqldump?rev=1565870002&do=diff
mysqldump -u <Benutzer> -p <Datenbank> -r /root/dump.sql
Dump von allen Datenbanken erstellen
mysqldump -u root -p --all-databases > /private-backup/allDBBackup.sql
Dump importieren
mysql -h 127.0.0.1 --port 33061 -u root -p dbname < 2import.sqltext/html2018-12-14T23:40:09+01:00deedee0815comp:linux:menu.png - angelegt
http://wiki.reneknipschild.net/?image=comp%3Alinux%3Amenu.png&ns=comp%3Alinux&rev=1544827209&tab_details=history&mediado=diff&do=media
<img src="/_media/comp:linux:menu.png?w=406&h=499t=1544827209" alt="comp:linux:menu.png" />text/html2018-11-28T10:42:25+01:00deedee0815comp:linux:jar_open_with.png - angelegt
http://wiki.reneknipschild.net/?image=comp%3Alinux%3Ajar_open_with.png&ns=comp%3Alinux&rev=1543398145&tab_details=history&mediado=diff&do=media
<img src="/_media/comp:linux:jar_open_with.png?w=500&h=461t=1543398145" alt="comp:linux:jar_open_with.png" />text/html2018-11-26T17:44:01+01:00deedee0815comp:linux:teamspeak_ca_error.png - angelegt
http://wiki.reneknipschild.net/?image=comp%3Alinux%3Ateamspeak_ca_error.png&ns=comp%3Alinux&rev=1543250641&tab_details=history&mediado=diff&do=media
<img src="/_media/comp:linux:teamspeak_ca_error.png?w=500&h=152t=1543250641" alt="comp:linux:teamspeak_ca_error.png" />text/html2017-11-04T18:01:55+01:00deedee0815comp:hardware:ioscainst.jpg - angelegt
http://wiki.reneknipschild.net/?image=comp%3Ahardware%3Aioscainst.jpg&ns=comp%3Ahardware&rev=1509814915&tab_details=history&mediado=diff&do=media
<img src="/_media/comp:hardware:ioscainst.jpg?w=500&h=375t=1509814915" alt="comp:hardware:ioscainst.jpg" />text/html2017-05-12T00:02:24+01:00deedee0815comp:linux:qualityssl.png - angelegt
http://wiki.reneknipschild.net/?image=comp%3Alinux%3Aqualityssl.png&ns=comp%3Alinux&rev=1494540144&tab_details=history&mediado=diff&do=media
<img src="/_media/comp:linux:qualityssl.png?w=500&h=278t=1494540144" alt="comp:linux:qualityssl.png" />text/html2017-01-17T14:35:04+01:00deedee0815dev:web:webview_demo.mp4 - angelegt
http://wiki.reneknipschild.net/?image=dev%3Aweb%3Awebview_demo.mp4&ns=dev%3Aweb&rev=1484660104&tab_details=history&mediado=diff&do=media
text/html2017-01-17T07:58:50+01:00deedee0815dev:web:bildschirmfoto_vom_2017-01-17.png - angelegt
http://wiki.reneknipschild.net/?image=dev%3Aweb%3Abildschirmfoto_vom_2017-01-17.png&ns=dev%3Aweb&rev=1484636330&tab_details=history&mediado=diff&do=media
<img src="/_media/dev:web:bildschirmfoto_vom_2017-01-17.png?w=393&h=500t=1484636330" alt="dev:web:bildschirmfoto_vom_2017-01-17.png" />text/html2017-01-16T15:31:38+01:00deedee0815dev:web:bildschirmfoto_vom_2017-01-16_15_21_41.png - angelegt
http://wiki.reneknipschild.net/?image=dev%3Aweb%3Abildschirmfoto_vom_2017-01-16_15_21_41.png&ns=dev%3Aweb&rev=1484577098&tab_details=history&mediado=diff&do=media
<img src="/_media/dev:web:bildschirmfoto_vom_2017-01-16_15_21_41.png?w=392&h=500t=1484577098" alt="dev:web:bildschirmfoto_vom_2017-01-16_15_21_41.png" />text/html2016-10-21T12:10:49+01:00deedee0815comp:www:2.png - angelegt
http://wiki.reneknipschild.net/?image=comp%3Awww%3A2.png&ns=comp%3Awww&rev=1477044649&tab_details=history&mediado=diff&do=media
<img src="/_media/comp:www:2.png?w=392&h=499t=1477044649" alt="comp:www:2.png" />