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
{ | |
"messages": [ | |
{ | |
"weight": 50, | |
"id": "1053xx3", | |
"template": "simple_snippet", | |
"template_version": "1.0.0", | |
"content": { | |
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAEJ5JREFUeAG9W3uMXFUZP+c+ZvY1u9sH2Cotr4AGalAgGCp0d3HboSAL0i4NIsFHAhr4Q4kSH9Fu/0ODxCgqGGIwREK6Bbotj25X6G4fKqEl0YSnWBBEkq7Sx+xr7uv4+507Z3pnd3a7MzvD2ezce88993t/3/nOd8+VokZta+9Wu1f0CtkvQwNyT+ceJ1xiX+AIeaGU8mIh5QolxHlCibNw3RKpMPT9/HgkoimprP9Jqd4XUhzGmDdx/ncl1GvZp7JHDDxcy+HOYbtzuDOUQmLYwptc |
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
{ | |
"messages": [ | |
{ | |
"weight": 100, | |
"content": { | |
"cta": { | |
"string_id": "cfr-doorhanger-bookmark-fxa-link-text" | |
}, | |
"text": { |
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
[cinnabar] | |
helper = /Users/andreioprea/Work/git-cinnabar/git-cinnabar-helper | |
[user] | |
name = Andrei Oprea | |
email = andrei.br92@gmail.com | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch |
This file has been truncated, but you can view the full file.
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
{"messages": [{"id": "10795", "template": "simple_snippet", "template_version": "1.0.0", "weight": 100, "content": {"icon": "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTc2IDE1NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtOTYgMTczYTg4IDg4IDAgMCAxIC04OC04OHYtNDRhMjIgMjIgMCAwIDEgMjItMjJoMTMyYTIyIDIyIDAgMCAxIDIyIDIydjQ0YTg4IDg4IDAgMCAxIC04OCA4OHptNDMuODMtMTEwLjM1YTEwLjg3IDEwLjg3IDAgMCAwIC04IDMuNTFsLTM2LjEgMzYuMTEtMzUuNDItMzUuNTdhMTAuODIgMTAuODIgMCAwIDAgLTguMzEtNC4wNSAxMSAxMSAwIDAgMCAtNy44NSAxOC43bC0uMTguMTIgMzYuMjIgMzYuMzcgNy44MSA3Ljc3YTExIDExIDAgMCAwIDE1LjU1IDBsNy43OC03Ljc3IDM2LjQtMzYuMzdhMTEgMTEgMCAwIDAgLTcuODctMTguODJ6IiBmaWxsPSIjZWY0MTU2IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOCAtMTkpIi8+PC9zdmc+", "button_label": "Launch in Firefox", "button_url": "https://getpocket.com/firefox_learnmore/?utm_source=desktop-snippet&utm_medium=snippet&utm_campaign=pocket2019&utm_term=10795&utm_content=evergreen\n", "text": "Brain Food delivered fresh! Pocket makes it easy to find and focus on content that fu |
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
XPCOMUtils.defineLazyGetter(this, "gTextDecoder", () => new TextDecoder()); | |
const filepath = OS.Path.join(OS.Constants.Path.localProfileDir, "activity-stream.discovery_stream.json"); | |
OS.File.read(filepath).then(binaryData => { | |
const json = gTextDecoder.decode(binaryData); | |
data = JSON.parse(json); | |
for (let i in data) { | |
if (i === "feeds") { | |
for (j in data[i]) { console.log(i, data[i][j].lastUpdated); } | |
} else { |
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
{"spocs":{"url":"https:\/\/getpocket.cdn.mozilla.net\/v3\/firefox\/global-recs?version=3&consumer_key=40249-e88c401e1b1f2242d9e441c4&locale_lang=en-US&feed_variant=default_spocs_on"},"layout":[{"width":12,"components":[{"type":"TopSites","header":{"title":"Top Sites"},"properties":{}},{"type":"SectionTitle","header":{"title":"Best of the Web"},"properties":{}},{"type":"HorizontalRule","properties":{}},{"type":"SectionTitle","header":{"title":"Best of the Web","subtitle":"Brought to you by the Pocket Editorial Team"},"properties":{}},{"type":"Navigation","properties":{"alignment":"centered","links":[{"name":"Must Reads","url":"https:\/\/getpocket.com\/explore\/must-reads?src=fx_new_tab"},{"name":"Productivity","url":"https:\/\/getpocket.com\/explore\/productivity?src=fx_new_tab"},{"name":"Health","url":"https:\/\/getpocket.com\/explore\/health?src=fx_new_tab"},{"name":"Finance","url":"https:\/\/getpocket.com\/explore\/finance?src=fx_new_tab"},{"name":"Technology","url":"https:\/\/getpocket.com\/explore\/techno |
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
{ | |
"messages": [ | |
{ | |
"id": "1", | |
"template": "eoy_snippet", | |
"template_version": "1.0.0", | |
"campaign": "foobar", | |
"content": { | |
"background_color": "yellow", | |
"test": "bold", |
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
{ | |
"messages": [ | |
{ | |
"content": { | |
"button_label": "Sign Up", | |
"dismiss_button_label": "Dismiss", | |
"scene2_button_label": "Sign Up Now", | |
"scene2_email_placeholder_text": "Your email here", | |
"form_action": "https://basket.mozilla.org/subscribe.json", | |
"success_text": "Check your inbox for the confirmation!", |
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
FROM ubuntu:16.04 | |
# Basic boostrap | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
git \ | |
python \ | |
build-essential \ | |
wget \ | |
curl \ |
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/bash | |
export SHELL=/bin/bash | |
cd /firefox/src | |
git clone https://github.com/mozilla/activity-stream.git | |
cd activity-stream | |
npm install | |
npm buildmc | |
npm run mochitest |