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
# This assumes you prefixed all the svn branches with 'svn/' via the | |
# --prefix=svn/ option when you performed the initial clone. Otherwise | |
# replace 'svn/trunk' with the name of your branch that corresponds to | |
# trunk. | |
git svn fetch --revision [start_revision_number]:[end_revision_number] | |
GRAFT_PARENT_GIT=`git log --pretty=format:'%H' -1 master | |
GRAFT_FIRST_SVN=`git log --pretty=format:'%H' svn/trunk | tail -n` # or whatever you called your trunk | |
echo $GRAFT_PARENT_GIT $GRAFT_FIRST_SVN > .git/info/grafts | |
git checkout master |
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
# Dynamically creating the correct url for downloading elasticsearch package via version number | |
download_url = "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.10.deb" # can we say elasticsearch one more time? | |
template = '<%= "https://download.#{@domain}.org/#{@domain}/#{@domain}/#{@domain}-#{@major}.#{@minor}.#{@patch}.deb" %>' | |
vars = {domain: 'elasticsearch', major: 0, minor: 90, patch: 10} | |
url_template = UrlTemplate.new(template, vars) | |
url_template.url == download_url |
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
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
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
# com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:264) | |
# com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:231) | |
# com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:202) | |
# com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:113) | |
# com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:1952) | |
# com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1597) | |
# com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:201) | |
# com.orientechnologies.orient.client.remote.OStorageRemoteThread.open(OStorageRemoteThread.java:80) | |
# com.orientechnologies.orient.core.db |
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
# Before data migration | |
curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true' | |
# { | |
# "cluster_name" : "abc_cluster", | |
# "status" : "green", | |
# "timed_out" : false, | |
# "number_of_nodes" : 3, | |
# "number_of_data_nodes" : 3, | |
# "active_primary_shards" : 20, |
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
2014-05-30 11:18:30 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode): | |
"Attach Listener" daemon prio=10 tid=0x00007f3468027000 nid=0x4257 runnable [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
"http-/10.211.50.32:8080-11" daemon prio=10 tid=0x00007f345089b000 nid=0x40a6 waiting for monitor entry [0x00007f345c7e5000] | |
java.lang.Thread.State: BLOCKED (on object monitor) | |
at org.torquebox.core.pool.SimplePool.borrowInstance(SimplePool.java:68) | |
- waiting to lock <0x0000000742a354d8> (a java.lang.Object) |
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
require 'base64' | |
require 'json' | |
require 'rest_client' | |
module Consul | |
class KV | |
URL = "http://localhost:8500/v1/kv" | |
attr_reader :key, | |
:create_index, |
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
# app 1 logs | |
Jul 18 15:14:19 prod-app-01 -: **** CardApprovalMailer Starting **** | |
Jul 18 15:14:19 prod-app-01 -: **** CardApprovalMailer Finished **** | |
# app 2 logs | |
Jul 18 15:14:49 prod-app-02 -: **** CardApprovalMailer Starting **** | |
Jul 18 15:14:49 prod-app-02 -: **** CardApprovalMailer Finished **** | |
# app 3 logs | |
Jul 18 15:14:51 prod-app-03 -: **** CardApprovalMailer Starting **** |
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
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /opt/torquebox/current/jboss | |
JAVA: java | |
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true |
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
==> /Users/brandon/Library/Containers/com.docker.docker/Data/logs/2016-04-13/com.docker.driver.amd64-linux.log <== | |
2016-04-13T20:48:58.715775-04 Info - proxy >> POST /images/create?fromImage=redis&tag=latest | |
2016-04-13T20:48:58.715879-04 Info - Dial /tmp/u.socket | |
2016-04-13T20:48:58.715950-04 Info - Dial IP /tmp/u.socket | |
==> /Users/brandon/Library/Containers/com.docker.docker/Data/logs/2016-04-13/com.docker.slirp.log <== | |
2016-04-13T20:48:58.727232-04 Error - com.docker.slirp: [INFO] unix:/tmp/u2.socket:192.168.64.2:2375: connected | |
==> /Users/brandon/Library/Containers/com.docker.docker/Data/logs/2016-04-13/com.docker.driver.amd64-linux.log <== | |
2016-04-13T20:49:00.088432-04 Info - proxy << POST /images/create?fromImage=redis&tag=latest |