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
ffmpeg -f dshow -i video="USB2.0 0.3M UVC WebCam" -ss 00:00:2.000 -f image2 -vframes 1 out.png |
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
module Jekyll | |
# Base class for the tag pages with all the shared behaviour | |
class BaseTagPage < Page | |
def initialize(site, base, dir) | |
@site = site | |
@base = base | |
@dir = dir | |
@name = 'index.html' | |
self.process @name | |
self.read_yaml File.join(base, '_layouts'), layout_page |
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> |
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
<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
{% 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
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
/* | |
* 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
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
kubectl exec --namespace=manadr-dev -it $(kubectl get pod -l "service=mysql" --namespace=manadr-dev -o jsonpath='{.items[0].metadata.name}') -- bash |
OlderNewer