-
Disable and stop the systemd-resolved service:
sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved
-
Then put the following line in the
[main]
section of your/etc/NetworkManager/NetworkManager.conf
:
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
sudo virt-install --name=deepin-vm-2 --os-variant="generic" --vcpu=2 --ram=2048 --graphics spice --cdrom=/mnt/data/software/isos/ubuntu-20.04-live-server-amd64.iso --disk size=10,path=/mnt/data/virtual-machines/kvmubu-3 --network bridge=virbr0 |
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 java.net.InetSocketAddress | |
import scala.xml.{Elem, XML} | |
import org.jboss.netty.buffer.ChannelBuffers | |
import org.jboss.netty.util.CharsetUtil.UTF_8 | |
import com.twitter.finagle.Service; | |
import com.twitter.finagle.builder.ClientBuilder; | |
import com.twitter.finagle.http.{Http, RequestBuilder}; | |
import org.jboss.netty.handler.codec.http._ | |
import org.jboss.netty.buffer.ChannelBuffers.wrappedBuffer | |
import java.net.URL |
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
sudo yum install "kernel-devel-uname-r == $(uname -r)" |
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file 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
#!/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 |
This gist describes the configuration required for Spring reactive WebClient to make a call to an OAuth2 protected resource through OAuth2.0 Client Credentials Grant Type Flow.
Assumption is that the Authorization Server supports OpenId Connect 1.0 specifications.
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
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:7013","description":"Generated server url"}],"paths":{"/api/v0/balances/msisdn/{msisdn}":{"get":{"tags":["balance-enquiry-controller"],"operationId":"enquire","parameters":[{"name":"msisdn","in":"path","required":true,"schema":{"type":"string"}},{"name":"productCode","in":"query","required":false,"schema":{"type":"string"}},{"name":"unitType","in":"query","required":true,"schema":{"type":"string"}},{"name":"accountCode","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiResponseListEnquiryAccountBalance"}}}}}}}},"components":{"schemas":{"ApiResponseListEnquiryAccountBalance":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EnquiryAccountBalance"}},"success":{"type":"boolean"},"httpStatusCode":{"type":"integer","format":"int32"},"message":{"type":"string"}, |
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
@Component | |
public class LogFilter extends OncePerRequestFilter { | |
private static Logger LOG = LoggerFactory.getLogger(LogFilter.class); | |
@Override | |
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) | |
throws ServletException, IOException { | |
LOG.info(request.getRequestURI()); // log the request path. | |
} |
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
stages: | |
- build | |
- push | |
- cleanup | |
build: | |
stage: build | |
variables: | |
REGISTRY_SERVER: foo.bar | |
IMAGE_NAME: vrutkovs-public/openshift-ansible-testing |