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
lexer grammar TLexer; | |
@lexer::postinclude { | |
#ifndef _WIN32 | |
#pragma GCC diagnostic ignored "-Wunused-parameter" | |
#endif | |
} | |
/* Tokens. */ | |
STRING : '"' .*? '"' ; |
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
parser grammar TParser; | |
options { | |
tokenVocab = TLexer; | |
} | |
@parser::postinclude { | |
#ifndef _WIN32 | |
#pragma GCC diagnostic ignored "-Wunused-parameter" | |
#endif |
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 els = document.getElementsByTagName('a'); | |
var urls = []; | |
for (var a=0; a<els.length; a++) { | |
var item = els[a].href.toString().trim(); | |
if (item.indexOf('watch') != -1) { | |
var url = item.split('&'); | |
url = url[0].toString().trim(); | |
var found = 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
// Configs... | |
// YouTube video list. | |
var urls = ` | |
https://www.youtube.com/watch?v=ev9zrt__lec | |
`; |
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 | |
// Read file contents. | |
$path = 'texts-youtube/'; | |
$content = ''; | |
if ($handle = opendir($path)) { | |
while (false !== ($entry = readdir($handle))) | |
if ($entry != "." && $entry != "..") | |
$content .= file_get_contents($path . $entry); |
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=`echo "animak" | aspell -l pt_br pipe --ignore-case --dont-backup --dont-save-repl | sed -n '2p'`; IFS=':'; read -a strarr <<< "$content"; content="${strarr[1]}"; IFS=','; read -a strarr <<< "$content"; content="${strarr[0]}"; content=`echo $content | sed -e 's/^[[:space:]]*//'`; 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
Nginx: | |
http://nginx.org/en/docs/http/load_balancing.html | |
https://harshshah8996.medium.com/configure-nginx-for-a-production-environment-be0e02a3d9e8 | |
https://www.upguard.com/blog/10-tips-for-securing-your-nginx-deployment | |
https://brain2life.hashnode.dev/nginx-security-101-a-checklist-for-keeping-your-web-server-safe-and-secure | |
https://steadylearner.medium.com/how-to-deploy-rust-web-application-8c0e81394bd5 | |
https://medium.com/localhost-run/using-nginx-to-host-websockets-and-http-on-the-same-domain-port-d9beefbfa95d | |
https://websockets.readthedocs.io/en/stable/howto/nginx.html | |
https://www.nginx.com/blog/websocket-nginx/ |
OlderNewer