Skip to content

Instantly share code, notes, and snippets.

View bhumphrey's full-sized avatar

Brian Humphrey bhumphrey

  • New Castle, DE
View GitHub Profile
BASIC_AUTH = replace-with-real-value
ACCESS_TOKEN = `curl --silent -H "Authorization:Basic $BASIC_AUTH" \
-X POST \
-F username=admin \
-F password=admin \
-F grant_type=password \
http://localhost:9999/oauth/token | jq -r '.access_token'`
/*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the documentation
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following disclaimer.
@bhumphrey
bhumphrey / gist:3764983
Created September 22, 2012 03:10
Cherry-picking from another fork
git checkout <branch>
git fetch <other-fork-alias>
git cherry-pick <commit-hash>
git push <your-fork-alias>