Skip to content

Instantly share code, notes, and snippets.

View bedge's full-sized avatar

Bruce Edge bedge

  • Roche RSS
  • Calabasas, CA
View GitHub Profile
@teopeurt
teopeurt / p4merge
Last active May 12, 2019 16:53
command line for p4merge usage.
#!/bin/bash
# chmod +x and copy to ~/bin/p4merge
# then
# git config --global merge.tool p4merge
# git config --global mergetool.keepTemporaries false
# git config --global mergetool.prompt false
if [ -n "$GIT_DIR" ]; then
if $(git submodule | grep -q $2); then
tmp=$(mktemp -t $2) && trap 'rm -rf $tmp' EXIT HUP INT QUIT TERM
@Vidimensional
Vidimensional / CopySQS.py
Created May 18, 2016 12:09
Copy between different SQS queues.
#!/usr/bin/env python
import json
import time
import argparse
import boto.sqs
from termcolor import cprint
@niranjv
niranjv / change_lambda_logger_format.py
Last active January 17, 2025 17:32
Change Python logger format in AWS Lambda
# Python logger in AWS Lambda has a preset format. To change the format of the logging statement,
# remove the logging handler & add a new handler with the required format
import logging
import sys
def setup_logging():
logger = logging.getLogger()
for h in logger.handlers:
logger.removeHandler(h)