This file contains hidden or 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
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list |
This file contains hidden or 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
geth --rpc --rpccorsdomain="*" --rpcaddr="0.0.0.0" |
This file contains hidden or 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
kubectl exec --namespace=manadr-dev -it $(kubectl get pod -l "service=mysql" --namespace=manadr-dev -o jsonpath='{.items[0].metadata.name}') -- bash |
This file contains hidden or 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
for line in `docker ps | awk '{print $1}' | grep -v CONTAINER`; do docker ps | grep $line | awk '{printf $NF" "}' && echo $(( `cat /sys/fs/cgroup/memory/docker/$line*/memory.usage_in_bytes` / 1024 / 1024 ))MB ; done |
This file contains hidden or 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
/* | |
* FFmpegMediaPlayer: A unified interface for playing audio files and streams. | |
* | |
* Copyright 2014 William Seemann | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or 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
Configuration configuration = new Configuration(); | |
configuration.setUseGrammar(true); | |
configuration.setGrammarName("necessarily"); | |
configuration.setGrammarPath("/Development/Sphinx/grammar"); | |
configuration.setAcousticModelPath("file:///Development/Sphinx/wsj-en-us"); | |
configuration.setDictionaryPath("file:///Development/Sphinx/dict/cmuphonemedict"); |
This file contains hidden or 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
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %} | |
{% unless category == '0' %} | |
<span class="glyphicon glyphicon-folder-open"></span> | |
<span class="categories"> | |
{% if post %} | |
{{ post.categories | category_links }} | |
{% else %} | |
{{ page.categories | category_links }} | |
{% endif %} | |
</span> |
This file contains hidden or 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
<section class="panel panel-default"> | |
<div class="panel-heading"> | |
<h3 class="panel-title"><span class="glyphicon glyphicon-tags"></span> Tags</h3> | |
</div> | |
<div style="padding: 5px;"> | |
<ul class="nav nav-pills"> | |
{% for category in site.tags %} | |
{% capture tag_url %}{{ site.tag_dir }}/{{ category | first | slugize | downcase | replace:' ','-' | append:'/index.html'}}{% endcapture %} | |
<li {% if tag_url == page.url %}class='active'{% endif %}> | |
{% capture tag-size %}{{ category | last | size }}{% endcapture %} |
This file contains hidden or 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
--- | |
layout: page | |
footer: false | |
navbar: Archives | |
--- | |
<div id="blog-archives" class="category"> | |
{% for post in site.tags[page.tag] %} | |
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} | |
{% unless year == this_year %} |
This file contains hidden or 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
--- | |
layout: page | |
footer: false | |
navbar: Archives | |
--- | |
<ul>{% for tag in site.tags %} | |
<li><a href="/tag/{{ tag[0] }}">{{ tag[0] }}</a> <span>{{ tag[1].size }}</span></li>{% endfor %} | |
</ul> |