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 sys | |
import os | |
import aiohttp | |
import asyncio | |
from tqdm.asyncio import tqdm | |
from urllib.parse import urljoin | |
async def verify_noop(filename): | |
return 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
$ORIGIN n.dn42. | |
$TTL 7200 | |
; SOA | |
@ IN SOA ns2.androw.dn42. noc.androw.eu. ( | |
2021050901 ; Serial | |
7200 ; Refresh | |
1800 ; Retry | |
1209600 ; Expire |
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 alpine | |
RUN apk update && apk add python git automake libtool git boost-dev openssl-dev qt5-qtbase-dev qt5-qttools-dev autoconf build-base py2-pip | |
RUN pip install exodus-bundler | |
RUN cd && git clone https://github.com/arvidn/libtorrent.git && \ | |
cd libtorrent/ && \ | |
git checkout RC_1_2 && \ | |
./autotool.sh && \ | |
./configure --disable-debug --enable-encryption CXXFLAGS="-std=c++14" && \ | |
make -j$(nproc) && \ | |
make install |
ban.py
`kubectl logs --all-containers=true --tail=20 -f -l workload.user.cattle.io/workloadselector=web | python2 ./ban.py`
ratecounter.py
`kubectl logs --all-containers=true --tail=20 -f -l workload.user.cattle.io/workloadselector=web | python2 ratecounter.py web`
kubectl logs --all-containers=true --tail=20 -f -l workload.user.cattle.io/workloadselector=tracker | python2 ratecounter.py tracker
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 Opengrok jump to line | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description does it work? | |
// @author You | |
// @include /^https?://opengrok.*$/ | |
// @grant none | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js | |
// @updateUrl https://gist.github.com/mayli/d349360df3a5c738ee0ebcccb980cf03/raw/351ada4d06837c1ee2218894e57587961eecc5b3/opengrok.user.js |
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 python2 | |
import argparse | |
import os | |
import shutil |
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 alpine:latest | |
MAINTAINER Brett Randall <[email protected]> | |
# NOTE: openssh is only required for testing connection to built docker using the built mosh-server | |
RUN apk update \ | |
&& apk add alpine-sdk autoconf automake protobuf-dev ncurses ncurses-dev ncurses-static openssl-dev openssh | |
RUN apk add perl-doc | |
RUN git clone https://github.com/mobile-shell/mosh.git \ | |
&& cd mosh \ |
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
Simulated DDT histogram: | |
bucket allocated referenced | |
______ ______________________________ ______________________________ | |
refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE | |
------ ------ ----- ----- ----- ------ ----- ----- ----- | |
1 13.6M 6.60T 6.34T 6.34T 13.6M 6.60T 6.34T 6.34T | |
2 980K 156G 144G 145G 1.99M 327G 302G 304G | |
4 74.1K 6.75G 5.26G 5.40G 339K 31.7G 24.7G 25.4G | |
8 13.0K 1.70G 1.39G 1.42G 131K 20.0G 16.9G 17.2G |
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 threading | |
import Queue | |
import shelve | |
from multiprocessing.pool import ThreadPool | |
import logging | |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s:[%(threadName)s] %(' | |
'levelname)s - %(message)s') | |
logger = logging.getLogger(__name__) |
NewerOlder