This file contains hidden or 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
if(this.options && this.options.renderingConfig && this.options.renderingConfig.codeSyntaxHighlighting === true && window.Prism) { | |
function autoLoadLanguage(lang) { | |
return new Promise(resolve => { | |
window.Prism.plugins.autoloader.loadLanguages([lang], function () { | |
console.log('+++ success auto-load', lang); | |
resolve('resolved'); | |
}); | |
}); | |
} |
This file contains hidden or 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
After 1 year pause Testing and Automation devroom is coming again to | |
[FOSDEM](https://fosdem.org/). This room is about building better | |
software through a focus on testing and automation at all layers of | |
the stack. From creating libraries and end-user applications all the | |
way down to packaging, distribution and deployment. Testing and | |
automation is not isolated to a single toolchain, language or | |
platform, there is much to learn and share regardless of background! | |
# What |
This file contains hidden or 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
# execute via rspec -fd pairwise_spec.rb | |
# for more info see http://atodorov.org/blog/2017/04/14/testing-red-hat-enterprise-linux-the-microsoft-way/ | |
require 'pairwise' | |
describe "RHEL 6.9 Tier #2 and #3 testing" do | |
context "Test case w/o parameters can't be reduced via pairwise" do | |
[ | |
[%w(x86_64), %w(Server Workstation Client ComputeNode)], | |
[%w(i386), %w(Server Workstation Client)], |
This file contains hidden or 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
package main | |
import ( | |
"github.com/elazarl/goproxy" | |
"log" | |
"net/http" | |
"runtime" | |
) | |
func main() { |
This file contains hidden or 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 python | |
import djapp.mem_serializer | |
from datetime import datetime | |
from kombu.pools import producers | |
from kombu import Connection, Exchange | |
msg = {u'body': {'expires': None, 'utc': True, 'args': [], 'chord': None, 'callbacks': None, 'errbacks': None, 'taskset': None, 'id': '79ac070e-86fa-4f7a-9ce2-38ad18dbd8d3', 'retries': 0, 'task': 'djapp.celery.debug_task', 'timelimit': (None, None), 'eta': None, 'kwargs': {}}, u'headers': {}, u'content-type': 'application/x-memory', u'properties': {'reply_to': '2b255b23-2b57-3e54-98a9-3ee48645ae02', 'correlation_id': '79ac070e-86fa-4f7a-9ce2-38ad18dbd8d3', 'delivery_mode': 2, u'delivery_info': {u'priority': 0}}, u'content-encoding': 'binary'} | |
# The exchange we send our news articles to. |
This file contains hidden or 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
# place this file under djapp/management/commands/ | |
from djapp.tasks import * | |
from datetime import datetime | |
from django.conf import settings | |
from optparse import make_option | |
from django.core.management.base import BaseCommand, CommandError | |
class Command(BaseCommand): |
This file contains hidden or 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 python | |
import os | |
import sys | |
import base64 | |
import hashlib | |
from suds.client import Client as SOAPClient | |
myusername = 'YourUserName' | |
mypassword = 'YourSecretPassword' |