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
| // vue ingect | |
| export function injectFavorites(): void { | |
| const els: NodeListOf<Element> = document.querySelectorAll('.product-card__favorite-section'); | |
| if (els) { | |
| /* tslint:disable */ | |
| for (const i in els) { | |
| const el: Element = els[i]; | |
| if (el && el instanceof HTMLElement) { |
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
| var player = document.querySelector('video'); | |
| var options = { | |
| start:0, | |
| end: 10000000, | |
| } | |
| player.addEventListener('timeupdate', (e)=>{ | |
| if(player.currentTime > options.end){ | |
| player.currentTime = options.start; | |
| } | |
| if(Math.round(player.currentTime) % 5 === 0){ |
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 | |
| # user pass database "" "table1" только table1 | |
| # user pass database "table1 table2" все кроме table1 table2 | |
| USER=$1 | |
| PASSWORD=$2 | |
| DATABASE=$3 | |
| EXCLUDE=$4 | |
| ONLY=$5 |
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 | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
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
| content=$(wget google.com -q -O -) | |
| echo $content | |
| content=$(curl -L google.com) | |
| echo $content |
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
| content=$(wget google.com -q -O -) | |
| echo $content | |
| content=$(curl -L google.com) | |
| echo $content |
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
| zfs create tank1/test-tom |
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.8host.com/blog/zashhita-ssh-s-pomoshhyu-fail2ban-centos-6/ | |
| [DEFAULT] | |
| ignoreip = 127.0.0.1 | |
| bantime = 3600 | |
| findtime = 600 | |
| maxretry = 3 | |
| [ssh-iptables] | |
| enabled = true | |
| filter = sshd |
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
| # http://dreamhelg.ru/2010/02/15-regular-expression-for-web-developers/ | |
| foo Строка “foo” | |
| ^foo Строка начинается с “foo” | |
| foo$ Строка заканчивается на “foo” | |
| ^foo$ «foo» встречается в строке только один раз | |
| [abc] a, b, или c | |
| [a-z] любой символ в нижнем регистре | |
| [^A-Z] любой символ, не находящийся в верхнем регистре | |
| (gif|jpg) Означает как «gif” так и “jpeg” | |
| [a-z]+ Один или более символов нижнего регистра |
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 | |
| class Proxy | |
| { | |
| /** | |
| * Ссылка на файл с обновляемым списком бесплатных прокси | |
| */ | |
| const PROXY_FILE_DOWNLOAD_URL = 'https://raw.githubusercontent.com/clarketm/proxy-list/master/proxy-list.txt'; | |
| /** |
NewerOlder