Site Tools


onny:notizen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
onny:notizen [2022/07/07 08:58] 10.25.0.100onny:notizen [2022/09/17 13:39] – [postgresql] 10.25.0.100
Line 214: Line 214:
 </code> </code>
  
 +==== xargs ====
 +
 +<code>
 +fd . | xargs -I {} rm "{}"
 +</code>
 ===== rsync ===== ===== rsync =====
 custom ssh port custom ssh port
Line 469: Line 474:
 sec tools sec tools
  
 +  * dirbuster
   * https://mitmproxy.org/   * https://mitmproxy.org/
   * **tiger** - system sec scanner   * **tiger** - system sec scanner
Line 1312: Line 1318:
 </code> </code>
  
-quick launch program+run program
  
 <code bash> <code bash>
-nix run nixpkgs.electrum --command electrum+nix run nixpkgs#electrum -- --help 
 +nix shell nixpkgs#hash-slinger --command tlsa --create example.org
 </code> </code>
  
Line 1448: Line 1455:
 <code> <code>
   patches = [   patches = [
-    ./no-hardcode-fw.diff 
- 
     # Support HBPL1 printers https://www.dechifro.org/hbpl/     # Support HBPL1 printers https://www.dechifro.org/hbpl/
     ./hbpl1.patch     ./hbpl1.patch
Line 1458: Line 1463:
       url = "https://patch-diff.githubusercontent.com/raw/mikerr/foo2zjs/pull/2.patch";       url = "https://patch-diff.githubusercontent.com/raw/mikerr/foo2zjs/pull/2.patch";
       sha256 = "0lvbryw6ymh0ahwkhqsgmjimg5saa8b1xnxmyyjxrbi3l3a6fbvy";       sha256 = "0lvbryw6ymh0ahwkhqsgmjimg5saa8b1xnxmyyjxrbi3l3a6fbvy";
 +      stripLen = 1;
 +      name = "fix_papercode_error.patch";
     })     })
  
Line 2135: Line 2142:
 # download kernel and stuff from here http://dl-cdn.alpinelinux.org/alpine/edge/releases/armv7/netboot/ # download kernel and stuff from here http://dl-cdn.alpinelinux.org/alpine/edge/releases/armv7/netboot/
 qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append "console=ttyAMA0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" -nographic qemu-system-arm -M virt -m 512M -cpu cortex-a15 -kernel vmlinuz-lts -initrd initramfs-lts -append "console=ttyAMA0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" -nographic
 +</code>
 +
 +===== postgresql =====
 +
 +dump database
 +<code>
 +pg_dump -U gitlab gitlabhq_production > /tmp/gitlab.pgsql
 +</code>
 +
 +dump all
 +<code>
 +pg_dumpall > /tmp/dump_file_name.tar
 +</code>
 +
 +import database
 +<code>
 +psql# CREATE DATABASE gitlabhq_production;
 +psql -U gitlab gitlabhq_production < gitlab.pgsql
 +</code>
 +
 +===== mysql =====
 +
 +Dump database
 +<code bash>
 +mysqldump -u root -p Tutorials > tut_backup.sql
 +</code>
 +
 +Backup everything
 +<code bash>
 +mysqldump -u root -p --all-databases > alldb.sql
 +</code>
 +
 +Import database
 +<code>
 +mysql> CREATE DATABASE wordpress;
 +sudo mysql -u root wordpress < wordpress.sql
 +</code>
 +
 +Setup
 +<code bash>
 +systemctl stop mysqld
 +mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
 +systemctl start mysqld
 +mysql_secure_installation
 </code> </code>
onny/notizen.txt · Last modified: 2024/05/22 12:10 by 10.250.0.1