Skip to content

Instantly share code, notes, and snippets.

View kumar303's full-sized avatar
πŸ’­
πŸ‰

Kumar McMillan kumar303

πŸ’­
πŸ‰
View GitHub Profile
import unittest
from mohawk import Receiver, Sender
class TestBewit(unittest.TestCase):
def setUp(self):
self.credentials = {'id': 'some-sender',
'key': 'some complicated SEKRET',
@kumar303
kumar303 / gist:6369cd876edabf9b27f4
Last active August 29, 2015 14:21
GPG key proof

Keybase proof

I hereby claim:

  • I am kumar303 on github.
  • I am kumar (https://keybase.io/kumar) on keybase.
  • I have a public key whose fingerprint is ED25 3AD5 F740 4F8B 5BAB BE20 E8EF E298 1481 41C3

To claim this, I am signing this object:

@kumar303
kumar303 / patch.diff
Created September 3, 2015 17:43
payments-ui tests without Provider
diff --git a/tests/apps/test.management-app.jsx b/tests/apps/test.management-app.jsx
index 23836ec..dcdf9ba 100644
--- a/tests/apps/test.management-app.jsx
+++ b/tests/apps/test.management-app.jsx
@@ -2,7 +2,6 @@ import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import * as appActions from 'actions/app';
-import { createReduxStore } from 'data-store';

We're about to release some tools for developers to sign add-ons so they can publish the .xpi files to their own site as opposed to hosting them on addons.mozilla.org. This would let users install the add-ons in a release or beta channel when add-on signatures are required.

Can you help test what we have so far? Here's how:

  • Clone jpm and install it so you can run jpm from your shell:
git clone https://github.com/mozilla-jetpack/jpm.git
cd jpm
npm install
import manage # this initializes Django
import datetime
import hashlib
import pprint
import traceback
from collections import defaultdict
from amo.utils import chunked
from constants.base import VALID_STATUSES
#
# Generated with the following command and then edited.
# docker-compose run web ./manage.py show_urls > ~/tmp/olympia-urls.txt
#
# If a URL starts with a minus then it shouldn't be marked as non-atomic.
# If a URL starts with a hash then it's ignored.
#
/ addons.views.home home
/<var>/moreinfo.php browse.views.moreinfo_redirect
# /__debug__/render_panel/ debug_toolbar.views.render_panel render_panel
diff --git a/devtools/client/aboutdebugging/components/addons-tab.js b/devtools/client/aboutdebugging/components/addons-tab.js
--- a/devtools/client/aboutdebugging/components/addons-tab.js
+++ b/devtools/client/aboutdebugging/components/addons-tab.js
@@ -78,17 +78,18 @@ module.exports = createClass({
updateAddonsList() {
AddonManager.getAllAddons(addons => {
let extensions = addons.filter(addon => addon.isDebuggable).map(addon => {
return {
name: addon.name,
diff --git a/devtools/client/aboutdebugging/components/addons-tab.js b/devtools/client/aboutdebugging/components/addons-tab.js
--- a/devtools/client/aboutdebugging/components/addons-tab.js
+++ b/devtools/client/aboutdebugging/components/addons-tab.js
@@ -72,23 +72,25 @@ module.exports = createClass({
let debugDisabled =
!Services.prefs.getBoolPref(CHROME_ENABLED_PREF) ||
!Services.prefs.getBoolPref(REMOTE_ENABLED_PREF);
this.setState({ debugDisabled });
},
diff --git a/devtools/client/aboutdebugging/components/addons-tab.js b/devtools/client/aboutdebugging/components/addons-tab.js
--- a/devtools/client/aboutdebugging/components/addons-tab.js
+++ b/devtools/client/aboutdebugging/components/addons-tab.js
@@ -72,23 +72,26 @@ module.exports = createClass({
let debugDisabled =
!Services.prefs.getBoolPref(CHROME_ENABLED_PREF) ||
!Services.prefs.getBoolPref(REMOTE_ENABLED_PREF);
this.setState({ debugDisabled });
},
before_install:
# Create a master branch for conventional-changelog-lint
- git remote set-branches origin master
- git fetch
- git checkout master
# Check out the commit that TravisCI started on:
- git checkout -