Skip to content

Instantly share code, notes, and snippets.

View smcelhinney's full-sized avatar

Stephen McElhinney smcelhinney

View GitHub Profile
@smcelhinney
smcelhinney / .bashrc
Last active March 15, 2021 15:23
AWS Credentials autocomplete setup.
# Append this to your ~/.bashrc or ~/.bash_profile
# Switch to a specified AWS profile globally
function aws_switch_profile() {
local profile=${1:-"default"}
export AWS_PROFILE="$profile"
}
# Setup autocomplete for the above command
setup_aws_profile_complete (){
import React, { Component } from 'react';
import { graphql } from 'react-apollo';
import { gql } from 'graphql-tools';
const QUERY = gql`
query MatchesByDate($date: Int) {
matches(date: $date) {
id
minute
period