Skip to content

Instantly share code, notes, and snippets.

View acmiyaguchi's full-sized avatar
🌎

Anthony Miyaguchi acmiyaguchi

🌎
View GitHub Profile
@acmiyaguchi
acmiyaguchi / main.txt
Created June 21, 2016 18:46
Chat Logs
amiyaguchi> mshal: Thanks for the link to the bug, it was very informative. Are there examples of clients that look at artifacts stored at specific routes or that would break if builds were moved to a new route?
10:32 AM <mshal> one sec, in a meeting
11:42 AM <mshal> amiyaguchi: sorry about that! I know of two at least - mozregression and the artifact downloads
11:42 AM <mshal> mozregression uses gecko.v2: https://dxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/artifacts.py#610
11:42 AM <mshal> whoops, that's the link for artifacts
11:42 AM <mshal> mozregression is here: https://github.com/mozilla/mozregression/blob/96391566492f553becd0942630bf4ea99f954e75/mozregression/fetch_configs.py#L382
11:43 AM <mshal> but artifact builds will hopefully be moved to gecko.v2 as well (bug 1250700), and then we can remove buildbot.X and gecko.v1.X (bug 1279221, bug 1277881)
11:43 AM <firebot> https://bugzil.la/1250700 — NEW — Artifact builds should use the gecko.v2 index instead of buildbot.revisions.X
11:4
1:56 PM <aki> https://github.com/escapewindow/signingscript
1:56 PM <aki> https://github.com/escapewindow/scriptworker
1:57 PM <aki> http://scriptworker.readthedocs.io/en/latest/
1:58 PM <aki> https://tools.taskcluster.net/auth/clients/
virtualenv signingscript scriptworker
https://tools.taskcluster.net/auth/clients/
These are the

Keybase proof

I hereby claim:

  • I am acmiyaguchi on github.
  • I am acmiyaguchi (https://keybase.io/acmiyaguchi) on keybase.
  • I have a public key whose fingerprint is A4EB A869 A93C 0409 2CBD 9BB8 C3BD 35E4 6DD4 5DA5

To claim this, I am signing this object:

@acmiyaguchi
acmiyaguchi / 01_nightly-fennec-readme.md
Last active September 13, 2016 14:56
Nightly Fennec on Taskcluster

Nightly Fennec on TaskCluster

These are some notes for the development of nightly fennec on TaskCluster.

@acmiyaguchi
acmiyaguchi / README.md
Last active August 26, 2016 18:32
TaskCluster: Launching tasks locally

Launching tasks

This is a script that I use to emulate the workflow of launching a task from a hook registered in the Hook Manager on tools.taskcluster.net. By default, this will launch a task definition that will start a fennec nightly.

A hook will start a start a task using the current head of a repository. This is a painful process to work locally since you have to edit the task definition to get the correct revision for every launch.

Running

@acmiyaguchi
acmiyaguchi / log
Created November 2, 2016 00:56
Crash data transformation
[hadoop@ip-172-31-11-113 ~]$ aws s3 ls s3://net-mozaws-prod-us-west-2-pipeline-analysis/mreid/crash/v4
PRE v4/
2016-11-02 00:46:10 0 v4_$folder$
[hadoop@ip-172-31-11-113 ~]$ aws s3 ls s3://net-mozaws-prod-us-west-2-pipeline-analysis/mreid/crash/v4/
PRE crash_date=20161101/
2016-11-02 00:46:10 0 crash_date=20161101_$folder$
[hadoop@ip-172-31-11-113 ~]$ aws s3 ls s3://net-mozaws-prod-us-west-2-pipeline-analysis/mreid/crash/v4/crash_date=20161101/
2016-11-02 00:50:48 0 _SUCCESS
2016-11-02 00:50:49 9338 _common_metadata
2016-11-02 00:50:49 126496 _metadata
@acmiyaguchi
acmiyaguchi / topline_summary.ipynb
Last active December 1, 2016 00:35
Topline Summary
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@acmiyaguchi
acmiyaguchi / ipython_notebook_in_git.md
Created February 9, 2017 07:01 — forked from pbugnion/ ipython_notebook_in_git.md
Keeping IPython notebooks under Git version control

This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.

To use the script, follow the instructions given in the script's docstring.

For further details, read this blogpost.

The procedure outlined here is inspired by this answer on Stack Overflow.

Registering hyperloglog functions.

import org.apache.spark.sql.SparkSession
import com.mozilla.spark.sql.hyperloglog.functions._
import com.mozilla.spark.sql.hyperloglog.aggregates._

object UDFs{
  val HllCreate = "hll_create"
 val HllCardinality = "hll_cardinality"
@acmiyaguchi
acmiyaguchi / README.md
Last active June 8, 2020 19:28
Databricks Airflow Workflow