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/sh | |
| curl -XPUT localhost:9200/_cluster/settings -d '{ | |
| "transient" : { | |
| "cluster.routing.allocation.exclude._ip" : "10.30.42.84" | |
| } | |
| }' |
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
| mvn dependency:build-classpath -D includeScope=runtime -D mdep.outputFile=.cp |
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
| mvn deploy:deploy-file \ | |
| -DpomFile=kafka_2.9.2-0.8.0-SNAPSHOT.pom \ | |
| -Dfile=kafka_2.9.2-0.8.0-SNAPSHOT.jar \ | |
| -DrepositoryId=IS-REPOS \ | |
| -Durl=http://scm4i:8081/artifactory/is-snapshot-local |
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
| # http://yum.postgresql.org/repopackages.php#pg92 | |
| yum install -y http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm | |
| mkdir -p /data/repos | |
| cd /data/repos | |
| reposync -r pgdg92,pgdg92-source -s |
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
| Host * | |
| StrictHostKeyChecking no |
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
| // If Code == 409, Set X-Transmission-Session-Id and retry. | |
| def httpX[T](x: Handler[T]): HttpPackage[T] = { | |
| val hand = x.copy(request = x.request <:< Map("X-Transmission-Session-Id" -> sessId)) | |
| var is409: Boolean = false | |
| val r = http.x(hand.copy( | |
| block = { (code, res, ent) => | |
| if (code != 409) | |
| hand.block(code, res, ent) | |
| else { |
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
| tsbegin = Time.gm(2012, 8, 10) | |
| tsend = Time.gm(2012, 10, 30) | |
| tsadd = 3600 * 6 | |
| splits = Array.new | |
| while tsbegin < tsend do | |
| splits << tsbegin.strftime("%Y%m%d%H%M").to_java_bytes | |
| tsbegin += tsadd | |
| end |
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
| defaultTasks 'hello' | |
| repositories { | |
| mavenCentral() | |
| } | |
| configurations { | |
| mavenAntTasks | |
| } |
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
| #!/usr/bin/python | |
| import os, sys | |
| def fresh_serial(fn): | |
| fin = file(fn, 'r') | |
| lines = fin.readlines() | |
| fin.close() | |
| ols = [] | |
| for line in lines: |
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
| [root@ci2 app]# /is/app/cherokee/sbin/cherokee-admin -b 0.0.0.0 -i -x -u | |
| [20/10/2011 09:46:12.488] (warning) rrd_tools.c:121 - Could not find the | |
| rrdtool binary. | A custom rrdtool binary has not been defined, and the | |
| server could not find one in the $PATH. | |
| Cherokee Web Server 1.2.100 (Oct 19 2011): Listening on port 0.0.0.0:9090, TLS | |
| disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041 | |
| connections, 2 threads, 1020 connections per thread, standard scheduling policy | |
| Web Interface: |