{{monday:YYYY-MM-DD}} - {{friday:YYYY-MM-DD}}
protocol A { | |
static func doSomething() -> String | |
static func aFuncWith(param: String) -> String | |
} | |
extension A { | |
static func aFuncWith(param: String = "default") -> String { | |
return param | |
} | |
} |
I hereby claim:
- I am marknorgren on github.
- I am marknorgren (https://keybase.io/marknorgren) on keybase.
- I have a public key ASAE4AxlqVuu3BAYyrAdFhSoslvvk-uo6II_RgOFrr2_Rwo
To claim this, I am signing this object:
This is the most straightforward config for parsing the Ambient Weather API into a time series database with Telegraf. I use InfluxDB to store the data and Grafana to view the data.
Note that this is not a complete Telegraf config. What follows is a fragment that you would add to the bottom of your telegraf.conf file. You must set up Influx yourself.
You MUST replace the xxxxxxxx
strings in the urls
parameter with your personal Application key and API key. See https://www.ambientweather.com/api.html for help if you don't have your keys.
The measurement name can be set to anything you want with the name_override
parameter.
The devices endpoint gives data for all weather stations associated with your account, but this config simply takes the first one. This is done with the json_query = "0.lastData"
line. Other devices could be selected by changing the 0
to another number. Properly handling multiple weather stations is too complex for any sane config of the http plugin for Telegraf. Hard
I hereby claim:
- I am mrkd on github.
- I am mrkd (https://keybase.io/mrkd) on keybase.
- I have a public key ASDOOYzl6TugBGqwQxaUGJz2mHAbA-9pBvED2ZZ5G815ywo
To claim this, I am signing this object:
- Download Raspian Lite - https://www.raspberrypi.org/downloads/raspbian/
- Flash an SD Card with the Raspian Lite Image
- Tools for flashing
- Add a file to the root of the
boot
partition namedssh
I hereby claim:
- I am mrkd on github.
- I am mrkd (https://keybase.io/mrkd) on keybase.
- I have a public key ASCwnADjCeJ3Cv5fyxI9yXltY7KJcL-zsdSSvva0Wk4_dQo
To claim this, I am signing this object:
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://rawgit.com/mrkd/ca6cf7041534470965b68da2f177db31/raw/grablinks.js?x="+(Math.random());})(); |
$while true; do clear; tree -a; sleep 1; done
#!/bin/bash
while :
do
clear
git --no-pager log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative $1