See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| FROM debian:jessie | |
| ENV GOPATH=/go | |
| RUN apt-get update && apt-get install -y golang-go git \ | |
| && go get github.com/camptocamp/github_pki \ | |
| && apt-get autoremove -y golang-go git \ | |
| && rm -rf /var/lib/apt/lists/* |
| COPY /docker-entrypoint.sh / | |
| COPY /docker-entrypoint.d/* /docker-entrypoint.d/ | |
| ONBUILD COPY /docker-entrypoint.d/* /docker-entrypoint.d/ | |
| ENTRYPOINT ["/docker-entrypoint.sh", "/opt/puppetlabs/puppet/bin/mcollectived"] | |
| CMD ["--no-daemonize"] |
| --- | |
| puppetmaster: | |
| image: 'camptocamp/puppetserver:2.2.1-3' | |
| restart: 'always' | |
| environment: | |
| JAVA_ARGS: '-Xmx10g -Xms10g -XX:MaxPermSize=256m -XX:OnOutOfMemoryError="kill -9 %p" -Djava.security.egd=/dev/urandom -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' | |
| MAX_ACTIVE_INSTANCES: '5' | |
| hostname: 'puppet.example.com' | |
| links: | |
| - 'puppetdb' |
| FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild | |
| CMD [ "wsgi.py" ] |
Over the last 30 years, the Configuration Management community has learned that using a declarative approach to resource management is beneficial for both stability and change management. How does this apply to the new paradigm of Kubernetes deployments?
YAML has become the de-facto standard to express resources in many fields linked to DevOps practices. What are YAML's strengths and weaknesses, and what are the other options going forward?
| - Tune /etc/ssh/sshd_config | |
| UseDNS no # Disable DNS lookups | |
| GSSAPIAuthentication no # Disable negotation of slow GSSAPI | |
| don't forget to restart it, use a script provider to set it , or create it with veewee or snapshot it | |
| - Tune Vagrantfile | |
| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] |
One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use diff-pdf which knows how to diff based on appearance or words:
brew install diff-pdf~/.gitconfig to add this:[difftool "diffpdf"]
cmd = diff-pdf --view \"$LOCAL\" \"$REMOTE\"
| require 'openssl' | |
| require 'base64' | |
| rsa = OpenSSL::PKey::RSA.new(2048) | |
| modulus = rsa.n | |
| exponent = rsa.e | |
| ary = [OpenSSL::ASN1::Integer.new(modulus), OpenSSL::ASN1::Integer.new(exponent)] | |
| pub_key = OpenSSL::ASN1::Sequence.new(ary) | |
| base64 = Base64.encode64(pub_key.to_der) |