Dashing widget to play video from Youtube.
- Install Youtube widget
package main | |
import ( | |
"context" | |
"os" | |
"os/signal" | |
"syscall" | |
"github.com/tendermint/tendermint/libs/log" |
package db | |
import ( | |
"bufio" | |
"io" | |
"os" | |
"sync" | |
"github.com/dgraph-io/badger" | |
) |
Dashing widget to play music. Awesome, right?!
A bit of a history. When we installed the Github's hubot, one of the things we were really miss was playing songs inside our room (not the whole office). The guys from Github have written play, but we just couldn't setup it (we didn't have Mac Mini at that moment - our CI monitors were backed by Ubuntu). So we started looking for another way out and decided to write Dashing widget and control it via hubot.
# -*- coding: utf-8 -*- | |
""" | |
This script requires the following Packages | |
1: Twitter: https://pypi.python.org/pypi/twitter | |
2: PyQuery: https://pypi.python.org/pypi/pyquery | |
3: Jinja2: https://pypi.python.org/pypi/Jinja2 | |
It's fairly primitive but works. It uses a Jinja2 template to create an OPML | |
file from the RSS feeds of the websites run by the people you follow on |
Dashing widget to display test coverage.
The widget is based on JenkinsBuild, which shows you a completion percentage while Jenkins builds the project and zero in other cases. Actually, if you think about it, build takes only a small amount of time (of course, if your project is not building for half an hour). So we decided to find a more reasonable use of this state and show percentage of test coverage.
--- | |
- hosts: all | |
tasks: | |
- name: get version | |
shell: tendermint version | |
register: version | |
- name: copy and unpack binary if newer version is being installed |
[Unit] | |
Description=Counter | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
Environment="" | |
Restart=on-failure | |
User={{ user }} | |
Group={{ group }} |
I hereby claim:
To claim this, I am signing this object:
NO_COLOR=\033[0m | |
OK_COLOR=\033[32;01m | |
ERROR_COLOR=\033[31;01m | |
WARN_COLOR=\033[33;01m | |
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...) | |
deps: | |
@echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)" | |
@go get -d -v ./... | |
@echo $(DEPS) | xargs -n1 go get -d |