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 | |
| LENGTH=300 # length in seconds | |
| INPUT="./music.mp3" # path to input file | |
| for i in {0..180..5}; do | |
| ffmpeg -i $INPUT -t $LENGTH -ss $[$i * 60] -acodec copy "./$i.mp3" | |
| done |
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 psycopg2 | |
| from emily_backend import settings # pass Your settings here | |
| db_config = settings.DATABASES.get('default') | |
| logger = logging.getLogger(__name__) | |
| try: | |
| conn = psycopg2.connect(f"" |
NewerOlder