Skip to content

Instantly share code, notes, and snippets.

@sai92messy
sai92messy / logs
Created July 22, 2021 16:04
Elasticsearch Temporarily Unavailable Logs
...
19:28:12.991
elasticsearch.server
[elasticsearch.server][INFO] master node [{instance-0000000000}{rzyW_Ck_S4O8DOEALh3_bA}{LpAavRpOQVGJcWH-vLz7UA}{172.25.70.164}{172.25.70.164:19610}{himrst}{logical_availability_zone=zone-0, server_name=instance-0000000000.901115ae4294436f999506fdfa6048d1, availability_zone=us-east-1b, xpack.installed=true, data=hot, instance_configuration=aws.data.highio.i3, transform.node=true, region=us-east-1}] failed, restarting discovery
19:28:12.993
elasticsearch.server
[elasticsearch.server][INFO] master node changed {previous [{instance-0000000000}{rzyW_Ck_S4O8DOEALh3_bA}{LpAavRpOQVGJcWH-vLz7UA}{172.25.70.164}{172.25.70.164:19610}{himrst}{logical_availability_zone=zone-0, server_name=instance-0000000000.901115ae4294436f999506fdfa6048d1, availability_zone=us-east-1b, xpack.installed=true, data=hot, instance_configuration=aws.data.highio.i3, transform.node=true, region=us-east-1}], current []}, term: 4, version: 155103, reason: becoming candidate: onLeaderFailure
19:28:13.594
@sai92messy
sai92messy / mina_ssh_helpers.rb
Last active May 13, 2017 09:59
Mina-0.3.4 ssh helpers
# /mina-0.3.4/lib/mina/ssh_helpers.rb
# ### ssh_command
# Returns the SSH command to be executed.
#
# set :domain, 'foo.com'
# set :user, 'diggity'
#
# puts ssh_command
# #=> 'ssh diggity@foo.com'
@sai92messy
sai92messy / mina_deploy.rb
Last active April 8, 2020 03:18
Mina deploy configuration with ssh options
# config/deploy.rb
set :domain, 'remote.server.domain'
# Optional settings:
set :user, 'ubuntu' # Username in the server to SSH to.
set :port, '22' # SSH port number.
set :forward_agent, true # SSH forward_agent.
set :identity_file, '/path_to/remote/pem_file' # Local path to SSH key.
set :ssh_options, '-o "ProxyCommand ssh jump -W %h:%p"' # SSH options ProxyCommand.
@sai92messy
sai92messy / config
Last active June 18, 2018 15:34
SSH config for jump host
# ~/.ssh/config
Host jump
User ubuntu
HostName 12.345.67.89
IdentityFile /path_to/jump/pem_file
Host remote-server
User ubuntu
Hostname remote.server.domain
@sai92messy
sai92messy / landing.html
Created December 11, 2014 07:24
Angular animate
...
<div ui-view class="body-wrapper at-view-slide-in-left at-view-slide-out-right"></div>
...
<div ng-if="question.answer_type =='rating'" class="tabs at-repeat-wave-in">
...
<div ng-repeat="option in parseOptions(sub_question1)" ng-if="sub_question1.question_type =='is_mobile_question'" class="radio at-repeat-wave-in">
...
@sai92messy
sai92messy / Index.html
Created December 7, 2014 06:37
Angular-animate
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link href="css/demo.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/jqbar.css" />
@sai92messy
sai92messy / app.js
Last active August 29, 2015 14:10
Angular-Animate
var myApp = angular.module('myApp', ['ui.router','ngAnimate','blockUI','showdown','delay','ngTouch','autonext']);
myApp.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('landing', {
url: "/landing",
controller: 'LandingCtrl',
templateUrl: "templates/landing.html"
})
@sai92messy
sai92messy / index.html
Last active August 29, 2015 14:10
Angular-animate
<body ng-app="myApp">
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="lib/angular.js"></script>
<script type="text/javascript" src="lib/angular-animate.js"></script>
<script type="text/javascript" src="lib/angular-block-ui.js"></script>
<script type="text/javascript" src="lib/angular-delay.js"></script>
<script type="text/javascript" src="lib/angular-showdown.js"></script>
<script type="text/javascript" src="lib/angular-ui-router.js"></script>