Skip to content

Instantly share code, notes, and snippets.

View benoitMariaux's full-sized avatar
🏠
Working from home

Benoît Mariaux benoitMariaux

🏠
Working from home
  • Amazon Web Services
  • Paris - France
View GitHub Profile
@gene1wood
gene1wood / log_aws_lambda_event_and_context.py
Last active June 27, 2023 04:33
A python AWS Lambda function which logs the contents of the event and context variables passed into the function.
from __future__ import unicode_literals
import logging
import json
logger = logging.getLogger(__name__)
logging.getLogger().setLevel(logging.INFO)
class PythonObjectEncoder(json.JSONEncoder):
"""Custom JSON Encoder that allows encoding of un-serializable objects
@squarism
squarism / iterm2.md
Last active May 12, 2024 20:07
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)