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 | |
from flask import Flask, request, jsonify | |
import subprocess | |
app = Flask(__name__) | |
@app.route('/webhook', methods=['POST']) | |
def webhook(): | |
data = request.get_json() |
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 | |
def process_sql_files(directory): | |
# Percorre todos os arquivos no diretório | |
for filename in os.listdir(directory): | |
if filename.endswith(".sql"): | |
file_path = os.path.join(directory, filename) | |
# Lê o conteúdo do arquivo | |
with open(file_path, 'r', encoding='utf-8') as file: |
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
#!/bin/bash | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox já esta instalado" | |
exit 0 | |
fi | |
echo "Iniciar instalação" |