Skip to content

Instantly share code, notes, and snippets.

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
geth --rpc --rpccorsdomain="*" --rpcaddr="0.0.0.0"
kubectl exec --namespace=manadr-dev -it $(kubectl get pod -l "service=mysql" --namespace=manadr-dev -o jsonpath='{.items[0].metadata.name}') -- bash
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
/*
* 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
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");
{% 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>&nbsp;
<span class="categories">
{% if post %}
{{ post.categories | category_links }}
{% else %}
{{ page.categories | category_links }}
{% endif %}
</span>
<section class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><span class="glyphicon glyphicon-tags"></span>&nbsp;&nbsp;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 %}
---
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 %}
---
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>