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 | |
POSITIONAL=() | |
while [[ $# -gt 0 ]]; do | |
key="$1" | |
case $key in | |
-l|--localpath) | |
LCPATH="$2" | |
shift # past argument | |
shift # past value |
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
class CustomManifestS3Boto3Storage(ManifestFilesMixin, S3Boto3Storage): | |
# FIXME this seems to be a bug in ManifestFilesMixin with S3Boto3Storages | |
# ManifestFilesMixin is expecting a FileNotFound error but | |
# S3Boto3Storages is throwing an IOError | |
manifest_location = os.path.abspath( | |
settings.BASE_DIR | |
) | |
manifest_storage = FileSystemStorage(location=manifest_location) | |
def read_manifest(self): |
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
class CustomManifestS3Boto3Storage(ManifestFilesMixin, S3Boto3Storage): | |
def read_manifest(self): | |
try: | |
return super(StaticStorage,self).read_manifest() | |
except IOError: | |
return None |
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 USE_S3: | |
# aws settings | |
AWS_S3_OBJECT_PARAMETERS = { | |
"CacheControl": "max-age=34608000", | |
} | |
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") | |
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY") | |
AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME") | |
AWS_DEFAULT_ACL = "public-read" | |
CLOUDFRONT_ID = os.environ.get("CLOUDFRONT_ID") |
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
{ | |
"shell_cmd" : "g++ -std=c++14 $file_name -o $file_base_name && ./$file_base_name < in.txt > out.txt", | |
"selector": "source.c++ , source.cpp", | |
"working_dir" : "$file_path", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$" | |
} |