Services Blog Français

Scripted MITM AnyThing in Python with mitmproxy

| by jpic | linux python security ci

This article describes how to get a working transparent HTTP/HTTPS proxy which you can script in Python. I intend to use it to have custom caching and be able to abstract away all HTTP/HTTPS connections made in my LXC containers which are spawned by CI to be able to test deployment scripts even when internet is down. A nice journey ;)

First, install mitmproxy with pip:

pip install mitmproxy

mitmproxy documentation describes the iptables commands to intercept Assuming you have LXC with Nat. Basically, we want iptables to route all outgoing requests to port 80 (http) and 443 (https) to mitmproxy, it looks like:

Read More

YourLabs Arch Linux Package Repository

| by jpic | arch linux postgresql

Today is the grand openning of our Arch Linux package repository, with the release of postgresql-bdr. It’s a patched PostgreSQL server with BiDirectionnal Replication which seems too good to be true. I ran split brain tests and it reacted amazingly well, although it needs all nodes to be up for schema updates which is ok to me because I won’t be running upgrades while I have a broken node: I’ll be working on fixing it.

Read More

django-cities-light 3.1.0 release

| by jpic | django-cities-light django python

Pluggable models have come to django-cities-light thanks to Alexey Evseev. It’s completely backward compatible and allows you swap default models with your own as well as connecting to new signals the geonames import command.

On the behalf of YourLabs, I’d like to welcome Alexey Evseev aboard ! I recommend hiring with Alexey Evseev if you have the chance and trust in with your mission.

Upgrade instructions:

pip install -U django-cities-light

Don’t forget to read how to customize your models with django-cities-light it’s ultra simple.

Read More

Speed up your travis-ci builds with container based infrastructure

| by jpic | travis-ci python django linux

Travis-ci just released container based infrastructure for open source repository (free users).

We tried it with our apps, and you can see we had some performance increase, even on database-intensive jobs:

Install Arch Linux on a dedicated server via Ubuntu Live

| by jpic | linux dedibox ansible

In the process of making YourLabs new cloud, I ordered a first dedicated server at online.net. They don’t provide an installer for Arch Linux, but they do provide a “rescue mode” which is at this time Ubuntu 13.04 Live. Boot that and get an Arch Linux install on BtrFS with just one command:

Format /dev/sda to BtrFS Partionning and install arch linux in subvolumes with just one command:

ansible-playbook -i "yourhostname," -e "hostname=your_host_name" --ask-sudo-pass rescue_reinstall_arch_linux.yml

If you just want to debug your arch root on /dev/sda through Ubuntu Live, then this command will make it operationnal in /tmp/root.x86_64/mnt:

Read More
Previous Page 22 of 32 Next Page

They trust us

Contact

logo