Skip to content

Instantly share code, notes, and snippets.

View antoinedelia's full-sized avatar
☁️

Antoine Delia antoinedelia

☁️
View GitHub Profile
@antoinedelia
antoinedelia / serverless.yml
Last active August 26, 2022 15:02
Template for a basic serverless file
service: service-name
provider:
name: aws
stage: ${opt:stage, 'prod'}
runtime: ${opt:runtime, 'python3.8'}
region: ${opt:region, 'eu-west-1'}
deploymentBucket:
name: deployment_bucket_name
iamRoleStatements:
# Open the current cmd path to the current VS Code window
code . -r
# Print the result of a command in bash
echo $(operation)
# Pretty print json output in bash
echo '{"first_name":"Antoine","last_name":"Delia"}' | python -m json.tool
@antoinedelia
antoinedelia / settings.json
Last active August 16, 2021 09:51
Settings for Python VsCode
{
"python.pythonPath": "/Users/antoine.delia/.pyenv/versions/3.9.0/bin/python",
"python.formatting.autopep8Args": ["--max-line-length", "100"],
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,
"python.linting.flake8Args": [
"--max-line-length", "200"
],
"autoDocstring.docstringFormat": "sphinx",