gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
# Backup and Restore a Docker Volume | |
Reference: | |
https://github.com/loomchild/volume-backup | |
As the docker user guide explains, [data volumes](https://docs.docker.com/userguide/dockervolumes/#data-volumes) are meant to persist data outside of a container filesystem. This also ease the sharing of data between multiple containers. | |
A Metabase Docker compose file will be used as containers: | |
```yml | |
version: '3.8' |
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
var message = prompt("Enter the message"); | |
var count = prompt("Enter the Number of times"); // Change the Number to change | |
var looper = 0; | |
for(looper=0;looper<count;looper++) | |
{ | |
window.InputEvent = window.Event || window.InputEvent; | |
var d = new Date(); | |
var event = new InputEvent('input', {bubbles: true}); | |
var textbox= document.querySelector('#main > footer > div._2BU3P.tm2tP.copyable-area > div > span:nth-child(2) > div > div._2lMWa > div.p3_M1 > div > div._13NKt.copyable-text.selectable-text'); | |
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
from __future__ import print_function | |
# tutorial | |
# https://www.pythoncentral.io/introductory-tutorial-python-sqlalchemy/ | |
# https://chartio.com/resources/tutorials/how-to-execute-raw-sql-in-sqlalchemy/ | |
import os | |
import sys | |
from sqlalchemy import Column, ForeignKey, Integer, String, Numeric | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import relationship | |
from sqlalchemy import create_engine |
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
from __future__ import print_function | |
import requests | |
import base64 | |
# curl to python requests | |
# https://curl.trillworks.com/ | |
home_url = 'http://192.168.1.170/' | |
session = requests.Session() |
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 os | |
import platform | |
__author__ = "Ronivaldo Sampaio" | |
__copyright__ = "Kontus (www.kontus.com.br)" | |
__credits__ = ["Ronivaldo Sampaio"] | |
__version__ = "1.0.0" | |
__maintainer__ = "Ronivaldo Sampaio" | |
__email__ = "[email protected]" | |
__status__ = "Production" |
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
""" | |
Paginas de Login para Testes: | |
http://testing-ground.scraping.pro/login | |
Mais paginas: | |
http://testing-ground.scraping.pro/ | |
Exemplo simples: | |
https://selenium.dev/selenium/docs/api/py/ |
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
# Hanna moves in a lattice where every point can be represented by a pair of integers. | |
# She moves from point A to point B and then takes a turn 90 degrees rightand starts | |
# moving till she reaches the first point on the lattice. Find what's the | |
# point she would reach? | |
# A' . | | |
# . | | |
# . | . . . A | |
# . | . | |
# ------------------------- | |
# | |
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 requests | |
def criar_contas(numero): | |
cookies = { | |
} | |
headers = { | |
'Connection': 'keep-alive', | |
'Cache-Control': 'max-age=0', |
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
from __future__ import print_function | |
from random import randint | |
import requests | |
import string | |
import random | |
import time | |
import sys | |
import argparse | |
__author__ = 'Ronivaldo <[email protected]>' |
NewerOlder