Skip to content

Instantly share code, notes, and snippets.

View balbany's full-sized avatar

Bruce Albany balbany

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1LYKnGEDEyKSjrG3osDXb6FnK2Cd9bmcum https://explorer.blockstack.org/address/1LYKnGEDEyKSjrG3osDXb6FnK2Cd9bmcum
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Frame Redirect</title>
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/1.0.17/js/adal.min.js"></script>
</head>
<body>
<script>
var adalConfig = {
import xs from 'xstream';
import {adapt} from '@cycle/run/lib/adapt';
import Room from 'ipfs-pubsub-room';
export function makeIPFSRoomDriver(roomName) {
function ipfsRoomDriver(outgoing$) {
//Bootstrap the IPFS node
var ipfs = new window.Ipfs({
repo: 'ipfs/pubsub-demo/' + Math.random(),
@balbany
balbany / QueryChangeLog.ps1
Created February 8, 2017 21:52
Query SharePoint Changelog in Azure PS Function
Write-Output "PowerShell Timer trigger function executed at:$(get-date)";
if($inTokenBlob){
$persistedToken = Get-Content $inTokenBlob
Write-Output "Persisted token: $persistedToken"
}
#Get creds from environment variables (in Azure app settings)
$secpasswd = ConvertTo-SecureString $env:SPO_P -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ($env:SPO_U, $secpasswd)
$controlUrl = $env:SPO_ControlUrl