Skip to content

Instantly share code, notes, and snippets.

View chelovekula's full-sized avatar
🏠
Working from home

M8ng8l chelovekula

🏠
Working from home
  • USA, San-Andreas
View GitHub Profile
Traceback (most recent call last):
File "/bot/app/misc/db.py", line 391, in get_active_tracks_ebay
return await con.fetch(sql)
│ │ └ '\n SELECT * FROM running_trackers_ebay;\n '
│ └ <function Connection.fetch at 0x7f72f2830180>
└ <PoolConnectionProxy [released] 0x7f72f1ef3940>
File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 620, in fetch
return await self._execute(
@chelovekula
chelovekula / args.gn
Created January 5, 2021 23:12 — forked from paulirish/args.gn
How to build Chromium to hack on DevTools
# Build arguments for the gn build
# You can set these with `gn args out/Default`
# ( and they're stored in src/out/Default/args.gn )
# See "gn args out/Default --list" for available build arguments
# component build, because people love it
is_component_build = true
# release build, because its faster
is_debug = false
__d("wrapFunction",[],(function(a,b,c,d,e,f){e.exports=a;var g={};function a(a,b,c){var d=b in g?g[b](a,c):a;return function(){for(var a=arguments.length,b=new Array(a),c=0;c<a;c++)b[c]=arguments[c];return d.apply(this,b)}}a.setWrapper=function(a,b){g[b]=a}}),null);
__d("VirtualCursorStatus",["Event","UserAgent","emptyFunction","setImmediate"],(function(a,b,c,d,e,f){var g=null,h=null;function i(){h||(h=b("Event").listen(window,"blur",function(){g=null,j()}))}function j(){h&&(h.remove(),h=null)}function a(a){g=a.keyCode,i()}function c(){g=null,j()}if(typeof window!=="undefined"&&window.document&&window.document.createElement){d=document.documentElement;if(d)if(d.addEventListener)d.addEventListener("keydown",a,!0),d.addEventListener("keyup",c,!0);else if(d.attachEvent){f=d.attachEvent;f("onkeydown",a);f("onkeyup",c)}}var k={isKeyDown:function(){return!!g},getKeyDownCode:function(){return g}},l=!1,m=!1,n=null,o=!1;function p(a){var c=new Set(),d=k.isKeyDown(),e=a.clientX,f=a.clientY,g=a.isPrimary,h=a.isTrusted
const listeners = (function listAllEventListeners() {
let elements = [];
const allElements = document.querySelectorAll('*');
const types = [];
for (let ev in window) {
if (/^on/.test(ev)) types[types.length] = ev;
}
for (let i = 0; i < allElements.length; i++) {
const currentElement = allElements[i];
// string::substr
#include <iostream>
#include <string>
int main ()
{
std::string str="--flag-switches-begin --timezone=\"America/New_York\" --flag-switches-end";
std::size_t pos1 = str.find("--timezone=\"") + 12;
@chelovekula
chelovekula / Aezakmi Fingerprints Filter
Created August 4, 2020 13:00
All possible combinations for creating prints in Aezakmi
This file has been truncated, but you can view the full file.
[{
"headers" : {
"browser" : {
"name" : "Chrome"
},
"os" : {
"name" : "Windows"
}
},
function overrideDefaultMethods(r, g, b, a, scriptId) {
var scriptNode = document.getElementById(scriptId);
function overrideCanvasProto(root) {
function overrideCanvasInternal(name, old) {
root.prototype[name] = old;
Object.defineProperty(root.prototype, name,
{
value: function () {
var width = this.width;
/*
Copyright(c) 2017, iovation, inc. All rights reserved. 80808bae-d4c3-47ac-9929-5d77264d823c
*/
(function Ga() {
function Ha() {
var a = {
optional: [{
RtpDataChannels: !0
}]
}, b, c, d;
function getCanvasZaloopa() {
try {
var a = document.createElement("canvas").getContext("2d");
a.fillStyle = "rgb(3,3,7)";
a.fillRect(0, 0, 1, 1);
a.fill();
if(3 !== a.getImageData(0, 0, 1, 1).data[0]) {
return true;
}
else {
@chelovekula
chelovekula / my-service
Created August 26, 2019 13:10 — forked from wires/my-service
minimal init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: <NAME>
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: <DESCRIPTION>
### END INIT INFO