Table of Contents
This file contains hidden or 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 | |
# Use as `./dump_defines.sh $CC`, where CC is the C or C++ | |
# compiler desired. There must be an arg1, or the script | |
# will quit. | |
if [ "$#" -ne 1 ]; then | |
echo "Use: ./dump_defines.sh \$CC." | |
echo "Must invoke with exactly 1 arg." | |
exit 1 |
This file contains hidden or 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 | |
# Use as `./macro.sh $CC $HEADER $MACRO`, where CC is the | |
# C or C++ compiler desired. There must be an arg1, arg2, | |
# arg3, and, or the script will quit. | |
if [ "$#" -ne 3 ]; then | |
echo "Use: ./.sh.sh \$CC \$HEADER \$MACRO." | |
echo "Must invoke with exactly 3 args." | |
exit 1 |
This file contains hidden or 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 contextlib | |
@contextlib.contextmanager | |
def redirect_stderr(): | |
'''Redirect stderr across processes temporarily.''' | |
stderr = None | |
try: | |
stderr = os.dup(sys.stderr.fileno()) | |
with open(os.devnull, 'w') as devnull: |
This file contains hidden or 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 | |
# Update and add the Java repository | |
apt update | |
apt install -y software-properties-common | |
add-apt-repository -y ppa:webupd8team/java | |
# Update and install Java | |
apt update | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ |
This file contains hidden or 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 ubuntu:18.04 | |
# Update and add the ethereum repository | |
RUN apt update | |
RUN apt install -y software-properties-common | |
RUN add-apt-repository -y ppa:webupd8team/java | |
# Update and install Java | |
RUN apt update | |
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ |
Table of Contents
This file contains hidden or 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
// This is derived off of BurntSushi's rust-memchr, and is re-released under | |
// the same licensing conditions as rust-memchr. | |
// | |
// Dual-licensed under MIT or the UNLICENSE. | |
// | |
// LICENSE | |
// ======= | |
// | |
// This is free and unencumbered software released into the public domain. | |
// |
This file contains hidden or 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
''' | |
block_followers | |
=============== | |
Block followers of a given account. | |
Block followers **does** not block an account if: | |
1. The account is verified (override with the `whitelist_verified=False`). | |
2. You are following the account (override with `whitelist_following=False`). |