This file contains 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
/* | |
* Copyright 2013 Google Inc. | |
* | |
* 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
buildscript { | |
repositories { | |
... | |
maven { url 'https://www.testfairy.com/maven' } | |
} | |
dependencies { | |
... |
This file contains 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
package x.y.z; | |
import android.content.Context; | |
import android.graphics.*; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; | |
/** | |
* Created by Benny de Leeuw on 13-11-14. | |
* |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzXxASTlNDdXN0 | |
b21Db2xvclNwYWNlViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0JHMCAwIDAgMYACgAYQ | |
AUYwIDAgMADTCxQVFhcYVU5TSUNDVE5TSUSABYADEAfSCxobHFdOUy5kYXRhgARPEQxI |
This file contains 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
#!/bin/sh | |
# License for any modification to the original (linked below): | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# Sebastiano Poggi wrote this file. As long as you retain | |
# this notice you can do whatever you want with this stuff. If we meet some day, | |
# and you think this stuff is worth it, you can buy us a beer in return. | |
# | |
# Based on http://bit.ly/295BHLx |
This file contains 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
Graph type: 'Table' | |
A: | |
SELECT max("value") FROM "°C" WHERE "entity_id" = 'outside' AND $timeFilter GROUP BY time(24h) fill(null) | |
B: | |
SELECT min("value") FROM "°C" WHERE "entity_id" = 'outside' AND $timeFilter GROUP BY time(24h) fill(null) | |
In tab 'Time range' | |
change 'Override relative time' to Last 30d (or wathever suits you) |
This file contains 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
# check latest version at https://packages.debian.org/sid/armhf/influxdb/download | |
wget http://ftp.de.debian.org/debian/pool/main/i/influxdb/influxdb_1.1.1+dfsg1-4+b1_armhf.deb | |
sudo dpkg -i influxdb_1.1.1+dfsg1-4+b1_armhf.deb | |
# download Grafana via https://github.com/fg2it/grafana-on-raspberry/ | |
wget https://bintray.com/fg2it/deb/download_file?file_path=main%2Fg%2Fgrafana_4.3.2_armhf.deb -O grafana.deb | |
sudo dpkg -i grafana.deb | |
# it might fail (was in my case) with the error 'Package libfontconfig is not installed' | |
# install it with |
This file contains 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
# Bigger buffers (to make 40Gb more practical). These are maximums, but the default is unaffected. | |
net.core.wmem_max=268435456 | |
net.core.rmem_max=268435456 | |
net.core.netdev_max_backlog=10000 | |
# Avoids problems with multicast traffic arriving on non-default interfaces | |
net.ipv4.conf.default.rp_filter=0 | |
net.ipv4.conf.all.rp_filter=0 | |
# Force IGMP v2 (required by CBF switch) |
This file contains 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
sudo apt-get update | |
sudo apt-get install python-dev python-pip | |
sudo pip install glances bottle | |
sudo curl https://gist.githubusercontent.com/leeuwte/155c5dbc179a047b4495f37dcba3a00c/raw/526ee23d677bf92787d75c974b174af44a89649e/glances_rpi_service --output /etc/systemd/system/glances.service | |
sudo systemctl enable glances.service | |
sudo systemctl start glances.service |
OlderNewer