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 org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
public class Log4JTest { | |
private static final Logger logger = LogManager.getLogger("Log4JTest"); | |
public static void main(String[] args) { | |
logger.info("this is a normal message and will appear before and after the fix"); | |
logger.info("filter -- this message should not appear after LOG4J2-2123"); | |
} | |
} |
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
507,513d506 | |
< | |
< // cert auth | |
< case '[email protected]': | |
< case '[email protected]': | |
< case '[email protected]': | |
< case '[email protected]': | |
< case '[email protected]': | |
535c528 | |
< if (!pubKeyFullType.startsWith(sigFullType)) { |
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 os | |
import re | |
exts = set(['.java', '.groovy']) | |
BEGIN_JAVADOC = re.compile('^\s*\/\*\*.*') | |
END_JAVADOC = re.compile('^\s*\*\/.*') | |
MISSING_PARAGRAPH = re.compile('^(\s*)\*\s*$') | |
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 click import command, option, Option, UsageError | |
class MutuallyExclusiveOption(Option): | |
def __init__(self, *args, **kwargs): | |
self.mutually_exclusive = set(kwargs.pop('mutually_exclusive', [])) | |
help = kwargs.get('help', '') | |
if self.mutually_exclusive: | |
ex_str = ', '.join(self.mutually_exclusive) | |
kwargs['help'] = help + ( |
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
convert -monitor *.jpg out.mpg |
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/ls *.CR2 | parallel -j 16 sips -s format jpeg {} --out out/{}.jpg |
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
ssh -D 9999 [email protected] -i ~/Downloads/cakey.pem |
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
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm | |
svn co http://llvm.org/svn/llvm-project/cfe/trunk llvm/tools/clang | |
cd llvm && ./configure | |
make -j2 |
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
if (luckyNumber != 1) { | |
fireTheMissiles(); | |
} |
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
// see if I got lucky | |
if (threadIdx.x == 7) { | |
luckyNumber++; | |
} |
NewerOlder