You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| #! /bin/sh | |
| # Check if qpdf is installed | |
| installed=$(which qpdf &> /dev/null) | |
| if [ $? -eq 1 ]; then | |
| echo >&2 "Please install qpdf first (brew install qpdf)" | |
| exit 1 | |
| fi | |
| # Fetch the password from the keychain |
| global | |
| daemon | |
| nbproc 1 | |
| user haproxy | |
| group haproxy | |
| log 127.0.0.1:514 local0 | |
| pidfile /var/run/haproxy.pid | |
| stats socket /var/run/haproxy.stat mode 777 | |
| spread-checks 5 | |
| ssl-default-bind-options no-sslv3 no-tls-tickets force-tlsv12 |
| #!/usr/bin/env ruby | |
| require 'net/http' | |
| require 'uri' | |
| require 'json' | |
| output = {} | |
| s_json = JSON.parse(Net::HTTP.get_response(URI.parse('http://localhost:8500/v1/catalog/services')).body) | |
| services = s_json.keys.reject{|k| k == 'consul'} | |
| services.each do |srv| |
| #!/usr/bin/env ruby | |
| # Usage: dedup-imovie-library LIBRARY ORIGINALS | |
| # | |
| # Goes through an iMovie 10 library and replaces all the "Original Media" with | |
| # hardlinks to the actual original media, in order to conserve disk space. Note | |
| # that because they're hardlinks, if you copy the originals and the iMovie event | |
| # to a new disk, you'll end up with two copies again and will have to re-run this | |
| # tool. | |
| # |
| import requests | |
| from checks import AgentCheck | |
| class ConsulCheck(AgentCheck): | |
| def should_check(self): | |
| r = requests.get(self.init_config["consul_url"] + "/v1/agent/self") | |
| if r.status_code != 200: | |
| return False | |
| agent = r.json() |
| #!/bin/bash | |
| set -e | |
| if [ $# -eq 0 ]; then | |
| echo "USAGE: $0 plugin1 plugin2 ..." | |
| exit 1 | |
| fi | |
| plugin_dir=/var/lib/jenkins/plugins |
| def qaCatalinaBase = '/opt/apache-tomcat-8-qa' | |
| def qaHttpPort = 8081 | |
| def stagingCatalinaBase = '/opt/apache-tomcat-8-staging' | |
| def stagingHttpPort = 8082 | |
| def perfsCatalinaBase = '/opt/apache-tomcat-8-perfs' | |
| def perfsHttpPort = 8084 | |
| def productionCatalinaBase = '/opt/apache-tomcat-8-production' |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "time" | |
| ) |