This is the sequence of steps to follow to create a root gh-pages
branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
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) |
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\"
- 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"] |
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?
FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild | |
CMD [ "wsgi.py" ] |
--- | |
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' |
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"] |
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/* |