This file contains 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
// работа с вебсокетам | |
const WebSocket = require('ws'); | |
// соединение с сервером | |
const ws = new WebSocket('wss://3september.ru:8000/', { | |
// обход "защиты" | |
origin: 'https://3september.ru' | |
}); | |
// когда соединение сработает |
This file contains 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
// step 0: npm i metahash-js | |
// step 1: create file index.js | |
const MetaHash = require('metahash-js'); | |
{ // create key | |
const Wallet = MetaHash.Wallet; | |
const wallet = new Wallet(); | |
console.log('you new metahash key', { | |
address: wallet.address, |
This file contains 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
server { | |
server_name proxy.metawat.ch; | |
listen 80; | |
listen [::]:80; | |
add_header Strict-Transport-Security "max-age=31536000"; | |
add_header Content-Security-Policy "img-src https: data:; upgrade-insecure-requests"; |
This file contains 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
{ | |
"method": "proxy_load_results", | |
"params": { | |
"ver": "1.4", | |
"mhaddr": "0x00xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | |
"ip": "XX.60.XX.XX:9999", | |
"qps": "11806", | |
"rps": "10988", | |
"closed": "0", | |
"timeouts": "0", |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Demo</title> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport"> | |
</head> | |
<body> |
This file contains 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
// Tracking cursor position in real-time without JavaScript | |
// Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strings" | |
) |
This file contains 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 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
0452c6096a2e27d07e084421eeb8e9c45be0326cfd2791803fe2240546a1193bae87af6c99cb3def759dcaf5d258853dda3005f3fd68f5491ba24c399e0346fb90 |
This file contains 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 | |
namespace Models\Traits { | |
trait Isolation | |
{ | |
/** | |
* Поиск записей в изоляционной транзакции | |
* |
This file contains 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
$di['modelsMetadata'] = function () use ($config) { | |
if (PH_NOCACHE) { | |
$cache = new \Phalcon\Mvc\Model\Metadata\Memory(); | |
} else { | |
$cache = new \Phalcon\Mvc\Model\Metadata\Redis( | |
[ | |
'lifetime' => 86400, | |
'persistent' => false, | |
'host' => $config->redis->host, |
NewerOlder