Skip to content

Instantly share code, notes, and snippets.

View Osmose's full-sized avatar

Osmose Osmose

View GitHub Profile
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 3353e8c6f..84d802a1c 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -50,9 +50,12 @@ COPY . /app/
# static files
RUN cd /app/webapp-django/ && python manage.py collectstatic --noinput
+# app should own everything under /app in the container
+RUN chown -R app.app /app
diff --git a/toolkit/modules/GMPInstallManager.jsm b/toolkit/modules/GMPInstallManager.jsm
--- a/toolkit/modules/GMPInstallManager.jsm
+++ b/toolkit/modules/GMPInstallManager.jsm
@@ -99,17 +99,17 @@ GMPInstallManager.prototype = {
let certs = null;
if (!Services.prefs.prefHasUserValue(GMPPrefs.KEY_URL_OVERRIDE)) {
allowNonBuiltIn = !GMPPrefs.get(GMPPrefs.KEY_CERT_REQUIREBUILTIN, true);
if (GMPPrefs.get(GMPPrefs.KEY_CERT_CHECKATTRS, true)) {
certs = gCertUtils.readCertPrefs(GMPPrefs.KEY_CERTS_BRANCH);
}
;(function($, Modernizr, _gaq, site) {
'use strict';
if (site.platform === 'android') {
return;
}
// Load images on load so as not to block the loading of other images.
$(window).on('load', function() {
// Replace install images depending on the user's platform.
@Osmose
Osmose / gist:939736
Created April 24, 2011 17:44 — forked from ubergeek42/gist:939724
haskell pinball
{-# OPTIONS_GHC -Wall -O2 #-}
module Main where
main :: IO()
main = interact (solve . readTestCases)
-- This builds a list of lists representing the problem
readTestCases :: String -> [[Int]]
readTestCases = parse 1 . map read . words