Skip to content

Instantly share code, notes, and snippets.

View stevemar's full-sized avatar
🇨🇦
What's happening?

Steve Martinelli stevemar

🇨🇦
What's happening?
View GitHub Profile
@stevemar
stevemar / bio.md
Last active October 31, 2019 19:50

Steve Martinelli is a Senior Technical Staff Member (STSM) at IBM. He has worked as a software developer in many different organizations of IBM, from WebSphere, to Open Source, and now focused on Developer Advocacy. He had a brief stint as an Engineering Manager for a few years.

As an avid technologist, Steve can be found tinkering with various technologies, from Kubernetes, to OpenWhisk, to Watson AI. Steve can be seen obsessing over using Python to automate the most tedious tasks, writing helpful documentation, and helping his peers become more productive and successful.

Steve has spoken at various conferences such as the Open Infrastructure Summit, CASCON (the Centre for Advanced Studies Conference), Viva Technology Conference, and the Cloud Identity Summit. Steve is a co-author of Identity, Authentication & Access Management in OpenStack, a book published by O'Reilly Media in 2015.

Previously, Steve served as the Project Lead for OpenStack’s identity service, code named Keystone. During that time, he a

@stevemar
stevemar / git.md
Last active January 23, 2024 19:11
git cheatsheet

GitHub Enterprise

Clone all GHE repos

This is limited to cloning 100 repos at a time, the second command gets page 2

TOKEN=foo
ORG_NAME=developer-journey
COMPANY=IBM
@stevemar
stevemar / table.md
Last active September 6, 2018 20:45
Online Support IBM Support for Runtimes IBM Advance Support for Runtimes
dW Answers (Ask questions, get answers) x x
Slack (Join the conversation on #node.js-at-ibm) x x x
Runtime Support x
Popular Framework Support1 x
Availability 24 x 7 8 x 5 8 x 5
Cost Free Purchase NowContact Us Purchase NowContact Us
@stevemar
stevemar / testing.md
Last active September 28, 2018 02:13

Keybase proof

I hereby claim:

  • I am stevemar on github.
  • I am stevemar (https://keybase.io/stevemar) on keybase.
  • I have a public key whose fingerprint is 69FF 0DF1 89C3 7FFA D062 93A6 D103 B672 309F B560

To claim this, I am signing this object:

import json
import re
import requests
# The public org where new repos will be created.
PUBLIC_ORG = 'foo'
# The repo where folks will request new repos for the public org in the form of a comment
GHE_REQUEST_REPO = 'https://github.mycompany.com/api/v3/repos/myorg/myrepo'
@stevemar
stevemar / tone_analyzer.py
Last active September 19, 2020 19:03
Tone Analyzer example
import json
from ibm_watson import ToneAnalyzerV3
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
# get this from the service credential
authenticator = IAMAuthenticator('t4a0vhxxxxxxxxFjW4')
tone_analyzer = ToneAnalyzerV3(
version='2017-09-21',
authenticator=authenticator
)
@stevemar
stevemar / stt.py
Last active December 2, 2020 15:12
example python and output for using watson STT
import json
from os.path import join, dirname
from ibm_watson import SpeechToTextV1
from ibm_watson.websocket import RecognizeCallback, AudioSource
import threading
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
authenticator = IAMAuthenticator('dnaxxxxxxYN4')
service = SpeechToTextV1(authenticator=authenticator)
service.set_service_url('https://stream.watsonplatform.net/speech-to-text/api')
@stevemar
stevemar / tts.py
Created September 19, 2020 19:01
Text to speech example
from ibm_watson import TextToSpeechV1
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
## Text to Speech
authenticator = IAMAuthenticator('guDxxxxxxxxoZ')
text_to_speech = TextToSpeechV1(
authenticator=authenticator
)
text_to_speech.set_service_url('https://api.us-south.text-to-speech.watson.cloud.ibm.com/instances/b6fcdc7dxxxxx9715e6')