Skip to content

Instantly share code, notes, and snippets.

View texdc's full-sized avatar
🕶️

George Cooksey texdc

🕶️
  • Nashville, TN
View GitHub Profile
import boto3
import copy
table = "${destTableName}"
def handler(event, context):
// do some assume role stuff into another account here
// client = boto3.client('iam')
// response = client.assume_role(
// RoleArn=arn,
// RoleSessionName=username,
// DurationSeconds=timeout
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
@texdc
texdc / find_by.php
Last active August 29, 2015 14:11 — forked from mathiasverraes/max.php
<?php
// test data
class Foo
{
private $a;
public function __construct($a)
{