This file contains hidden or 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
| EASYBROKER_API_KEY=EASYBROKER_API_KEY | |
| EASYBROKER_BASE_URL=https://api.stagingeb.com/v1 | |
| EASYBROKER_TIMEOUT=10 | |
| EASYBROKER_ITEMS_PER_PAGE=5 |
This file contains hidden or 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 logging | |
| import os | |
| import sys | |
| from typing import Callable, Any | |
| LOG_FORMAT: str = "[%(levelname)s][%(filename)s:%(lineno)d][%(funcName)s]%(message)s" | |
| TRACE_LOG_LEVEL: int = logging.INFO + 1 | |
| logging.addLevelName(TRACE_LOG_LEVEL, "TRACE") |
This file contains hidden or 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
| REDIS_SERVER="127.0.0.1" | |
| REDIS_PORT="6379" | |
| REDIS_USERNAME="myRedisUser" | |
| REDIS_PASSWORD="mYP@ssw0rd" | |
| REDIS_SSL="True" | |
| REDIS_SSL_CERT_REQS="none" |
This file contains hidden or 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 | |
| # This script converts code files to text files and saves them in a specified output directory. | |
| # It excludes certain directories and file extensions from the conversion process. | |
| # The script searches for and processes code files in specified directories, | |
| # determines their encoding, and saves their content into an output directory, | |
| # organizing the results in a structured manner. | |
| # Directory for the converted code files | |
| output_dir="code_txt" |
This file contains hidden or 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 pydub import AudioSegment | |
| import speech_recognition as sr | |
| print("# Define las rutas") | |
| path = '/app/audio/a00' | |
| audio_file_path = f"{path}.m4a" | |
| output_directory = '/app/audio/segments' |
This file contains hidden or 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
| # List all pads - etherpad | |
| # https://github-wiki-see.page/m/ether/etherpad-lite/wiki/How-to-list-all-pads | |
| # https://etherpad.org/doc/latest/#index_http_api | |
| ETHERPAD_HOST='http://127.0.0.1:9001' | |
| # can be found in APIKEY.txt file in the Etherpad installation directory | |
| ETHERPAD_API_KEY='...' | |
| #Get api version |
This file contains hidden or 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
| { | |
| "window.zoomLevel": 2, | |
| "editor.columnSelection": false, | |
| "workbench.colorTheme": "Arkademy", | |
| "files.associations": { | |
| "*.bash": "shellscript", | |
| "*.jinja": "html" | |
| }, | |
| "explorer.confirmDelete": false, | |
| "[jinja]": { |
This file contains hidden or 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
| ContraseñaUltraSegura |
This file contains hidden or 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 datetime | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| class DatesHelper(object): | |
| def convert_string_to_datetime(self, date=datetime.datetime.now()): | |
| if type(date) == str or type(date) == unicode: |
This file contains hidden or 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
| # Ver logs del ultimo contenedor creado | |
| docker ps -lq | xargs -L 1 docker logs -f | |
| # Crea un alias para mostrar los logs del ultimo contenedor dev_web creado | |
| alias 'dev_web'='docker container ls | grep '"'"'dev_web'"'"' | awk '"'"'{ print $1 }'"'"' ' | |
| alias 'log_dev'='docker logs -f $(dev_web)' | |
| #----- | |
| CONTAINER_NAME=dev_web | |
| docker container ls | grep "$CONTAINER_NAME" | awk "{ print $1 }" |
NewerOlder