This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.jleskovar.btcrpc.examples | |
| import com.neovisionaries.ws.client.WebSocket | |
| import com.neovisionaries.ws.client.WebSocketAdapter | |
| import com.neovisionaries.ws.client.WebSocketFactory | |
| import com.neovisionaries.ws.client.WebSocketListener | |
| import java.net.URL | |
| import java.security.cert.X509Certificate | |
| import javax.net.ssl.SSLContext | |
| import javax.net.ssl.TrustManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| POST_INIT_SYNC_DELAY=60 | |
| POLL_DELAY=60 | |
| STALL_THRESHOLD=5 | |
| if [ -z `pidof btcd` ]; then | |
| echo "Starting btcd" | |
| nohup btcd & | |
| sleep $POST_INIT_SYNC_DELAY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias puppet-run-local='puppet apply -t --modulepath=.. -e "include $(basename $(pwd))"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -x | |
| set -e | |
| apt-get -y install ca-certificates | |
| wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb | |
| dpkg -i puppetlabs-release-trusty.deb | |
| echo "deb http://deb.theforeman.org/ trusty 1.9" > /etc/apt/sources.list.d/foreman.list | |
| echo "deb http://deb.theforeman.org/ plugins 1.9" >> /etc/apt/sources.list.d/foreman.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function displayPendingTasks() { | |
| echo "The following machines are still running" | |
| declare -A running | |
| for i in ${!RUNNING_TASKS[@]}; do | |
| if kill -0 $i > /dev/null 2>&1; then | |
| echo "PID: $i Machine: ${RUNNING_TASKS[$i]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.github.jleskovar; | |
| import org.easymock.Mock; | |
| import java.lang.reflect.Field; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Objects; | |
| import java.util.stream.Stream; |