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
DESC="Gerrit and Jenkins CI Server" | |
NAME=gerritjenkins | |
PIDFILE=./$NAME.pid | |
STARTGITCOMMAND="git daemon --reuseaddr --export-all --base-path=gerrit/review/git" | |
STARTGERRITCOMMAND="java -jar gerrit/review/bin/gerrit.war daemon -d gerrit/review" | |
STARTJENKINSCOMMAND="java -jar jenkins/jenkins.war --httpPort=1234" | |
d_start(){ | |
$STARTGITCOMMAND & |
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 | |
# Use SourceGear DiffMerge as mergetool for git in cygwin. | |
# git config --global mergetool.diffmerge.cmd "diffmergetool.sh \"\$LOCAL\" \"\$REMOTE\" \"\$BASE\" \"\$MERGED\"" | |
# git config --global mergetool.diffmerge.trustExitCode false | |
# git difftool -t diffmerge branch1..branch2 | |
# Reference: http://www.tldp.org/LDP/abs/abs-guide.pdf | |
library=githelperfunctions.sh |
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
-module(tr_server). | |
-behavior(gen_server). | |
%%API | |
-export([start_link/1, start_link/0, get_count/0, stop/0]). | |
%% Gen Server | |
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). | |
-define(SERVER, ?MODULE). |
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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
cd | |
sudo apt-get update | |
sudo apt-get upgrade |
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
application: lager | |
exited: {bad_return, | |
{{lager_app,start,[normal,[]]}, | |
{'EXIT', | |
{undef, | |
[{lager_app,start,[normal,[]],[]}, | |
{application_master,start_it_old,4, | |
[{file,"application_master.erl"}, | |
{line,274}]}]}}}} | |
type: permanent |
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 | |
# paclist - creates list of all installed packages | |
# reinstall with pacman -S $(cat pkglist) | |
#USER=mikeyd | |
#explanation of next steps: | |
# | |
################################# | |
#pacman packge backup: # |
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
{:timestamp=>"2014-05-08T12:37:23.833000-0700", :message=>"Failed to flush outgoing items", :outgoing_count=>88, :exception=>#<NameError: no method 'type' for arguments (org.jruby.RubyArray) on Java::OrgElasticsearchActionIndex::IndexRequest>, :backtrace=>["/opt/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:225:in `build_request'", "/opt/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:205:in `bulk'", "org/jruby/RubyArray.java:1613:in `each'", "/opt/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:204:in `bulk'", "/opt/logstash/lib/logstash/outputs/elasticsearch.rb:321:in `flush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:219:in `buffer_flush'", "org/jruby/RubyHash.java:1339:in `each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:216:in `buffer_flush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:193:in `buffer_flush'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer. |
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 | |
for i in 30 31 32 33 34 35 | |
do | |
logdate=$(date --date='TZ="UTC" 09:00 '${i}' days ago' +"%Y.%m.%d") | |
curl -XDELETE "http://localhost:9200/logstash-${logdate}" | |
done |
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
(defn consul-service-down-detect [] | |
(by [:host :service] | |
(where (tagged "consul") | |
(changed :state {:init "ok"} | |
(stable 300 :state | |
#(info %) | |
(where (not (state "ok")) | |
(tag "alert" #(info %) index) | |
(with :metric 1 (graph))) | |
(where (state "ok") |
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
%:~ git clone https://github.com/aphyr/riemann.git | |
Cloning into 'riemann'... | |
fatal: unable to access 'https://github.com/aphyr/riemann.git/': Could not resolve host: github.com |
OlderNewer