Skip to content

Instantly share code, notes, and snippets.

View xueyichen's full-sized avatar

Yichen Xue xueyichen

  • Xiaomi
  • Beijing
View GitHub Profile
--env="ES_HEAP_SIZE=1g"
cluster.name: "logging-stage"
node.name: "xueyichen"
network.host: "0.0.0.0"
@xueyichen
xueyichen / command
Last active March 4, 2016 08:18
Docker
1. change Docker machine active
eval "$(docker-machine env xiaomi)"
@xueyichen
xueyichen / addOptionInSelect.js
Last active August 29, 2015 14:24
Study JavaScript
<script>
var buildSelection = function () {
$.ajax({
url: '/path/to/ajax/options/data',
dataType: 'json',
type: 'POST',
success: function(data) {
data = data.data;
var selection = document.getElementById('selection');
$('#selection').empty();