Skip to content

Instantly share code, notes, and snippets.

View libbkmz's full-sized avatar

Ilya libbkmz

View GitHub Profile
import math
import sys
import ppft as pp
def worker():
import builtins
try:
__builtins__._DATA
except:
from unittest import TestCase
class ManuallyTypedTest(TestCase):
def test_1(self):
self.fail()
def test_2(self):
pass
[Violation] Forced reflow while executing JavaScript took 108ms
tag.js:117 [Violation] 'requestAnimationFrame' handler took 68ms
TalkerClassPackage.e43f98.min.js:13 Uncaught (in promise) DOMException
play @ TalkerClassPackage.e43f98.min.js:13
e @ TalkerClassPackage.e43f98.min.js:1
y @ TalkerClassPackage.e43f98.min.js:13
(anonymous) @ TalkerClassPackage.e43f98.min.js:13
b @ t.js:4
setTimeout (async)
(anonymous) @ t.js:6
@libbkmz
libbkmz / vs_attach.py
Created July 1, 2019 15:14
Use Visual Studio 2017 com api to attach to running python process with loaded dll for debugging
import os,sys
import win32com.client as win32
# import pythoncom as com
def attach_visual_studio():
# a = com.GetActiveObject("VisualStudio.DTE.12.0")
dte = win32.GetActiveObject("VisualStudio.DTE.15.0")
# https://docs.microsoft.com/en-us/dotnet/api/envdte80.dte2?view=visualstudiosdk-2017
# @TODO: check if there more than 1 solution open.
from flask import Flask, request, Response
import json
from nest import convert
app = Flask(__name__)
# usage example:
# cat input.json | http 'http://127.0.0.1:5000?level=currency&level=country&level=city'
@app.route('/', methods=["POST"])
def hello_world():
levels = request.args.getlist('level')
import requests as req
import concurrent.futures as cf
import string
import random
WORKERS = 32
random_str = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(128))
def worker():
while True:
cimport cython
# USE cmdline below to build extension
# python setup.py build_ext --inplace --force
import numpy as np
cimport numpy as cnp
from libc.stdlib cimport rand, srand, RAND_MAX
cdef extern from "<Windows.h>":
#include <stdlib.h> // for rand() and RAND_MAX
int randint(int min, int max) {
return (rand() % (max + 1 - min)) + min;
}
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2016-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
die() {
echo "[-] Error: $1" >&2
exit 1
}
@libbkmz
libbkmz / clink_inputrc_base
Created February 19, 2019 12:25
cmder configs