I hereby claim:
- I am davidimoore on github.
- I am davidimoore (https://keybase.io/davidimoore) on keybase.
- I have a public key ASCWvLcB3xX_QkWwI1rF_HzN3DItt_IKyHoI-Ny1plS98go
To claim this, I am signing this object:
# rails console | |
ActiveRecord::Base.connection.tables.each do |table| | |
indexes = ActiveRecord::Base.connection.indexes(table) | |
if indexes.length > 0 | |
puts "====> #{table} <====" | |
indexes.each do |index| | |
puts "----> #{index.name}" | |
end | |
puts "====> #{table} <====" |
import traceback | |
from typing import Dict, Union, List | |
def traceback_exc(exc: Exception) -> Dict[str, Union[str, List[str]]]: | |
tb = traceback.TracebackException.from_exception( | |
exc, capture_locals=True | |
) | |
return { | |
"title": type(exc).__name__, |
# These are here to help the IDE recognise AWS types. | |
# | |
# Place this file outside the 'schema' directory so are not pushed to AWS, | |
# but are still picked up by PhpStorm's GraphQL plugin to help | |
# validate schemas. | |
# | |
# https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html | |
# | |
scalar AWSDateTime | |
scalar AWSDate |
#!/bin/bash | |
function git_delete_local_remote_branches() { | |
branches=($1) | |
for i in "${branches[@]}"; do | |
git_delete_local_remote_branch $i | |
done | |
} |
function git_force_push_w_lease() { | |
if [[ -z "$1" ]]; then | |
BRANCH=$(git symbolic-ref --short -q HEAD) | |
elif [[ "$1" == "master" ]] || [[ $BRANCH == "master" ]] || [[ $BRANCH == "production" ]]; then | |
echo "Attempted to force push to a restricted branch. Not allowed! Exiting" | |
return | |
else | |
BRANCH="$1" | |
fi | |
echo "Pushing to $BRANCH" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
function bundle_rspec { | |
bundle exec rspec $1 | |
} | |
function rails_update_gems { | |
echo "Running bundle install" | |
bundle install | |
} |
{ | |
"league": { | |
"id": "4353138d-4c22-4396-95d8-5f587d2df25c", | |
"name": "NBA", | |
"alias": "NBA" | |
}, | |
"season": { | |
"id": "3652b3d6-55f7-44f5-b69d-7c607b9be26b", | |
"year": 2017, | |
"type": "SIM" |
{ | |
"league": { | |
"id": "4353138d-4c22-4396-95d8-5f587d2df25c", | |
"name": "NBA", | |
"alias": "NBA" | |
}, | |
"season": { | |
"id": "3652b3d6-55f7-44f5-b69d-7c607b9be26b", | |
"year": 2017, | |
"type": "SIM" |
{ | |
"id": "bbbc557d-3ff5-44cb-a48c-f3033740ddf7", | |
"status": "closed", | |
"coverage": "full", | |
"neutral_site": false, | |
"scheduled": "2018-12-13T03:30:00+00:00", | |
"duration": "2:08", | |
"attendance": 19596, | |
"lead_changes": 4, | |
"times_tied": 1, |