I hereby claim:
- I am joaodubas on github.
- I am joaodubas (https://keybase.io/joaodubas) on keybase.
- I have a public key ASDXDCqifB2ytkEIMwuRrZcsPBs4Wavd80BSiaWw0s1W0wo
To claim this, I am signing this object:
| erlang 27.0.1 | |
| elixir 1.17.2-otp-27 |
I hereby claim:
To claim this, I am signing this object:
| # nsinit installer | |
| # | |
| # VERSION: see `TAG` | |
| FROM ubuntu:14.04 | |
| MAINTAINER Joao Paulo Dubas "[email protected]" | |
| # install deps | |
| RUN apt-get -y -qq --force-yes update \ | |
| && apt-get -y -qq --force-yes install build-essential wget git |
| #!/usr/bin/env python | |
| # update system | |
| apt-get -y -qq --force-yes update | |
| # install needed system deps | |
| apt-get -y -qq --force-yes install \ | |
| python-setuptools \ | |
| build-essential \ | |
| wget \ |
| #!/usr/bin/env bash | |
| # enable precise source | |
| echo "deb http://archive.ubuntu.com/ubuntu precise main universe" \ | |
| >> /etc/apt/sources.list | |
| # update system | |
| apt-get -y -qq --force-yes update \ | |
| # install needed deps |
| $ # no host | |
| $ docker run -i -t stackbrew/ubuntu:quantal bash | |
| # # no container | |
| # touch test_file.txt | |
| # exit | |
| $ # no host | |
| $ docker ps -a # vamos pegar o id do container (ex: 0bf41761ce3b) | |
| $ docker start -i 0bf41761ce3b | |
| # # no container | |
| # echo "ola mundo" > test_file.txt |
| for ($i = 8000; $i -lt 10000; $i++) { VBoxManage modifyvm "container" --natpf1 "tcp-port-$i,tcp,,$i,,$i" } |
| # encoding: utf-8 | |
| from django.core.exceptions import ImproperlyConfigured | |
| from django.http import HttpResponseRedirect | |
| from django.utils.text import force_text | |
| from django.views.generic import View | |
| from django.views.generic.base import ContextMixin, TemplateResponseMixin | |
| class MultipleFormMixin(ContextMixin): | |
| """MultipleFormMixin -- Mixin that provides methods to show and handle |
| # encoding: utf-8 | |
| from django import forms | |
| from collections import OrderedDict | |
| def form_factory_for_fields(name, fieldnames, fields=None): | |
| """form_factory_for_fields -- Create dynamically a form class containing a | |
| list of set fields. | |
| name -- name for the Form class |