Given a list of unpinned dependencies:
name=requirements.txt
mwparserfromhell
pyyaml
pywikibot
Resolve the dependencies (ideally in a container with a controlled version of python):
Given a list of unpinned dependencies:
name=requirements.txt
mwparserfromhell
pyyaml
pywikibot
Resolve the dependencies (ideally in a container with a controlled version of python):
#!/bin/bash | |
ANDROID_ARCHIVE="android-sdk_r20.0.3-linux.tgz" | |
ANDROID_URL="http://dl.google.com/android/$ANDROID_ARCHIVE" | |
BASE_DIR="/opt/androidsdk" | |
ANDROID_BIN="$BASE_DIR/android-sdk-linux/tools/android" | |
ANDROID_VERSIONS="android-8,android-10" | |
### Pre checks ######## |
# Testing Jenkins Job Builder | |
# | |
# git clone git://gist.github.com/4251317.git | |
# mkdir testoutput | |
# jenkins-jobs -l debug test 4251317 -o testoutput | |
# grep command outtemplate/* | |
# Basic macro, takes a 'parameters' parameter | |
- builder: | |
name: resolve-deps |
RSpec.configure do |conf| | |
conf.module_path = File.join(fixture_path, 'modules') | |
conf.manifest_dir = File.join(fixture_path, 'manifests') | |
conf.hiera_config = File.join(fixture_path, 'hiera.yaml') | |
end | |
# Not sure this works for all types of https://github.com/rodjek/rspec-puppet tests. I think it works with host tests | |
if ENV['PUPPET_DEBUG'] | |
Puppet::Util::Log.level = :debug | |
Puppet::Util::Log.newdestination(:console) |
<?php | |
# Acknowledging Stas Malyshev | |
# https://phabricator.wikimedia.org/T156364#2977719 | |
# Given two classes with the same property name but different visibility | |
class WithPublic { | |
public $property; | |
function __construct( $p ) { $this->property = $p; } | |
function getProperty() { print $this->property; } | |
} |
For rubygems/bundler#5317 Based on https://github.com/bundler/bundler/blob/master/ISSUES.md
bundle exec fails to load xmlrpc/client !
$ bundle env
Environment
Bundler 1.13.7
#!/usr/bin/env python3 | |
import random | |
import time | |
arm = 'v^<>' | |
eye = '^Oo*' | |
body = '\r%s(%s%s)%s' |
<?php | |
$wgDebugDumpSql = false; | |
$wgAllowUserCss = true; | |
$wgDebugTimestamps = true; | |
#$wgDebugToolbar = true; # true: no file cache! | |
$wgDevelopmentWarnings = true; | |
$wgEnableJavaScriptTest = true; |
<?php | |
# Example for https://gerrit.wikimedia.org/r/#/c/92334/ | |
function blame($a) { | |
throw new Exception(); | |
} | |
try { | |
blame( array('foobar') ); | |
} catch (Exception $e) { |