Skip to content

Instantly share code, notes, and snippets.

@ctison
ctison / README.md
Last active April 27, 2021 19:39
Add SQS Event Source Mapping to trigger AWS Lambdas

Add SQS Event Source Mappings to trigger AWS Lambdas

CLI tools are: aws, jq, more, grep

Tips

# `jq -C` enables the colors
# `jq -r` outputs raw text format instead of JSON
# `more -R` renders formatting characters like terminal colors

Keybase proof

I hereby claim:

  • I am ctison on github.
  • I am ctison (https://keybase.io/ctison) on keybase.
  • I have a public key ASBjdd-9s6XwrO6NN-jQTcliMftLJpX_js3nLUHc7kie2Qo

To claim this, I am signing this object:

@ctison
ctison / Ambassador - mapping.yaml
Created December 2, 2019 07:18
Kubernetes + Ambassador + Oathkeeper + Hasura
apiVersion: getambassador.io/v1
kind: Mapping
metadata:
name: hasura
spec:
host: api.YOURDOMAIN.io
prefix: /v1/graphql
rewrite: ''
service: http://hasura.hasura
@ctison
ctison / Makefile
Created September 20, 2018 14:00
Python Scenario
.PHONY: serve test
serve:
env FLASK_APP=bot.py FLASK_DEBUG=1 flask run
test:
python3 bot.py
@ctison
ctison / Finder.sh
Last active May 10, 2016 20:38
A configuration for Finder (OSX)
# Show the full path in title window
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Add the quit menu item
defaults write com.apple.Finder QuitMenuItem -bool YES
# Show hidden files
defaults write com.apple.Finder AppleShowAllFiles TRUE
@ctison
ctison / Makefile
Last active April 26, 2016 12:36
Call C code from Python
all:
# Creer le fichier 'ft_say_hello.o'
gcc -c ft_say_hello.c
# Mettre le fichier 'ft_say_hello.o' dans une bibliotheque
# dynamique 'libft.so'
gcc -shared -o libft.so ft_say_hello.o
# Executer le fichier python 'main.py' qui va chercher le symbole
# ft_say_hello dans la librairie dynamique et l'executer
python main.py