- Open a webpage that uses the CA with Firefox
- Click the lock-icon in the addressbar -> show information -> show certificate
- the certificate viewer will open
- click details and choose the certificate of the certificate-chain, you want to import to CentOS
- click "Export..." and save it as .crt file
- Copy the .crt file to
/etc/pki/ca-trust/source/anchorson your CentOS machine - run
update-ca-trust extract - test it with
wget https://thewebsite.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.http.HttpHost; | |
| import org.apache.http.auth.AuthScope; | |
| import org.apache.http.auth.UsernamePasswordCredentials; | |
| import org.apache.http.client.CredentialsProvider; | |
| import org.apache.http.impl.client.BasicCredentialsProvider; | |
| import org.apache.http.impl.client.CloseableHttpClient; | |
| import org.apache.http.impl.client.HttpClientBuilder; | |
| import org.apache.http.impl.client.ProxyAuthenticationStrategy; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # run this scripts with `bash emoji-info.sh` or `./emoji-info.sh` | |
| usage() { | |
| cat << EOF | |
| usage: $0 [options] <emoji> | |
| Options: | |
| -h Show this message | |
| -o Octal Escape Sequence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import gitlab | |
| from jira import JIRA | |
| import urllib3 | |
| ## Disable urllib3 ssl checks warnings | |
| urllib3.disable_warnings( urllib3.exceptions.InsecureRequestWarning ) | |
| ## GitLab config |
- Create namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: gitlab
kubectl create -f ./namespace.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package mycompany.myappp.config; | |
| import org.apache.commons.io.IOUtils; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.http.HttpInputMessage; | |
| import org.springframework.http.HttpOutputMessage; | |
| import org.springframework.http.MediaType; | |
| import org.springframework.http.converter.AbstractHttpMessageConverter; | |
| import org.springframework.http.converter.HttpMessageConverter; | |
| import org.springframework.http.converter.HttpMessageNotReadableException; |
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Generic installation on all nodes | |
| sysctl -w net.ipv4.ip_forward=1 | |
| sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/g' /etc/sysctl.conf | |
| sudo sysctl -p /etc/sysctl.conf | |
| swapoff -a | |
| sed -i '2s/^/#/' /etc/fstab |