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
def lock_release(lock, logger): | |
token = None | |
if hasattr(lock, 'local') and hasattr(lock.local, 'token'): | |
# we store the token of the lock to be able to restore it later in case of error | |
token = lock.local.token | |
try: | |
lock.release() | |
except: | |
if token: | |
# release failed and token has been invalidated, any retry will fail, we restore the token |
This file has been truncated, but you can view the full file.
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
01 | |
01%20boulevard%20DE%20DOULON%20(Nantes) | |
01+rue+du+pet | |
01+rue+du+petit+mar | |
0%20Boulevard%20Gaston%20Doumergue,%2044200%20Nantes | |
0%20ru | |
0%20rue%20Baste | |
0%20ST-SEBASTIEN-SUR-LOIRE | |
022 | |
02210 |
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
@task | |
def update_init_by_host(host): | |
with settings(host_string=host): | |
run('systemctl daemon-reload') |
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
# | |
## File managed by fabric, don't edit directly | |
# | |
# this import might fix a strange thread problem: http://bugs.python.org/issue7980 | |
import _strptime | |
import os | |
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
from __future__ import print_function | |
import gtfs_realtime_pb2, chaos_pb2 | |
import uuid | |
import datetime, calendar | |
from kombu.connection import BrokerConnection | |
from kombu.entity import Exchange | |
import kombu | |
import time | |
import argparse | |
import sys |
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 bragi | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
class Bragi extends Simulation { | |
val httpConf = http | |
.baseURL("http://localhost:4000") // Here is the root for all relative URLs | |
.acceptEncodingHeader("gzip, deflate") |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
[uwsgi] | |
processes = 40 | |
http = 127.0.0.1:9090 | |
uid = 33 | |
log-encoder = format ${strftime:%%d/%%m/%%Y %%H:%%M:%%S} - ${msgnl} | |
buffer-size = 16384 | |
reload-on-rss = 700 | |
lazy-apps = True | |
enable-threads = True | |
logto = /var/log/uwsgi/%n.log |
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
{ | |
"name": "France - España", | |
"type": "country" | |
} | |
{ | |
"name": "Guernsey", | |
"type": "country" | |
} | |
{ | |
"name": "Jersey", |
NewerOlder