cat -e -t -v makefile
View gist:7335908d0498c1c8905e92ea424236dc
ForwardAgent yes | |
Host github.com | |
Hostname ssh.github.com | |
Port 443 | |
Host bitbucket.org | |
Hostname altssh.bitbucket.org | |
Port 443 |
View install.sh
#!/usr/bin/env bash | |
sudo add-apt-repository universe | |
sudo apt install gnome-tweak-tool | |
gnome-tweaks |
View install-docker.sh
#!/urs/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
# | |
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install docker-ce docker-ce-cli containerd.io docker-compose | |
apt-cache policy docker-ce | |
systemctl status docker |
View Makefile
# Makefile for start testing | |
# Used for capture container id: docker ps -aqf "name=example-api" | |
# | |
container_name = exampple-api # docker ps for view container name | |
container_id := $(shell docker ps -aqf "name=$(container_name)") | |
folder_name = example-api | |
manage_path = $(folder_name)/django/app/manage.py | |
app_test = app-example.tests.tests_models | |
test: |
View dojo.py
#!/usr/bin/env python | |
""" | |
Caixa Eletrônico | |
Desenvolva um programa que simule a entrega de notas quando um cliente efetuar um saque em um caixa eletrônico. | |
Os requisitos básicos são os seguintes: | |
- Entregar o menor número de notas; | |
- É possível sacar o valor solicitado com as notas disponíveis; | |
- Saldo do cliente infinito; Quantidade de notas infinito | |
- Notas disponíveis: |
View Makefile
.PHONY: test install pep8 clean | |
DB_NAME=db_name | |
test: | |
@echo 'Run coverage and starting tests' | |
@pytest --verbose --cov=app --color=yes tests/ | |
report: | |
@echo 'Report coverage and generate html' |
View settings.py
""" | |
Django settings for podosphere project. | |
Generated by 'django-admin startproject' using Django 2.2.1. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/2.2/topics/settings/ | |
For the full list of settings and their values, see | |
https://docs.djangoproject.com/en/2.2/ref/settings/ |
View conftest.py
import pytest | |
from app.app_factory import create_app | |
from app.ext.db import db as _db | |
@pytest.fixture(scope='session') | |
def app(): | |
"""Session wide test 'Flask' application.""" | |
app = create_app('testing') | |
ctx = app.app_context() |
View keybase.md
Keybase proof
I hereby claim:
- I am fcschmidt on github.
- I am fcschmidt (https://keybase.io/fcschmidt) on keybase.
- I have a public key ASCTHvC5ZO3YaJ1dlI4ZasWfLlt-i4HEMg1JqJXx-cEMKAo
To claim this, I am signing this object:
NewerOlder