This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
onny:notizen [2022/07/04 09:49] – [fd] 10.25.0.100 | onny:notizen [2022/09/19 18:42] – [mysql] 10.25.0.100 | ||
---|---|---|---|
Line 214: | Line 214: | ||
</ | </ | ||
+ | ==== xargs ==== | ||
+ | |||
+ | < | ||
+ | fd . | xargs -I {} rm " | ||
+ | </ | ||
===== rsync ===== | ===== rsync ===== | ||
custom ssh port | custom ssh port | ||
Line 469: | Line 474: | ||
sec tools | sec tools | ||
+ | * dirbuster | ||
* https:// | * https:// | ||
* **tiger** - system sec scanner | * **tiger** - system sec scanner | ||
Line 1312: | Line 1318: | ||
</ | </ | ||
- | quick launch | + | run program |
<code bash> | <code bash> | ||
- | nix run nixpkgs.electrum --command | + | nix run nixpkgs#electrum |
+ | nix shell nixpkgs# | ||
</ | </ | ||
Line 1448: | Line 1455: | ||
< | < | ||
patches = [ | patches = [ | ||
- | ./ | ||
- | |||
# Support HBPL1 printers https:// | # Support HBPL1 printers https:// | ||
./ | ./ | ||
Line 1458: | Line 1463: | ||
url = " | url = " | ||
sha256 = " | sha256 = " | ||
+ | stripLen = 1; | ||
+ | name = " | ||
}) | }) | ||
]; | ]; | ||
+ | </ | ||
+ | |||
+ | fetchpatch array | ||
+ | |||
+ | < | ||
+ | patches = map fetchpatch [ | ||
+ | /* This patch is currently necessary for the unit test suite to run correctly. | ||
+ | * See https:// | ||
+ | * and https:// | ||
+ | */ | ||
+ | #{ | ||
+ | # name = " | ||
+ | # sha256 = " | ||
+ | # url = " | ||
+ | #} | ||
+ | |||
+ | # This patch fixes test compile issues with glibc 2.33+. | ||
+ | #{ | ||
+ | # name = " | ||
+ | # sha256 = " | ||
+ | # url = " | ||
+ | #} | ||
</ | </ | ||
Line 2113: | Line 2142: | ||
# download kernel and stuff from here http:// | # download kernel and stuff from here http:// | ||
qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append " | qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append " | ||
+ | </ | ||
+ | |||
+ | ===== postgresql ===== | ||
+ | |||
+ | dump database | ||
+ | < | ||
+ | pg_dump -U gitlab gitlabhq_production > / | ||
+ | </ | ||
+ | |||
+ | dump all | ||
+ | < | ||
+ | pg_dumpall > / | ||
+ | </ | ||
+ | |||
+ | import database | ||
+ | < | ||
+ | psql# CREATE DATABASE gitlabhq_production; | ||
+ | psql -U gitlab gitlabhq_production < gitlab.pgsql | ||
+ | </ | ||
+ | |||
+ | ===== mysql ===== | ||
+ | |||
+ | Dump database | ||
+ | <code bash> | ||
+ | mysqldump -u root -p Tutorials > tut_backup.sql | ||
+ | </ | ||
+ | |||
+ | Backup everything | ||
+ | <code bash> | ||
+ | mysqldump -u root -p --all-databases > alldb.sql | ||
+ | # in case of nextcloud | ||
+ | mysqldump -u root -p --all-databases --default-character-set=utf8mb4 > alldb.sql | ||
+ | </ | ||
+ | |||
+ | Import database | ||
+ | < | ||
+ | mysql> CREATE DATABASE wordpress; | ||
+ | sudo mysql -u root wordpress < wordpress.sql | ||
+ | </ | ||
+ | |||
+ | Setup | ||
+ | <code bash> | ||
+ | systemctl stop mysqld | ||
+ | mysql_install_db --user=mysql --basedir=/ | ||
+ | systemctl start mysqld | ||
+ | mysql_secure_installation | ||
</ | </ |