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
import math | |
import sys | |
import ppft as pp | |
def worker(): | |
import builtins | |
try: | |
__builtins__._DATA | |
except: |
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
from unittest import TestCase | |
class ManuallyTypedTest(TestCase): | |
def test_1(self): | |
self.fail() | |
def test_2(self): | |
pass |
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
[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 |
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
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. |
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
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') |
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
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: |
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
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>": |
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
#include <stdlib.h> // for rand() and RAND_MAX | |
int randint(int min, int max) { | |
return (rand() % (max + 1 - min)) + min; | |
} |
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
#!/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 | |
} |
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
set bell-style visible | |
set completion-ignore-case on | |
set completion-map-case on | |
set completion-display-width 106 | |
set output-meta on | |
set skip-completed-text on | |
set convert-meta on | |
"\e`s": backward-word # ctrl-left | |
"\e`t": forward-word # ctrl-right |