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
# will be: .backup/2022-02-03-14:04:00.sql.gz | |
wp db export - | gzip > .backup/$(date +%F-%T).sql.gz |
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
<?php | |
/** | |
* | |
* Save domain or wildcard | |
* regex from this crazy: | |
* wildcard: *.wilddomain.hu | |
* https://www.regextester.com/102477 | |
* | |
* validator: | |
* https://laravel-livewire.com/docs/2.x/input-validation |
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
<?php | |
/** | |
* Event layout | |
*/ | |
get_header(); | |
$description = get_the_archive_description(); | |
?> |
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
$type = $request->input('email_or_phone'); | |
$user = UserVerify::where('user_id', $request->input('user_id')) | |
->where(function($query) use ($type, $request) { | |
if ($type == 1) { | |
return $query->where('email', $request->input('email')); | |
} | |
if ($type == 2) { | |
return $query->where('mobile_no', $request->input('mobile_no')); | |
} |
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 | |
#============================================================================== | |
#TITLE: mysql_backup.sh | |
#DESCRIPTION: script for automating the daily mysql backups on development computer | |
#AUTHOR: tleish | |
#DATE: 2013-12-20 | |
#VERSION: 0.4 | |
#USAGE: ./mysql_backup.sh | |
#CRON: | |
# example cron for daily db backup @ 9:15 am |
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
// Base EA template | |
// More templates and snippets on https://github.com/sibvic/mq4-templates | |
// You need: | |
// 1. To implement LongCondition, ShortCondition, ExitLongCondition and ExitShortCondition | |
// 2. To replace all includes with code from the snippets folder. You can use https://github.com/sibvic/MQ4Inject for that. | |
#property version "1.0" | |
#property description "Developed by Victor Tereschenko: [email protected]" | |
#property strict |
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
# | |
# https://www.myfxbook.com/portfolio/mt4-20981445/5650958 | |
# | |
Languale=1 | |
StopLossProcent=0.0 | |
UseLotManual=false | |
ManualLot=0.01 | |
Risk=5.0 | |
PipsStep=6.0 |