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
def chunks(iterable, chunk_size): | |
""" | |
Yield successive chunk_size chunks from iterable | |
""" | |
for i in range(0, len(iterable), chunk_size): | |
yield iterable[i:i + chunk_size] | |
class Chunky: |
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
# Thanks to https://stackoverflow.com/users/413924/dannyb | |
# And this SO post: https://stackoverflow.com/questions/63003669/how-can-i-see-my-git-secrets-unencrypted#:~:text=In%20order%20to%20see%20your,and%20view%20your%20secrets%20file. | |
name: Show me teh secretz | |
on: [push] | |
jobs: | |
debug: | |
name: Debug | |
runs-on: ubuntu-latest |
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 boto3 | |
from botocore.exceptions import ClientError | |
from django.conf import settings | |
class S3ConfigException(Exception): | |
''' | |
Raised when an issue is found during S3 client creation | |
''' |
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
{ | |
"test_case": { | |
"prefix": "test_case", | |
"body": [ | |
"import unittest", | |
"", | |
"", | |
"class ${1:class_name}TestCase(unittest.TestCase):", | |
"", | |
" def test_${2:does_thing}(self):", |