Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import datetime
import psutil
from influxdb import InfluxDBClient
# influx configuration - edit these
ifuser = "grafana"
ifpass = "<yourpassword>"
ifdb = "home"
#!/usr/bin/env python
import datetime
import speedtest
from influxdb import InfluxDBClient
# influx configuration - edit these
ifuser = "grafana"
ifpass = "<yourpassword>"
ifdb = "home"
{
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 5,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
(function(window){
/* clears any divs we've created before */
function cl() {
// clear colours
var s=document.getElementsByClassName('fpser-lay');
var l = s.length-1;
for (var i=l;i>=0;i--) {
try {document.body.removeChild(s[i])} catch(e) {continue;}
}
@simonhearne
simonhearne / History|-126d4b70|entries.json
Last active June 15, 2022 19:09
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/simon/Projects/developer.chrome.com/site/en/docs/crux/bigquery/index.md","entries":[{"id":"9hlb.md","timestamp":1650560233468},{"id":"a2v7.md","source":"undoRedo.source","timestamp":1650571622365},{"id":"mRqT.md","timestamp":1650571664132},{"id":"B4Hp.md","timestamp":1651588654315}]}
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "",
"width": 840,
"height": 500,
"padding": 5,
"title": {
"text": {
"signal": "['COVID-19 Cases by England Region',utcFormat(timestamp*1000, '%e %B %Y')]"
const HEADERS = [
"content-security-policy-report-only",
"content-security-policy",
"feature-policy",
"nel",
"report-to",
"accept-ch",
"referrer-policy",
"strict-transport-security",
"link"
@simonhearne
simonhearne / mPulse_postman.json
Created February 20, 2020 14:46
A Postman collection for interacting with mPulse APIs
{
"info": {
"_postman_id": "7eaf462d-6713-446d-9872-0c5ecef206d8",
"name": "mPulse",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Annotations",
"item": [
This file has been truncated, but you can view the full file.
INSERT IGNORE INTO thirdpartydb.group (name) VALUES ('Advertising'),
('Other'),
('Dynamic Content'),
('User Interaction'),
('Content Provision'),
('Analytics'),
('Financial Services'),
('Hosted Media'),
('Fraud & Security'),
('Social Media'),
{
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 6,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,