Skip to content

Instantly share code, notes, and snippets.

Tahvok /
Created Mar 28, 2020
elinks build git ubuntu
View defined-final.j2
{% if my_var is defined and my_var | bool %}
{% endif %}
View defined.j2
{% if my_var is defined and my_var %}
{% endif %}
View cpu-pinning.bash
#!/usr/bin/env bash
while read -r instance; do
while read -r current_node_cpus; do
for i in $current_node_cpus; do
View --help
$ gridcoinresearchd --help
Gridcoin version v3.5.5.9-g-research
gridcoind [options]
gridcoind [options] <command> [params] Send command to -server or gridcoind
gridcoind [options] help List commands
gridcoind [options] help <command> Get help for a command
View copyfiles.bash
while read -r fff; do cp -r --parents "$fff" newdir/; done &lt; filelist.txt
View myplay.yml
- hosts: test
gather_facts: no
- myrole
Tahvok / gist:c3cf55e7bec3d205167a
Created Dec 17, 2014
puppet certificate from master does not match
View gist:c3cf55e7bec3d205167a
Error: Could not request certificate: The certificate retrieved from the master does not match the agent's private key.
Certificate fingerprint: {fingerprint}
To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate.
On the master:
puppet cert clean
On the agent:
1a. On most platforms: find /var/lib/puppet/ssl -name domain.pem -delete
1b. On Windows: del "/var/lib/puppet/ssl/domain.pem" /f
2. puppet agent -t