Simple example of how easy it is to jam numbers into InfluxDB and graph something with Grafana. I choose to use Travis as a source of historical time-series data.
Get InfluxDB installed with Homebrew
$ brew install influxdb
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python (Updated for Python 3.7) | |
Usage: | |
./dummy-web-server.py -h | |
./dummy-web-server.py -l localhost -p 8000 | |
Send a GET request: |
#!/bin/bash | |
################################# | |
# Constants / global variables | |
################################# | |
LOGFILE='example.log' | |
LOGLEVEL='INFO' | |
################################# | |
# Functions |
#!/usr/bin/env bash | |
#Build and install neovim for Debian | |
#See: https://neovim.io/ | |
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
#Save current dir | |
pushd . > /dev/null | |
#Install dependencies |
brew install gnupg21, pinentry-mac
(this includes gpg-agent and pinentry)
Generate a key: $ gpg2 --gen-key
Take the defaults. Whatevs
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
/* | |
This example was built using standard create-react-app out of the box with no modifications or ejections | |
to the underlying scripts. | |
In this example, i'm using Google as a social provider configured within the Cognito User Pool. | |
Each step also represents a file, so you can see how I've chosen to organize stuff...you can do it however | |
you'd like so long as you follow the basic flow (which may or may not be the official way....but its what I found that works. | |
The docs are pretty horrible) | |
#!/bin/bash | |
set -eu | |
function ensureMounted() { | |
source=$1 | |
shift | |
target=$1 | |
shift | |
type=$1 |
#!/usr/bin/env ruby | |
# Dependencies: | |
# - capsh | |
# - cgroup-utils | |
# - systemd | |
# - ruby | |
# | |
require 'fileutils' | |
require 'logger' | |
require 'optparse' |
# rubocop:disable Style/HashSyntax | |
# shoryuken用のタスク | |
namespace :queues do | |
desc 'Create default SNS & SQS' | |
task 'setup' => :environment do | |
# http://qiita.com/takeyuweb/items/cdc262d97c3e863c15ff | |
# TODO | |
end | |
desc "List all SQS queues" |
I wrote this gist to record the steps I followed to get docker running in my Raspberry Pi 3. The ARM ported debian version (Jessie) comes with an old version of docker. It is so old that the docker hub it tries to interact with doesn't work anymore :)
Hopefully this gist will help someone else to get docker running in their Raspberry Pi 3.
From original instructions at http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/