Skip to content

Instantly share code, notes, and snippets.

View wlach's full-sized avatar
👋

Will Lachance wlach

👋
View GitHub Profile
@wlach
wlach / tag-docs.md
Last active January 13, 2022 13:29
--- namespaces.yaml 2021-08-12 16:17:24.000000000 -0400
+++ namespaces-new.yaml 2021-08-12 16:16:52.000000000 -0400
@@ -145,14 +145,15 @@
type: glean_ping_explore
views:
base_view: creditcards_sync
+ events:
+ type: events_explore
+ views:
+ base_view: events
# To generate an sqlite3 table from a GLAM CSV, do something like:
# cat glam-file-XXX.csv.gz |gunzip | sqlite3 -csv -separator ',' glam4.db '.import /dev/stdin glam'
# This script runs *much* faster if you create an index on the table:
# create index metrics_index on glam(metric, channel, process, os)
import json
import os
import sqlite3
sqliteConnection = sqlite3.connect('glam.db')
#!/usr/bin/env python
# Example of this script in action: https://github.com/mozilla/glean-annotations/pull/44
# Meant to be run in the `annotations/fenix/metrics` directory
import os
import requests
metrics = requests.get('https://probeinfo.telemetry.mozilla.org/glean/fenix/metrics').json()
view: discovery {
dimension: additional_properties {
sql: ${TABLE}.additional_properties ;;
type: string
}
dimension: client_info__android_sdk_version {
sql: ${TABLE}.client_info.android_sdk_version ;;
type: string
group_label: "Client Info"
@wlach
wlach / gist:97ed10d1be48656176727b0332e61824
Created April 2, 2021 12:27
iodide-saving-wishlist.iomd
%% md
# Iodide saving short-term wishlist
The current implementation of autosave is pretty decent for our immediate use cases, but could use a number of refinements:
* Infrequent server autosaves - the recent push to save when the iodide tab loses focuses helps, but it would probably still be good to autosave a little more frequently if we can, especially if the above issue is fixed. Maybe once every 15 or even 10 seconds?
* Allow explicit saves again. On second thought, I think it's nice to have an explcit way to save for the impatient and/or paranoid. We could do something like what glitch does and say `(P.S.: iodide autosaves!)`. See [#1586](https://github.com/iodide-project/iodide/issues/1586)
# Resolved issues
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
--- repositories-formatted-old.json 2021-03-17 13:30:42.000000000 -0400
+++ repositories-formatted-new.json 2021-03-17 13:30:31.000000000 -0400
@@ -32,63 +32,14 @@
"org.mozilla.components:service-glean"
],
"metrics_file_paths": [
- "glean-core/android/metrics.yaml",
- "glean-core/metrics.yaml"
+ "glean-core/android/metrics.yaml"
],
wlach@antwerp glean-dictionary % npm run dev
> glean-dictionary@0.1.0 dev /Users/wlach/src/glean-dictionary
> rollup --config --watch
rollup v2.36.1
bundles src/main.js → public/build/bundle.js...
[!] (plugin svelte) Error: (body-font-family: (Inter, X-LocaleSpecific, sans-serif), button-font-family: (Metropolis, Inter, X-LocaleSpecific, sans-serif), title-font-family: (Metropolis, Inter, X-LocaleSpecific, sans-serif)) isn't a valid CSS value.
197 │ $theme-firefox: map-collect($theme-fonts-firefox, $theme-colors-firefox, $theme-type-scale-firefox);
1:54:11 AM: WARN Module Warning (from ./node_modules/svelte-loader/index.js):
1:54:11 AM: WARN Unused CSS selector "video" (78:5)
1:54:11 AM: WARN 76: border: 0; }
1:54:11 AM: WARN 77:
1:54:11 AM: WARN 78: img, video, object, embed {
1:54:11 AM: WARN ^
1:54:11 AM: WARN 79: -ms-interpolation-mode: bicubic;
1:54:11 AM: WARN 80: height: auto;
1:54:11 AM: WARN Error: Unused CSS selector "video" (78:5)
1:54:11 AM: WARN 76: border: 0; }