moki.org.pl

  • HOME
  • CATEGORIES
  • TAGS
  • LINKS 
    • SELFHOSTED
  • HOME
  • CATEGORIES
  • TAGS
  • LINKS 
  • SELFHOSTED
Moki
Lv6
166
Tags
3
Categories
161
Posts
  • Add executable bit in GIT on Windows

    1git update-index --chmod=+x file.txt Verify: 1git ls-files --stage
      2021-08-05  
    • Bez kategorii 
     
    • git 
    • | windows 
    Read moreAdd executable bit in GIT on Windows 
  • Install Docker & Docker-compose

    Docker1234apt-get updateapt-get install -y apt-transport-https ca-certificates curl gnupg lsb-releasecurl -fsSL https://downl...
      2021-08-05  
    • Bez kategorii 
     
    • install 
    • | docker 
    • | docker-compose 
    Read moreInstall Docker & Docker-compose 
  • Nginx pass client IP to backend

    1234567stream { server { listen 0.0.0.0:1000; proxy_bind $remote_addr transparent; proxy_pa...
      2021-08-05  
    • Bez kategorii 
     
    • nginx 
    Read moreNginx pass client IP to backend 
  • Nginx SSL wrap

    123456789stream { server { listen 0.0.0.0:1000; proxy_ssl off; proxy_ssl_verify on; ...
      2021-08-05  
    • Bez kategorii 
     
    • nginx 
    • | encryption 
    • | ssl 
    Read moreNginx SSL wrap 
  • Nginx SSL reencryption

    1234567891011stream { server { listen 0.0.0.0:1000 ssl; ssl_certificate cert.pem; ssl_certi...
      2021-08-05  
    • Bez kategorii 
     
    • nginx 
    • | encryption 
    • | ssl 
    Read moreNginx SSL reencryption 
  • Nginx SSL termination

    123456789stream { server { listen 0.0.0.0:1000 ssl; ssl_certificate cert.pem; ssl_certifica...
      2021-08-05  
    • Bez kategorii 
     
    • nginx 
    • | encryption 
    • | ssl 
    Read moreNginx SSL termination 
  • Parallel run commands from file

    1parallel --jobs 2 < tasks.txt 12345678$ cat tasks.txtphp process.php 1 100php process.php 101 200php process.php 201 300...
      2021-08-04  
    • Bez kategorii 
     
    • linux 
    • | bash 
    • | parallel 
    Read moreParallel run commands from file 
  • Parallel run commands iterations

    1seq 20 2 29 | parallel -j 3 echo "asdf{}drrr"
      2021-08-04  
    • Bez kategorii 
     
    • linux 
    • | bash 
    • | parallel 
    Read moreParallel run commands iterations 
  • Remove old binlogs

    1PURGE BINARY LOGS BEFORE (NOW() - INTERVAL 1 HOUR); or 1SHOW BINARY LOGS; 1PURGE BINARY LOGS TO 'binlog.002316';
      2021-08-04  
    • Bez kategorii 
     
    • mariadb 
    • | mysql 
    • | replication 
    • | database 
    Read moreRemove old binlogs 
  • Parallel without executions limit

    Run command without parameter and (almost) without executions limit: 1printf -- '\n%.0s' {1..800000} | pa...
      2021-07-30  
    • Bez kategorii 
     
    • linux 
    • | bash 
    • | parallel 
    Read moreParallel without executions limit 
1…1314151617
© 2022 - 2025    Moki
POWERED BY Hexo THEME Redefine v2.4.4