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
#!/usr/bin/python | |
import sys | |
import urllib2 | |
import json | |
from datetime import datetime, timedelta | |
import sys |
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
<?php | |
function getJson($file) { | |
return json_decode( | |
file_get_contents('https://product-details.mozilla.org/1.0/' . $file), | |
true | |
); | |
} | |
function getProductDetailsLocales($version) { |
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
#! /usr/bin/env bash | |
# Pretty printing utility function | |
function echogreen() { | |
NORMAL=$(tput sgr0) | |
GREEN=$(tput setaf 2; tput bold) | |
echo -e "$GREEN$*$NORMAL" | |
} | |
# Path to the temporary profile |
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
<?php | |
/** | |
* Return the current URL with the json GET variable appended | |
* This is used on views which also exist in our public API | |
* https://github.com/mozfr/transvision/wiki/JSON-API | |
* | |
* @param boolean $swap_locales Defaults to False. If set to True, swap the | |
* values of locale and source_locale parameters. | |
* @return string URL with 'json' appended as part of the query string | |
*/ |
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
function patchy() | |
{ | |
tmp='/tmp/diff_being_sent_to_your_server' | |
$1 diff > $tmp | |
scp $tmp john@doe.com:/home/john/patches/$2.diff | |
rm $tmp | |
} |
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
# Bedrock prod commit cherry-pick | |
commit() { | |
cd /home/pascalc/repos/github/bedrock-l10n | |
git --git-dir=../www.mozilla.org/.git format-patch -k -1 --stdout $1 | git apply | |
} | |
# example use: commit 27c3da077cb8ba3b4b048307bfd514700571578d |
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
<?php | |
# -- BEGIN LICENSE BLOCK ---------------------------------- | |
# | |
# This file is part of Dotclear 2. | |
# | |
# Copyright (c) 2003-2008 Olivier Meunier and contributors | |
# Licensed under the GPL version 2.0 license. | |
# See LICENSE file or | |
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
# |
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
<?php | |
namespace Verif; | |
class Verif | |
{ | |
protected $host; | |
public $target; | |
protected $content = false; | |
protected $status = 0; |
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
RewriteEngine on | |
RewriteBase / | |
# Migration des billets du blog principal vers le blog FirefoxOS | |
RewriteRule ^(post/2015/05/Ce-qui-a-etonne-AmarOk-en-rejoignant-le-groupe-comm-pour-Firefox-OS-et-Mozilla)$ https://firefoxos.mozfr.org/$1 [L,R=301] | |
RewriteRule ^(post/2015/04/Mamie-Fox-fait-des-cookies-3D)$ https://firefoxos.mozfr.org/$1 [L,R=301] | |
RewriteRule ^(post/2015/05/Philippe-a-aussi-participe-au-futur-de-Firefox-OS)$ https://firefoxos.mozfr.org/$1 [L,R=301] | |
RewriteRule ^(post/2015/05/Firefox-OS-dans-la-presse-en-avril)$ https://firefoxos.mozfr.org/$1 [L,R=301] | |
RewriteRule ^(post/2015/04/Naissance-Firefox-pour-Android-29-mars-2011)$ https://firefoxos.mozfr.org/$1 [L,R=301] |
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
<?php | |
$history['sub'] = 'beta'; | |
$hosts = [ | |
0 => [ | |
'foo' => 0, | |
'bar' => 1 | |
], | |
1 => [ |