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
import requests | |
import json | |
url = 'http://jachym-redmine.samsung.majklk.cz' | |
auth = {'key':'008e507cf5bffac1f5df822d8cb3465170813b09'} | |
#filename relative path | |
#issue=issue_id = String !! | |
#item {"name":"test.jpeg", "description":"","content-Type":"image/png"path:"/srv/jachym/bin/"} |
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
class BaseFilterAction(tables.FilterAction): | |
"""filter action for search in all available columns | |
.. attribute:: custom_field | |
Custom field for search. Default is all fields. | |
""" | |
needs_preloading = True | |
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
def auto_overrides(app): | |
module_name = "%s.%s" % (app, "overrides") | |
try: | |
mod = __import__(module_name) | |
except Exception, e: | |
pass | |
for app in settings.INSTALLED_APPS: | |
auto_overrides(app) |
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
import functools | |
import sys | |
from StringIO import StringIO | |
def catch_result(task_func): | |
"""Catch printed result from Celery Task and return it in task response | |
""" |
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
var request = require('request'); | |
var rp = require('request-promise'); | |
export default function Model(model) { | |
/* Encapsulate Django Rest Frameowork actions | |
var page = new Model('web.page'); | |
page.list(function (pages) { |
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
from flask import jsonify | |
from flask import Flask | |
from flask import request | |
import yaml | |
app = Flask(__name__) | |
@app.route("/<path:path>", methods=['POST']) | |
def dump_relass(path): |
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
#!/bin/bash -e | |
pip_install_source() | |
{ | |
REMOTE=$1 | |
EGG=$2 | |
[ -d ../src ] || mkdir ../src | |
git clone $REMOTE --depth 1 ../src/$EGG |
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
import jinja2 | |
from jinja2 import Environment | |
import yaml | |
jinja2.filters.FILTERS['yaml'] = lambda s: yaml.safe_dump( | |
s, default_flow_style=True) | |
jinja2.filters.FILTERS['parse_aliases'] = lambda s: yaml.safe_dump( | |
s.split(','), default_flow_style=True) |
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
#!/bin/bash | |
run_tests() { | |
[ -d ./results/$CLOUD/$TEST ] || mkdir -p ./results/$CLOUD/$TEST | |
# run provision and preparation before run | |
echo "Start preparing environemnt for $TEST in the $CLOUD" |
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
#requires -version 2 | |
#------------------------------------------------------------------------------ | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[Guid] $StampId, | |
[Parameter(Mandatory=$true)] | |
[int32] $Size, |
OlderNewer