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
{ | |
"id": "5409c35a97bbc544d8e26737", | |
"created": 1409925979.5, | |
"modified": 1561335111.681374, | |
"code": "CS-75019", | |
"status": "open", | |
"org_id": 42, | |
"group_id": 23, | |
"name": "Corner shop", | |
"address_details": { |
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
Vagrant.configure("2") do |config| | |
config.vm.define "partoo.dev" do |config| | |
config.vm.box = "generic/ubuntu2004" | |
config.vm.hostname = "partoo.dev" | |
# enable SSH identity to be usable from inside VM | |
config.ssh.forward_agent = true | |
# create a bridge to enable using regular ports such as 80, 443 | |
config.vm.network "private_network", ip: "192.168.51.4" | |
config.vm.provider :virtualbox do |v| | |
v.memory = 6144 |
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
- name: Install docker | |
hosts: all | |
become: true | |
tags: docker | |
vars: | |
ansible_python_interpreter: python3 | |
tasks: | |
- name: Install APT requirements | |
apt: |
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 time | |
from contextlib import contextmanager | |
from functools import wraps | |
from collections import defaultdict | |
class Profiler: | |
def __init__(self): | |
self.timings = defaultdict(list) | |
@contextmanager |