Skip to content

Instantly share code, notes, and snippets.

View lachaib's full-sized avatar

Louis-Amaury Chaib lachaib

View GitHub Profile
@lachaib
lachaib / model.json
Last active November 30, 2021 08:27
Business model extract from REST API
{
"id": "5409c35a97bbc544d8e26737",
"created": 1409925979.5,
"modified": 1561335111.681374,
"code": "CS-75019",
"status": "open",
"org_id": 42,
"group_id": 23,
"name": "Corner shop",
"address_details": {
@lachaib
lachaib / Vagrantfile
Created November 22, 2021 08:15
Development Environment with Vagrantfile
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
@lachaib
lachaib / devenv.yml
Last active May 12, 2022 23:36
Development Environment with Ansible
- name: Install docker
hosts: all
become: true
tags: docker
vars:
ansible_python_interpreter: python3
tasks:
- name: Install APT requirements
apt:
import time
from contextlib import contextmanager
from functools import wraps
from collections import defaultdict
class Profiler:
def __init__(self):
self.timings = defaultdict(list)
@contextmanager