cat -e -t -v makefile
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
#!/usr/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
# Install Docker | |
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" | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable" | |
apt-get update | |
apt-get install docker-ce docker-ce-cli containerd.io docker-compose | |
apt-cache policy docker-ce |
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 asyncio | |
# import aiohttp | |
# from app.spiders.models import RestockQueryset | |
# from bs4 import BeautifulSoup | |
# | |
# | |
# async def fetch(session, url): | |
# async with session.get(url) as response: | |
# result = await response.text() | |
# soup = BeautifulSoup(result, "html.parser") |
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
#!/usr/bin/env bash | |
# | |
# VTE Configuration | |
# Added Source vte.sh in bashrc | |
#if [ $TILIX_ID ] || [ $VTE_VERSION ]; then | |
# source /etc/profile.d/vte.sh | |
#fi | |
# | |
# On Ubuntu, a symlink is probably missing. You can create it with: | |
# ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh |
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
#!/usr/bin/env python3 | |
import json | |
import requests | |
def save_doc(lista): | |
count = 0 | |
with open("exchanges.md", "w") as f: | |
f.write( | |
"|#|Exchange|API Doc URL|Ticker|k-line|Symbols|Notes|\n" \ |
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
ForwardAgent yes | |
Host github.com | |
Hostname ssh.github.com | |
Port 443 | |
Host bitbucket.org | |
Hostname altssh.bitbucket.org | |
Port 443 |
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
#!/usr/bin/env bash | |
sudo add-apt-repository universe | |
sudo apt install gnome-tweak-tool | |
gnome-tweaks |
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
#!/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 |
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
# 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: |
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
#!/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: |
NewerOlder