Skip to content

Instantly share code, notes, and snippets.

@simonhearne
simonhearne / cloudSettings
Last active Sep 23, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-09-23T07:36:55.264Z","extensionVersion":"v3.4.3"}
View strip-headers.js
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 Feb 20, 2020
A Postman collection for interacting with mPulse APIs
View mPulse_postman.json
{
"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": [
View pi_stats_grafana.json
{
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 6,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
View speedtest_grafana.json
{
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 5,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
View rpi-speedtest-influx.py
#!/usr/bin/env python
import datetime
import speedtest
from influxdb import InfluxDBClient
# influx configuration - edit these
ifuser = "grafana"
ifpass = "<yourpassword>"
ifdb = "home"
View rpi-stats-influx.py
#!/usr/bin/env python
import datetime
import psutil
from influxdb import InfluxDBClient
# influx configuration - edit these
ifuser = "grafana"
ifpass = "<yourpassword>"
ifdb = "home"
View countrydata.csv
Continent_Name Continent_Code Country_Name Two_Letter_Country_Code Three_Letter_Country_Code Country_Number
Asia AS Afghanistan, Islamic Republic of AF AFG 4
Europe EU Albania, Republic of AL ALB 8
Antarctica AN Antarctica (the territory South of 60 deg S) AQ ATA 10
Africa AF Algeria, People's Democratic Republic of DZ DZA 12
Oceania OC American Samoa AS ASM 16
Europe EU Andorra, Principality of AD AND 20
Africa AF Angola, Republic of AO AGO 24
North America NA Antigua and Barbuda AG ATG 28
Europe EU Azerbaijan, Republic of AZ AZE 31
View countrycodes.tsv
name code
Afghanistan AF
Åland Islands AX
Albania AL
Algeria DZ
American Samoa AS
AndorrA AD
Angola AO
Anguilla AI
Antarctica AQ
View publisher_retention.json
{
"$schema": "https://vega.github.io/schema/vega/v4.json",
"width": 1000,
"height": 500,
"padding": 5,
"autosize": "pad",
"config": {
"text": {
"font": "Ideal Sans, Avenir Next, Helvetica"
You can’t perform that action at this time.