Skip to content

Instantly share code, notes, and snippets.

View brianmriley's full-sized avatar

Brian Riley brianmriley

View GitHub Profile
@brianmriley
brianmriley / AngularJS-Service-Factory-Provider-Example.js
Last active August 29, 2015 13:57 — forked from Mithrandir0x/gist:3639232
AngularJS Service vs Factory vs Provider Implementations
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@brianmriley
brianmriley / fetch-ssl-from-okta-com.sh
Created October 22, 2019 23:02 — forked from jpf/fetch-ssl-from-okta-com.sh
How to fetch the SSL certificate from www.okta.com
echo '' | openssl s_client -connect www.okta.com:443