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
| type MessageHandler = (data: any) => void; | |
| interface IMessageHandlers { | |
| [type: string]: MessageHandler[]; | |
| }; | |
| class SocketWrapper { | |
| ws: WebSocket; | |
| messageHandlers: IMessageHandlers; |
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
| import queue | |
| import random | |
| import string | |
| import sys | |
| from threading import Thread | |
| import requests | |
| from user_agent import generate_user_agent | |
| hosts = [ |
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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "strings" | |
| ) |
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
| function(file, callback) { | |
| var HASH_CHUNK_SIZE = 65536, //64 * 1024 | |
| longs = [], | |
| temp = file.size; | |
| function read(start, end, callback) { | |
| var reader = new FileReader(); | |
| reader.onload = function(e) { | |
| callback.call(reader, process(e.target.result)); | |
| }; |
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
| public class AntibanItem extends ClientAccessor { | |
| public String name; | |
| public int min; | |
| public int max; | |
| public int current; | |
| public boolean disabled; | |
| public abstract void execute(); | |
| public AntibanItem(ClientContext ctx) { | |
| super(ctx); |
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
| import { promisify } from 'util'; | |
| import * as crypto from 'crypto'; | |
| import * as path from 'path'; | |
| import * as puppeteer from 'puppeteer'; | |
| import * as fs from 'fs'; | |
| interface ITargets { | |
| targetInfos: any; | |
| } |
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
| body { | |
| background: cyan; | |
| } | |
| button { | |
| padding: 20px 10px; | |
| } |
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
| interface IExtendedChart extends Chart { | |
| scales: Chart.ChartScales; | |
| chart: Chart; | |
| width: number; | |
| } | |
| interface IExtendedChartConfig extends Chart.ChartConfiguration { | |
| lineAtY: Array<number>; | |
| } |
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
| import * as childProcess from 'child_process'; | |
| import * as express from 'express'; | |
| import * as util from 'util'; | |
| const exec = util.promisify(childProcess.exec); | |
| const DEPLOY_FOLDER = 'X:\\Desktop\\Tuplabotti-Jr'; | |
| const PORT = 2840; | |
| class WebHook { | |
| lastProcess: childProcess.ChildProcess; |
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
| function hexRgb(hexColor) { | |
| const color = hexColor.startsWith('#') ? hexColor.substr(1) : hexColor; | |
| if (color.length === 3) { | |
| return color.match(/.{1,1}/g).map(hex => parseInt(hex + hex, 16)); | |
| } else if (color.length === 6) { | |
| return color.match(/.{1,2}/g).map(hex => parseInt(hex, 16)); | |
| } | |
| } |