Skip to content

Instantly share code, notes, and snippets.

View ssaraswati's full-sized avatar

Shyam Saraswati ssaraswati

  • Melbourne, Australia
View GitHub Profile
#!/usr/bin/env python
from sys import exit
import json
import time
import re
try:
import paho.mqtt.client as mqtt
except ImportError:
exit('This example requires the paho-mqtt module\nInstall with: sudo pip install paho-mqtt')
@ssaraswati
ssaraswati / IstioNotes.md
Last active November 20, 2018 08:04
Istio Notes that worked with Docker For Desktop Mac and Windows
cd ~/Dowloads/istio-*

add istioctl to path

export PATH=$PWD/bin:$PATH

Dashboard localhost:8001/api/v1/namespaces/kube-system/services/https%3Akubernetes-dashboard%3A/proxy/#!/namespace?namespace=default

AWSTemplateFormatVersion: 2010-09-09
Parameters:
ServiceName:
Type: String
Default: serverlessptv
Description: Name for the service, used in the code repository, Lambda function, and pipeline names
CodeBuildEnvironment:
Type: String
Default: "aws/codebuild/dot-net:core-2.1"
Description: Name of the image to use for the CodeBuild container
Param(
[string]$storageaccountsecret
)
$StorageAccountName = "$($env:storageaccountname)"
$Context = New-AzureStorageContext -StorageAccountName $env:storageaccountname -StorageAccountKey $storageaccountsecret
$Blobs = Get-AzureStorageBlob -Context $Context -Container $env:webcontainer
foreach ($Blob in $Blobs)
{
I
a
aa
aaa
aac
aaliyah
aaron
ab
aba
abandon
@ssaraswati
ssaraswati / CitiesAirports.txt
Created September 1, 2016 07:50
USA Airpots and Top 5000 Cities by population
Thigpen
Livingston Municipal
Meadow Lake
Perry-Warsaw
Hilliard Airpark
Tishomingo County
Gragg-Wade
Capitol
Columbiana County
Memphis Memorial