This file contains 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/sh | |
# From The Logstash Book | |
# The original of this file can be found at: http://logstashbook.com/code/index.html | |
# | |
# logstash-forwarder Start/Stop logstash-forwarder | |
# | |
# chkconfig: 345 99 99 | |
# description: logstash-forwarder | |
# processname: logstash-forwarder |
This file contains 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
# CentOS 7.0 kickstart for XenServer (PVHVM MBR) | |
# branch: develop | |
########################################## | |
# Install, not upgrade | |
install | |
cdrom | |
# Install from a friendly mirror and add updates | |
#url --url http://mirror.rackspace.com/CentOS/7.0.1406/os/x86_64/ |
This file contains 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/sh | |
# | |
# Startup/shutdown script for Git Daemon | |
# chkconfig: 345 56 10 | |
# | |
# description: Startup/shutdown script for Git Daemon | |
# | |
. /etc/init.d/functions | |
DAEMON=/usr/libexec/git-core/git-daemon |
This file contains 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
# CentOS 6 Server kickstart for XenServer | |
# branch: master | |
########################################## | |
# Install, not upgrade | |
install | |
# Install from a friendly mirror and add updates | |
#repo --name=base --baseurl=http://10.18.2.179/CentOS/6.5/os-min | |
#repo --name=updates --baseurl=http://10.18.2.179/CentOS/updates/x86_64 |
This file contains 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
upstream geminabox{ | |
server 10.18.2.179:8080; | |
} | |
server { | |
listen 8081; | |
server_name _; | |
root /repo/gems; |
This file contains 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
jenkins_script env_name do | |
command <<-EOH.gsub(/^ {8}/, '') | |
import jenkins.model.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.jenkins.plugins.awscredentials.* | |
domain = Domain.global() | |
store = Jenkins.instance.getExtensionList('com.cloudbees.plugins.credentials.SystemCredentialsProvider')[0].getStore() | |
credentials = new AWSCredentialsImpl( |
This file contains 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 | |
CONSOLE_RED="\033[2;31m" | |
CONSOLE_GREEN="\033[2;32m" | |
CONSOLE_CLEAR="\033[0m" | |
JENKINS_SERVER=http://my_jenkins_server | |
JOB=$1 | |
JOB_QUERY=/job/${JOB} |
This file contains 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
pipeline { | |
agent any | |
parameters { | |
string(name: 'COOKBOOKS', defaultVaule: "[jenkins,common,base]", description:"Add your cookbooks as []") | |
} | |
stages { | |
stage('fetch target chef') { | |
steps { | |
git 'ssh://[email protected]/leitu/chef-cookbook.git' | |
} |
This file contains 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 | |
PROXYS='proxy.txt' | |
PROXY_TYPE='http' | |
CHECK_URL='https://api.ipify.org?format=json' | |
MAX_CONNECT=10 | |
GOOD_ARR=() | |
FAIL_ARR=() | |
GOOD=0 | |
FAIL=0 |
This file contains 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
# ########################################################## # | |
# Makefile for Golang Project | |
# Includes cross-compiling, installation, cleanup | |
# ########################################################## # | |
# Check for required command tools to build or stop immediately | |
EXECUTABLES = git go find pwd | |
K := $(foreach exec,$(EXECUTABLES),\ | |
$(if $(shell which $(exec)),some string,$(error "No $(exec) in PATH))) |
OlderNewer