Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🍉

Kumar McMillan kumar303

💭
🍉
View GitHub Profile
View check-logs-issue-3916.js
require('babel-register');
const fs = require('fs');
const readline = require('readline');
const rl = readline.createInterface({
// This was a log file from production for a single NodeJS app instance.
// It had 7 OOM crashes. After each crash the app was restarted.
input: fs.createReadStream('/Users/kumar/Downloads/docker-addons-frontend.service.log'),
});
View web-ext-pr-744-return-default-values.patch
diff --git a/src/config.js b/src/config.js
index 92cf9a9..08b839a 100644
--- a/src/config.js
+++ b/src/config.js
@@ -53,4 +53,4 @@ export function loadJSConfigFile(filePath: string) {
throw new UsageError
(`Cannot read config file: ${filePath}\nError: ${error.message}`);
}
-}
\ No newline at end of file
View scratch-config-file-for-sj.diff
diff --git a/src/config.js b/src/config.js
new file mode 100644
index 0000000..226fd0c
--- /dev/null
+++ b/src/config.js
@@ -0,0 +1,6 @@
+export function applyConfigToArgv({argv, configObject}) {
+ // Replace argv with config file option values.
+ // This is of course only a naiive implementation that is missing
+ // many things.
View file.diff
diff --git a/src/amo/components/AddonDetail.js b/src/amo/components/AddonDetail.js
index 18f0ef9..8ef43ba 100644
--- a/src/amo/components/AddonDetail.js
+++ b/src/amo/components/AddonDetail.js
@@ -1,7 +1,12 @@
import React, { PropTypes } from 'react';
+import { connect } from 'react-redux';
+import { asyncConnect } from 'redux-async-connect';
import translate from 'core/i18n/translate';
View file.diff
diff --git a/src/amo/components/AddonDetail.js b/src/amo/components/AddonDetail.js
index 18f0ef9..4e46107 100644
--- a/src/amo/components/AddonDetail.js
+++ b/src/amo/components/AddonDetail.js
@@ -1,6 +1,10 @@
import React, { PropTypes } from 'react';
+import { connect } from 'react-redux';
+import { asyncConnect } from 'redux-async-connect';
import translate from 'core/i18n/translate';
View .travis.yml
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 -
View bug1246030.patch
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 });
},
View patch.diff
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 });
},
View patch.diff
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,
View olympia-urls.txt
#
# 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
You can’t perform that action at this time.