Skip to content

Instantly share code, notes, and snippets.

View xboston's full-sized avatar

Nikolay Kirsh xboston

View GitHub Profile
// работа с вебсокетам
const WebSocket = require('ws');
// соединение с сервером
const ws = new WebSocket('wss://3september.ru:8000/', {
// обход "защиты"
origin: 'https://3september.ru'
});
// когда соединение сработает
// 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,
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";
@xboston
xboston / metahash-4353.json
Created June 10, 2019 12:55
metahash 4353
{
"method": "proxy_load_results",
"params": {
"ver": "1.4",
"mhaddr": "0x00xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"ip": "XX.60.XX.XX:9999",
"qps": "11806",
"rps": "10988",
"closed": "0",
"timeouts": "0",
<!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>
@xboston
xboston / noscript-tracking.go
Created May 8, 2019 10:21 — forked from wybiral/noscript-tracking.go
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
Привет, Хайп!
0452c6096a2e27d07e084421eeb8e9c45be0326cfd2791803fe2240546a1193bae87af6c99cb3def759dcaf5d258853dda3005f3fd68f5491ba24c399e0346fb90
<?php
namespace Models\Traits {
trait Isolation
{
/**
* Поиск записей в изоляционной транзакции
*
$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,