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
if (window._bot != undefined) { | |
// alert('Bot added before, if something goes wrong try reload the page') | |
} | |
window._bot = true | |
window._martingale = 2.05 | |
window._variant = Math.random() >= 0.5 ? 1 : 0 | |
// window._variants = ['Roll < 49', 'Roll > 51'] |
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 App\Crawlers; | |
use OTPHP\TOTP; | |
use App\Models\Item; | |
class MarketsCrawler extends AbstractCrawler | |
{ | |
/** |
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
let app = require('http').createServer((req, res) => { | |
res.writeHead(200); | |
res.end('!@#'); | |
}) | |
let io = require('socket.io').listen(app) | |
app.listen(process.env.WS_PORT) | |
let Redis = require('redis').createClient({ | |
host: process.env.REDIS_HOST, |
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 | |
use \Carbon\Carbon; | |
/* | |
* Usage eg.: | |
* protected function create(array $data) | |
* { | |
* (new SeparatedObject)->setRegisteredAt(Carbon::now()); | |
* |
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
CREATE OR REPLACE FUNCTION "reset_sequence" (tablename text, columnname text, sequence_name text) | |
RETURNS "pg_catalog"."void" AS | |
$body$ | |
DECLARE | |
BEGIN | |
EXECUTE 'SELECT setval( ''' || sequence_name || ''', ' || '(SELECT MAX(' || columnname || | |
') FROM ' || tablename || ')' || '+1)'; |
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
{ | |
// personal discord token (can be found in cookies) | |
const TOKEN = '' | |
// inactivity threshold in days | |
const LEAVE_THRESHOLD = 30 | |
const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms)) | |
const getChannels = async () => { | |
const res = await fetch('https://discord.com/api/v9/users/@me/channels', { |