Skip to content

Instantly share code, notes, and snippets.

@xPomaHx
xPomaHx / download weekly wr from dotabuff
Created June 10, 2021 22:37
start in dotabuff.com/heroes/meta
(async () => {
var YY = {
a: function () {
return JSON.parse
},
b: function (t) {
if ("[object String]" != Object.prototype.toString.call(t))
return t.reverse();
for (var e = [], n = 0; n < t.length; n++) {
if (n + 1 < t.length) {
(async () => {
var story_id = 7558020;
while (story_id > 5000) {
await fetch("https://pikabu.ru/ajax/vote_story.php", {
"headers": {
"accept": "application/json, text/javascript, */*; q=0.01",
"accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"pragma": "no-cache",
// ==UserScript==
// @name lakomkaspb
// @description qwe
// @namespace lakomkaspb
// @version 1.1
// @include http://www.lakomkaspb.ru/catalog/*
// @require https://code.jquery.com/jquery-3.4.1.min.js
@xPomaHx
xPomaHx / litle front spamm test
Created November 4, 2019 00:14
litle front spamm test
(async () => {
Promise.all(Array(999).fill(true).map(() =>
fetch("/")
.then(response => (response.text()))))
.then(ar => {
console.dir(ar.reduce((acc, responseBody) => {
if (!acc[responseBody]) acc[responseBody] = 0
acc[responseBody] += 1;
}, {}))
})
@xPomaHx
xPomaHx / pure socket http server on nodejs
Created November 3, 2019 22:55
pure socket http server on nodejs
const net = require("net");
const server = net.createServer((socket) => {
const requestBuffers = [];
console.log("server connected");
socket.on("data", (dataBufered) => {
requestBuffers.push(dataBufered);
console.dir(dataBufered.toString("utf8"));
const contentLength = requestBuffers.reduce((lenght, buffer) => lenght + buffer.lenght, 0);
socket.write(`HTTP/1.0 200 OK\r\ncontent-length: ${contentLength}\r\n\r\n`);
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
// ==UserScript==
// @name tmmenedger
// @description qwe
// @namespace Habrahabr
// @version 1.1
// @include https://tmfeed.ru/popular/day/*
// @connect habr.com
// @require https://code.jquery.com/jquery-3.4.1.min.js
// require https://vuejs.org/js/vue.js
// @require https://vuejs.org/js/vue.min.js
// ==UserScript==
// @name toster
// @description qwe
// @namespace toster
// @version 1.1
// @include https://toster.ru/questions/interesting
// @include https://toster.ru/my/feed_interesting
// ==/UserScript==
"use strict";
! function(win) {
@xPomaHx
xPomaHx / gist:a84189104a02efeac5001971e12b257a
Created February 16, 2019 16:58
siteperfomanse bult test
let siteuri = document.location.href;
let sitechekers = [{
method: 'post',
url: 'gtmetrix.com/analyze.html',
data: {
'url': siteuri
},
},
{
method: 'get',
$.Msg("//////////////////////////////////////////////////////////");
$.Msg("//////////////////////////////////////////////////////////");
$.Msg("//////////////////////////////////////////////////////////");
$.Msg("D2JS started!");
$.Msg("Ваш steamid: " + Game.GetLocalPlayerInfo().player_steamid);
$.Msg("//////////////////////////////////////////////////////////");
$.Msg("//////////////////////////////////////////////////////////");
$.Msg("//////////////////////////////////////////////////////////");