Skip to content

Instantly share code, notes, and snippets.

@Tahvok
Tahvok / elinks.sh
Created Mar 28, 2020
elinks build git ubuntu
View elinks.sh
View defined-final.j2
{% if my_var is defined and my_var | bool %}
defined
{% endif %}
View defined.j2
{% if my_var is defined and my_var %}
defined
{% endif %}
View cpu-pinning.bash
#!/usr/bin/env bash
while read -r instance; do
while read -r current_node_cpus; do
current_node=();
for i in $current_node_cpus; do
current_node[i]=1
done
View --help
$ gridcoinresearchd --help
Gridcoin version v3.5.5.9-g-research
Usage:
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
Options:
View copyfiles.bash
while read -r fff; do cp -r --parents "$fff" newdir/; done &lt; filelist.txt
View myplay.yml
---
#myplay.yml
- hosts: test
gather_facts: no
roles:
- myrole
@Tahvok
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 domain.com
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