Skip to content

Instantly share code, notes, and snippets.

<?php
ini_set("log_errors", 1);
ini_set("error_log", "php.log");
error_reporting(E_ALL);
$postdata = file_get_contents("php://input");
try{
if ( $postdata ){
if( $hookArray = json_decode( $postdata ) ){
@Tahvok
Tahvok / gist:c3cf55e7bec3d205167a
Created December 17, 2014 16:56
puppet certificate from master does not match
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
---
#myplay.yml
- hosts: test
gather_facts: no
roles:
- myrole
while read -r fff; do cp -r --parents "$fff" newdir/; done &lt; filelist.txt
dir0/
a
x
y
z
b
u
v
w
c
a/x
b/v
b/w
c/x
c/z
@Tahvok
Tahvok / --help
Last active March 18, 2016 11:26
$ 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:
#!/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
{% if my_var is defined and my_var %}
defined
{% endif %}
{% if my_var is defined and my_var | bool %}
defined
{% endif %}