-
vim ~/.zshrc
, addhistory-substring-search
to the plugin array.66 # Which plugins would you like to load? 67 # Standard plugins can be found in ~/.oh-my-zsh/plugins/* 68 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 69 # Example format: plugins=(rails git textmate ruby lighthouse) 70 # Add wisely, as too many plugins slow down shell startup. 71 plugins=(zsh-autosuggestions zsh-completions history-substring-search)
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 functools | |
import asyncio | |
import boto3 | |
class AsyncBoto3Client: | |
def __init__(self, *args, **kwargs): | |
client = boto3.client(*args, **kwargs) | |
self.__client = client | |
for name in dir(client): |
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, re, random | |
sess = requests.Session() | |
def test(answers, time_fn): | |
assert len(answers) == 35 | |
res = sess.get('https://test.mensa.no') | |
m = re.search(r'authorizationToken = (.+);', res.text) |
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
// ==UserScript== | |
// @name JAV101 Likes Ratio | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://v.jav101.com/* | |
// @grant none | |
// ==/UserScript== |
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 numpy as np | |
import random | |
import os | |
import time | |
data = [ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, | |
0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, | |
0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, | |
0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, |
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 python3 | |
import socket, os | |
class DNSBinLeaker: | |
def __init__(self, dnsbin_id, leak_id='leak'): | |
assert len(dnsbin_id) == 20 | |
assert all(c in '0123456789abcdef' for c in dnsbin_id) | |
assert 0 < len(leak_id) < 20 and leak_id.isalnum() |
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 (location.pathname.startsWith('/play')) { | |
(() => { | |
function downloadVideo(print = console.log) { | |
let url = | |
document | |
.querySelector('video') | |
.firstElementChild | |
.getAttribute('src'); |
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 sys | |
import inspect | |
import traceback | |
import importlib | |
import readline | |
import contextlib | |
__all__ = [ | |
'probe', |
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 | |
import json | |
import re | |
import glob | |
import time | |
import traceback | |
import functools | |
import subprocess as sp | |
from datetime import datetime | |
from threading import Thread, Event |
OlderNewer