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
sudo apt-get install --install-recommends gcc-mips-linux-gnu cpp-mips-linux-gnu | |
# libpcap | |
git checkout libpcap-1.9.0 | |
mkdir out | |
export LIBPCAP=`pwd`/out | |
./configure --host=mips-linux-gnu --prefix=$LIBPCAP | |
make install | |
# libncurses |
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 concurrent.futures import ThreadPoolExecutor | |
from threading import BoundedSemaphore | |
class BoundedExecutor: | |
"""BoundedExecutor behaves as a ThreadPoolExecutor which will block on | |
calls to submit() once the limit given as "bound" work items are queued for | |
execution. | |
:param bound: Integer - the maximum number of items in the work queue |
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
#!/bin/bash | |
# | |
# This script will install ansible including sshpass for --ask-pass functionality | |
# under cygwin. | |
# Before running this install cygwin and select lynx package to be install. | |
# | |
# Script Starts Here | |
# | |
# | |
# fetch apt-cyg via lynx |