stop an automatic redirect from “http://” to “https://” in Chrome

  1. Go to chrome://net-internals/#hsts. Enter 3rdrevolution.com under Delete domain security policies and press the Delete button.
  2. Now go to chrome://settings/clearBrowserData, tick the box Cached images and files and press click the button Clear data.
from: https://superuser.com/questions/565409/how-to-stop-an-automatic-redirect-from-http-to-https-in-chrome


gcp ssh session expired

sudo /sbin/sysctl -w net.ipv4.tcp_keepalive_time=60 net.ipv4.tcp_keepalive_intvl=60 net.ipv4.tcp_keepalive_probes=5

ref: https://stackoverflow.com/questions/30078348/google-cloud-ssh-timeout-how-to-increase-session-time



from: https://stackoverflow.com/questions/21553353/what-is-the-difference-between-cmd-and-entrypoint-in-a-dockerfile

The ENTRYPOINT specifies a command that will always be executed when the container starts.
The CMD specifies arguments that will be fed to the ENTRYPOINT.

FROM debian:wheezy
ENTRYPOINT ["/bin/ping"]
CMD ["localhost"]


git clone error port 22: Connection refused

$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection refused

$ ssh -T -p 443 git@ssh.github.com
Warning: Permanently added '[ssh.github.com]:443,[xxx]:443' (RSA) to the list of known hosts. Hi chomjun! You've successfully authenticated, but GitHub does not provide shell access.

$vi ~/.ssh/config
``` # Add section below to it Host github.com Hostname ssh.github.com Port 443 ```

try again
$ ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address '[xxx]:443' to the list of known hosts. Hi chomjun! You've successfully authenticated, but GitHub does not provide shell access.

$vi ~/.ssh/config
Host gitlab.com
    Hostname altssh.gitlab.com
    User git

    Port 443

$ ssh -T git@gitlab.com
Warning: Permanently added '[altssh.gitlab.com]:443,[xxx]:443' (ECDSA) to the list of known hos.

Welcome to GitLab, @xxx!


Docker Troubleshooting

unable to login with docker: unauthorized

In docker client host, add item to /etc/docker/daemon.json
"insecure-registries": [""]
and restart docker daemon and try again?

Ref: https://github.com/goharbor/harbor/issues/7464

Jenkins Troubleshooting

Access Denied
[User] is missing the Overall/Read permission

1. Edit config.xml file, e.g.
sudo vi /var/lib/jenkins/config.xml
1.1. Change useSecurity element's value to false, e.g.
1.2. Remove authorizationStrategy block

2. Restart Jenkins: /etc/init.d/jenkins restart.
3. Access Jenkins through URL as usual and reconfigure security again.

So I fixed it by selecting:
Jenkins -> Manage Jenkins -> Configure Global Security
And did setup missing global settings (or project matrix based one)

Ref: https://stackoverflow.com/questions/22717773/user-is-missing-the-overall-read-permission-error-with-jenkins-github-oauth-pl