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 | |
### BEGIN INIT INFO | |
# Provides: kibana | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Make sense of a mountain of logs. | |
### END INIT INFO |
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 | |
# | |
# /etc/rc.d/init.d/logstash | |
# | |
# Starts Logstash as a daemon | |
# | |
# chkconfig: 2345 20 80 | |
# description: Starts Logstash as a daemon | |
### BEGIN INIT INFO |
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
/* Flatten das boostrap */ | |
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid { | |
-moz-box-shadow: none !important; | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
-webkit-border-radius: 0px !important; | |
-moz-border-radius: 0px !important; | |
border-radius: 0px !important; | |
border-collapse: collapse !important; | |
background-image: none !important; |
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
{ | |
"status": "pending", | |
"_type": "credit", | |
"description": null, | |
"created_at": "2013-06-21T18:45:53.119861Z", | |
"uri": "/v1/credits/CR6ezjHbNWsVhyrzHDO9zQKW", | |
"amount": 10000, | |
"_uris": {}, | |
"meta": {}, | |
"appears_on_statement_as": "example.com", |
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
var cardData = { | |
"name": "Bernhard Riemann", // Optional | |
"card_number": "4111 1111 1111 1111", | |
"expiration_month": 4, | |
"expiration_year": 2014, | |
}; | |
balanced.card.create(cardData, callbackHandler); |
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
function callbackHandler(response) { | |
switch (response.status) { | |
case 201: | |
// WOO HOO! | |
// response.data.uri == uri of the card or bank account resource | |
break; | |
case 400: | |
// missing field - check response.error for details | |
break; | |
case 402: |
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
var cardData = { | |
"name": "Bernhard Riemann", // Optional | |
"card_number": "4111 1111 1111 1111", | |
"expiration_month": 4, | |
"expiration_year": 2014, | |
}; | |
balanced.card.create(cardData, function(response) { | |
alert(response.status); |
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
<script type="text/javascript"> | |
balanced.init('marketplaceUri'); | |
</script> |
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
<script type="text/javascript" src="//js.balancedpayments.com/v1/balanced.js"></script> |
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
cd ~ | |
sudo yum -y install java-1.7.0-openjdk | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.zip | |
unzip elasticsearch-0.90.1.zip | |
rm -rf elasticsearch-0.90.1.zip | |
mv elasticsearch-0.90.1 elasticsearch | |
sudo mv elasticsearch /usr/local/share | |
cd /usr/local/share |