echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
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
#include <avr/io.h> | |
#include <util/delay.h> | |
#include <avr/interrupt.h> | |
#define LED_PORT PORTB | |
#define LED_DDR DDRB | |
#define LED_DELAY 20 |
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/sh | |
### | |
# description: stop and then start lxc container | |
# author: unref (unref@inbox.ru) | |
# date: 18-05-2022 | |
# license: MIT | |
### | |
### |
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
[Unit] | |
Description=Start web dev environment | |
Requires=nginx.service php-fpm.service mariadb.service | |
[Service] | |
ExecStop=systemctl stop nginx.service php-fpm.service mariadb.service | |
RemainAfterExit=yes |
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
FLASK_CONFIG="production" | |
HOST="0.0.0.0" | |
OPTS="runserver -h $HOST" | |
PYTHON_BIN="/srv/flask/.env/bin/python" | |
SCRIPT_FILE="/srv/flask/manage.py" |
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
#!/sbin/openrc-run | |
name=$RC_SVCNAME | |
command="$PYTHON_BIN" | |
command_args="$SCRIPT_FILE $OPTS" | |
command_background="yes" | |
command_user="nobody" | |
pidfile="/run/$RC_SVCNAME.pid" |
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/sh | |
if [ ! -z $1 ]; then | |
APPNAME=$1; | |
else | |
echo -n "Enter application directory: " | |
read APPNAME | |
fi | |
if [ ! -z $APPNAME ]; |
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
Promise.series = function series(data, fn) { | |
const results = []; | |
return data.reduce((promise, current) => { | |
return promise | |
.then(() => fn(current)) | |
.then(result => { results.push(result); }); | |
}, Promise.resolve()) | |
.then(() => results) | |
.catch(err => Promise.reject(err)); |
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/sh | |
## | |
# finds file by file type | |
# convert video file from 1080p and greater, into 720p | |
# License: MIT | |
# author: nixso, post@nojs.ga | |
## | |
filetypes="mp4|avi|wmv|mkv" |