I hereby claim:
- I am markshust on github.
- I am markshust (https://keybase.io/markshust) on keybase.
- I have a public key ASAl4N1-B72cg7xyoNwDOiw6IiuhGbFYYi-8SssbIiA6owo
To claim this, I am signing this object:
import os | |
import whisper | |
from whisper.utils import get_writer | |
input_dir = 'input/' | |
output_dir = 'output/' | |
for filename in sorted(os.listdir(input_dir)): | |
if filename.endswith('.mp4'): | |
input_file = input_dir + filename |
content |
#!/bin/bash | |
course="php-101" | |
totalcount=0 | |
for i in *.mp4; do | |
[[ $i == *"- clean"* ]] && continue | |
totalcount=$((totalcount+1)) | |
done; |
#!/bin/bash | |
for i in *.mp4; do | |
[[ $i == *"- clean"* ]] && continue # this line excludes files that contain "- clean" in filename | |
prefix=`echo "$i" | sed "s/^\([0-9]*\)\.\(.*\)/\1/"`; | |
ffmpeg -i "$i" -ss 00:00:15.00 -vf "thumbnail,scale=480:270" -frames:v 1 "$prefix.webp" | |
done |
<?php declare(strict_types=1); | |
namespace Macademy\ProductInfo\ViewModel; | |
use Magento\Catalog\Model\ProductRepository; | |
use Magento\Framework\App\RequestInterface; | |
use Magento\Framework\Exception\NoSuchEntityException; | |
use Magento\Framework\View\Element\Block\ArgumentInterface; | |
class FilteredAttribute implements ArgumentInterface |
<?xml version="1.0" encoding="UTF-8"?> | |
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> | |
<fieldset name="other_settings"> | |
<fieldset name="head"> | |
<field name="head_includes"> | |
<settings> | |
<disabled>true</disabled> | |
</settings> | |
</field> | |
</fieldset> |
<?php declare(strict_types=1); | |
namespace Macademy\Blog\Api\Data; | |
use Macademy\Blog\Api\Data\PostInterface; | |
use Magento\Framework\Api\SearchResultsInterface; | |
/** | |
* Blog post search result interface. | |
* @api |
<?xml version="1.0"?> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<head> | |
<link src="Foo_Bar::js/my-js-file.js"/> | |
</head> | |
</page> |
cd /tmp | |
curl -O https://files.magerun.net/n98-magerun2.phar | |
chmod +x ./n98-magerun2.phar | |
XDG_CONFIG_HOME="/tmp" ./n98-magerun2.phar dev:console --root-dir=$MAGENTO_CLOUD_DIR |
I hereby claim:
To claim this, I am signing this object: