Skip to content

Instantly share code, notes, and snippets.

@bsavage
bsavage / README.md
Last active August 19, 2019 19:35
Linux Script to prompt for string replacement, replace in file and preserve original file modification time.

Prompt for and Replace string in file while preserving original modification data

This gist repo contains a linux bash script that:

  • prompts for file to convert
  • string to be replaced
  • string to replace with It converts the file and preserves the original file modfication datatime. This is very useful when moving files across servers and other cases where the files hasn't changed materially except for some arbitrary (often server-specific) string.
@bsavage
bsavage / README.md
Last active July 26, 2019 13:54
Visualization in Data Science resources

Introduction

This gist repository is for resources related to the extended Visualization in Data Science group. It contains notes, animated gifs and links, or any resource helpful in research.

swagger: '2.0'
info:
title: Grouper SCIM-like operations
version: "v2"
contact:
email: tier-api@internet2.edu
name: TIER API Working Group
url: 'https://spaces.internet2.edu/display/DSAWG'
description: "The TIER APIs helps education and research organizations with Identity and Access Management (IAM) challenges. This API definition represents the grouper custom Users and Gropus operations provided by UPenn leveraging SCIM resource libraries provided by Penn State."
termsOfService: 'http://www.internet2.edu/policies/intellectual-property-framework/'
swagger: '2.0'
schemes:
- http
- https
host: tierapi.getsandbox.com
basePath: /tier/v2
info:
contact:
email: tier-api@internet2.edu
name: TIER API Working Group
swagger: '2.0'
schemes:
- http
- https
host: tier.internet2.edu
basePath: /tier/v2
info:
contact:
email: tier-api@internet2.edu
name: TIER API Working Group
swagger: '2.0'
schemes:
- https
host: tier.api.edu
basePath: /tier/v2
info:
contact:
email: tier-api@internet2.edu
name: TIER API Working Group
url: 'https://spaces.internet2.edu/display/DSAWG'
swagger: '2.0'
schemes:
- https
host: tier.api.edu
basePath: /tier/v2
info:
contact:
email: tier-api@internet2.edu
name: TIER API Working Group
url: 'https://spaces.internet2.edu/display/DSAWG'
{
"swagger": "2.0",
"schemes": [
"https"
],
"host": "tier.api.edu",
"basePath": "/tier/v2",
"info": {
"contact": {
"email": "tier-api@internet2.edu",
@bsavage
bsavage / gist:6998bf9b43a91aa850ee
Created March 3, 2016 21:11
Standards and Guidelines for Designing RESTful APIs in TIER
<p> </p>
<p> </p>
<ac:structured-macro ac:macro-id="eb18d766-4fc4-4279-8386-62b8f8848a39" ac:name="info" ac:schema-version="1">
<ac:rich-text-body>
<p>This is a consolidation of the work under the headings of "Guidelines for Designing RESTful APIs in TIER" and "TIER API SCIM common elements"</p>
<p>An attempt was made to assimilate discussion resolutions here and point to references where work is ongoing.</p>
</ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<h3 class="conf-macro output-inline">
@bsavage
bsavage / voot2swagger2.json
Last active May 4, 2016 20:10
VOOT2 protocol expressed as swagger2 json
{
"swagger": "2.0",
"info": {
"version": "2.0.0",
"title": "VOOT version 2"
},
"host": "voot-provider.example.org",
"basePath": "/v2",
"schemes": [
"http",