- Открыть страницу с видео, видеоплеер должен быть виден на странице
- Открыть средства разработчика в браузере (F12), открыть вкладку с консолью
- Выполнить:
document.querySelector('vk-video-player').store.actions.internal.downloadVideo()
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
| — Да? | |
| — Алё! | |
| — Да да? | |
| — Ну как там с деньгами? | |
| — А? | |
| — Как с деньгами-то там? | |
| — Чё с деньгами? | |
| — Чё? | |
| — Куда ты звонишь? |
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
| [interop] | |
| appendWindowsPath=false |
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
| #!/usr/bin/env bash | |
| # see https://carstenwindler.de/php/enable-xdebug-on-demand-in-your-local-docker-environment/ | |
| if [ "$#" -ne 1 ]; then | |
| SCRIPT_PATH=`basename "$0"` | |
| echo "Usage: $SCRIPT_PATH enable|disable" | |
| exit 1; | |
| fi | |
| # Expects service to be called app in docker-compose.yml |
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
| namespace App\Post\Model; | |
| use App\Model\Validator\Constraints\UniqueModel; | |
| /** | |
| * @UniqueModel(class="App\Entity\Post", fields={"user": "user", "slug": "slug"}) | |
| */ | |
| class PostModel | |
| { | |
| public $user; |
It can
- properly deal with multi-fields uniqueness checks (and composite PKs)
- use symfony's property path or directly private properties
- does not cause hydration when checking
- allows to optionally map to existing entity (by having it as property) or by mapping id fields (or none at all so any matching record will trigger a failure)
- allows to re-map fields between DTO and entity (eg.
fields={"display_name": "username"}). Combined with sf property accessor this allows for "virtual properties". This also works for id fields - load the violating record to show in debug panel. Example http://prntscr.com/i3ifbn
- not get confused if multiple violating records are found
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 | |
| declare(strict_types=1); | |
| namespace App\ORM\Hydration; | |
| use Doctrine\ORM\Internal\Hydration\ArrayHydrator; | |
| /** | |
| * Returns one-dimensional scalar array from query: mixed[][] => mixed[] |
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amendThis will open your $EDITOR and let you change the message. Continue with your usual git push origin master.
NewerOlder