Good just to resync files:
rsync -avz --no-perms --no-owner --no-group
Monthly Archives: November 2020
cat file list one line with spaces delimiter
grep pattern file | tr '\n' ' '
podman mount local directory
sudo podman run --name=ubuntu-1 --privileged --mount type=bind,source=/home/user/some_files,target=/root -p 9080:80 -it ubuntu:18.04 /bin/bash
git from source install
apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
apt-get install asciidoc xmlto docbook2x
ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
tar -xf git-2.9.5.tar.gz
cd git-2.9.5
make configure
./configure --prefix=/opt/git
make all doc info
make prefix=/opt/git install install-doc install-html install-info
cat >> /etc/profile << EOF export GIT_HOME=/opt/git export PATH=${GIT_HOME}/bin:${PATH} EOF ource /etc/profile git --version also cant get update: git clone git://git.kernel.org/pub/scm/git/git.git
cache.h:42: error: expected specifier-qualifier-list before ‘z_stream’
yum install zlib-devel
Can’t locate ExtUtils/MakeMaker.pm
yum install perl-devel
/bin/sh: line 1: asciidoc: command not found
yum install asciidoc
/bin/sh: line 1: xmlto: command not found
yum install xmlto
Package moby-containerd 1.3.7+azure-1.x86_64.rpm is not signed
curl https://packages.microsoft.com/config/rhel/7/prod.repo >/etc/yum.repos.d/microsoft-prod.repo
iptables delay port
Simulate delayed and dropped packets
iptables -A INPUT -m statistic --mode random --probability 0.01 -j DROP
docker detach from running container
To detach the tty without exiting the shell, use the escape sequence Ctrl+P followed by Ctrl+Q. More details here.
Additional info from this source:
docker run -t -i → can be detached with ^P^Qand reattached with docker attach
docker run -i → cannot be detached with ^P^Q; will disrupt stdin
docker run → cannot be detached with ^P^Q; can SIGKILL client; can reattach with docker attach
err_too_many_redirects nginx pretashop
mysql your_database;
Check the value
select * from ps_configuration where name like '%SSL_ENABLED%';
To enable
update ps_configuration set value = '1' where name = 'PS_SSL_ENABLED';
update ps_configuration set value = '1' where name = 'PS_SSL_ENABLED_EVERYWHERE';
To disable
update ps_configuration set value = '0' where name = 'PS_SSL_ENABLED';
update ps_configuration set value = '0' where name = 'PS_SSL_ENABLED_EVERYWHERE';
podman create container ubuntu
podman run --name=ubuntu1 -it ubuntu:latest /bin/bash
bash: lsb_relase: command not found
apt update && apt install -y lsb-release && apt clean all
ssl_error_rx_record_too_long
ERR_SSL_PROTOCOL_ERROR
NameVirtualHost have wrong IP address